/**
 * Bosaname Homepage Section Styles
 *
 * Hero, Services, Stats, Brands, Case Studies, Process.
 * Loaded ONLY on front-page.php via is_front_page().
 */

/* ── Hero (structural overrides — shared base in components/hero.css) ── */
.bosa-hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bosa-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bosa-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 0% 50%,
      rgba(34, 165, 89, 0.25) 0%,
      transparent 60%
    ),
    linear-gradient(
      to right,
      rgba(6, 25, 16, 0.95) 0%,
      rgba(6, 25, 16, 0.6) 50%,
      rgba(6, 25, 16, 0.1) 100%
    );
}

.bosa-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 16px 24px;
}

.bosa-hero-text {
  max-width: 640px;
}

.bosa-hero-badge {
  border: 1px solid rgba(34, 165, 89, 0.4);
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 24px;
}

/* ── Services ── */
.bosa-services {
  background: #fff;
  padding: 40px 0;
}

.bosa-section-header {
  text-align: center;
}

.bosa-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bosa-primary);
  text-transform: uppercase;
}

.bosa-section-title {
  margin-top: 12px;
  font-size: 36px;
  font-weight: 700;
  color: var(--bosa-ink);
}

.bosa-section-subtitle {
  margin-top: 12px;
  font-size: 14px;
  color: var(--bosa-muted);
}

.bosa-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}

.bosa-service-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--bosa-canvas);
  border: 1px solid var(--bosa-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bosa-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.bosa-service-img-wrap {
  position: relative;
  height: 192px;
}

.bosa-service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bosa-service-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
}

.bosa-service-num,
.bosa-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.bosa-service-icon svg {
  width: 20px;
  height: 20px;
}

.bosa-service-body {
  padding: 24px;
}

.bosa-service-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--bosa-primary-dark);
}

.bosa-service-body .subtitle {
  font-size: 14px;
  color: var(--bosa-primary-dark);
  font-weight: 600;
  margin-top: 2px;
}

.bosa-service-body .desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--bosa-muted);
  line-height: 1.6;
}

.bosa-service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-left: 0;
  margin-top: 20px;
  list-style: none;
}

.bosa-service-features.two-cols {
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.bosa-service-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(38, 44, 54, 0.9);
}

.bosa-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.bosa-check.green {
  color: var(--bosa-primary);
}

.bosa-check.blue {
  color: var(--bosa-info);
}

.bosa-service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.bosa-service-link.green {
  color: var(--bosa-primary);
}

.bosa-service-link.blue {
  color: var(--bosa-info);
}

.bosa-service-link:hover {
  opacity: 0.8;
}

/* ── Stats ── */
.bosa-stats {
  background: #fff;
}

.bosa-stats-bar {
  border-radius: 12px;
  background: var(--bosa-primary-dark);
  padding: 24px 16px;
}

.bosa-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.bosa-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.bosa-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  height: 56px;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.bosa-stat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bosa-primary);
}

.bosa-stat-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.bosa-stat-text {
  color: #fff;
}

.bosa-stat-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.bosa-stat-label {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  color: #fff;
}

.bosa-stat-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

/* ── Brands ── */
.bosa-brands {
  background: #fff;
  padding: 32px 0;
}

.bosa-brands-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bosa-primary);
  text-transform: uppercase;
}

.bosa-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

.bosa-brand-name {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(107, 114, 128, 0.7);
  letter-spacing: -0.01em;
}

/* ── Case Studies ── */
.bosa-case-studies {
  background: var(--bosa-surface);
  padding: 40px 0;
}

.bosa-case-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.bosa-case-heading h2 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--bosa-ink);
  line-height: 1.15;
}

.bosa-case-heading p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--bosa-muted);
}

.bosa-case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bosa-case-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--bosa-canvas);
  border: 1px solid var(--bosa-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bosa-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.bosa-case-img-wrap {
  position: relative;
  height: 176px;
}

.bosa-case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bosa-case-tag {
  position: absolute;
  left: 16px;
  bottom: -14px;
  background: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.bosa-case-body {
  padding: 32px 24px 24px;
}

.bosa-case-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bosa-ink);
}

.bosa-case-body .sub {
  font-size: 12px;
  color: var(--bosa-muted);
  margin-top: 2px;
}

.bosa-case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.bosa-case-stat-val {
  font-size: 20px;
  font-weight: 700;
}

.bosa-case-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--bosa-ink);
  margin-top: 2px;
}

/* ── Process ── */
.bosa-process {
  background: #fff;
  padding: 40px 0;
}

.bosa-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.bosa-step {
  position: relative;
}

.bosa-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% + 24px); /* Extends across the grid gap */
}

.bosa-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bosa-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.bosa-step-title {
  font-weight: 700;
  color: var(--bosa-ink);
  white-space: nowrap;
}

.bosa-step-desc {
  margin-top: 12px;
  font-size: 12px;
  color: var(--bosa-muted);
  line-height: 1.6;
}

.bosa-step-connector {
  display: none;
  flex-grow: 1;
  position: relative;
  height: 0;
  border-top: 2px dashed rgba(34, 165, 89, 0.4);
  margin-left: 8px;
  margin-right: 8px;
}

.bosa-step-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid rgba(34, 165, 89, 0.4);
}

/* ── Responsive (homepage) ── */
@media (min-width: 768px) {
  .bosa-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bosa-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bosa-brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .bosa-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bosa-process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .bosa-hero-banner {
    height: auto;
  }

  .bosa-hero-content {
    padding: 140px 24px 60px;
    min-height: 70dvh;
  }
  .bosa-hero-title {
    font-size: 60px;
  }
  .bosa-hero-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
  .bosa-hero-desc {
    font-size: 16px;
    margin-top: 24px;
  }
  .bosa-hero-actions {
    flex-direction: row;
    gap: 12px;
  }
  .bosa-hero-actions .bosa-btn-primary,
  .bosa-hero-actions .bosa-btn-outline {
    width: auto;
    padding: 12px 24px;
  }
  .bosa-hero-trust {
    margin-top: 24px;
    flex-wrap: nowrap;
    gap: 0;
  }
  .bosa-services {
    padding: 80px 0;
  }
  .bosa-services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .bosa-stats-bar {
    padding: 40px 32px;
    border-radius: 16px;
  }
  .bosa-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  .bosa-stat {
    gap: 16px;
  }
  .bosa-stat-icon {
    width: 64px;
    height: 64px;
  }
  .bosa-stat-value {
    font-size: 32px;
  }
  .bosa-brands {
    padding: 56px 0;
  }
  .bosa-brands-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 32px;
  }
  .bosa-brand-name {
    font-size: 18px;
  }
  .bosa-case-studies {
    padding: 80px 0;
  }
  .bosa-case-layout {
    grid-template-columns: 1fr 3fr;
  }
  .bosa-case-heading h2 {
    font-size: 36px;
  }
  .bosa-case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bosa-process {
    padding: 80px 0;
  }
  .bosa-process-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-top: 56px;
  }
  .bosa-step-connector {
    display: flex;
  }
}
