/**
 * Bosaname Services Page Styles
 *
 * Dedicated styles for page-services.php.
 * Loaded conditionally via functions.php.
 * Mobile-first: base = mobile, min-width 769px = tablet, min-width 1025px = desktop.
 */

/* ── Global Page Reset/Wrapper ── */
.bosa-services-page-main {
  overflow-x: hidden;
}

/* ── 1. Services Hero (structural — shared base in components/hero.css) ── */
.bosa-services-hero {
  background-color: #081710;
  padding: 140px 0 80px;
}

.bosa-services-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.bosa-services-hero-content {
  max-width: 600px;
}

.bosa-services-hero-badge { margin-bottom: 16px; }

.bosa-services-hero-title {
  margin-bottom: 24px;
}

.bosa-services-hero-desc {
  margin: 0;
}

/* Hero Image Wrap — unique to Services */
.bosa-services-hero-image-wrap {
  position: relative;
  height: 340px;
  background-color: #0c2016;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bosa-services-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* Dot Grid Background Graphic — unique to Services */
.bosa-services-dot-grid-bg {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 100px;
  height: 120px;
  background-image: radial-gradient(rgba(34, 165, 89, 0.3) 2px, transparent 2px);
  background-size: 16px 16px;
  z-index: 1;
}

/* Growth Arrow Background Graphic — unique to Services */
.bosa-services-growth-chart-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.bosa-services-growth-chart-bg svg {
  width: 100%;
  height: 100%;
}

/* Hero Features — unique to Services */
.bosa-services-hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.bosa-services-feature-col {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bosa-services-feature-icon {
  background-color: rgba(34, 165, 89, 0.15);
  color: var(--bosa-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bosa-services-feature-icon svg {
  display: block;
}

.bosa-services-feature-text h3 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.bosa-services-feature-text p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* ── 2. Services Pillars (mobile base) ── */
.bosa-services-pillars {
  padding: 80px 0;
}

.bosa-services-pillars-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.bosa-services-pillars-header {
  position: relative;
  text-align: left;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bosa-services-header-left {
  text-align: left;
}

.bosa-services-pillars-label {
  color: var(--bosa-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.bosa-services-pillars-title {
  color: #111;
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Pillar Card Layout (mobile base) */
.bosa-services-pillars-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bosa-services-pillar-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bosa-services-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.bosa-services-pillar-card-header {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 0 24px;
}

.bosa-services-pillar-card-header-text {
  padding-right: 0;
  margin-bottom: 16px;
  z-index: 2;
}

.bosa-services-pillar-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0c2016;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.bosa-services-pillar-card-title {
  color: #111;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.bosa-services-pillar-card-desc {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.bosa-services-pillar-card-image {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: flex-start;
}

.bosa-services-pillar-card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.bosa-services-pillar-card-body {
  padding: 16px 24px;
  flex: 1;
}

.bosa-services-pillar-card-section-title {
  color: var(--bosa-primary);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.bosa-services-pillar-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bosa-services-pillar-features-list.two-cols {
  grid-template-columns: 1fr;
}

.bosa-services-pillar-features-list li {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bosa-services-pillar-features-list svg.bosa-check {
  color: var(--bosa-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.bosa-services-pillar-card-footer {
  padding: 0 24px 24px 24px;
}

.bosa-services-pillar-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bosa-primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.bosa-services-pillar-card-link:hover {
  color: var(--bosa-primary-dark);
  gap: 12px;
}

/* ── 3. How We Work (mobile base) ── */
.bosa-services-how-we-work {
  padding: 40px 0 80px;
}

.bosa-services-hww-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.bosa-services-hww-card {
  background-color: #0b2216;
  border-radius: 24px;
  padding: 32px 24px;
}

.bosa-services-hww-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.bosa-services-hww-info {
  max-width: 100%;
}

.bosa-services-hww-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px 0;
}

.bosa-services-hww-title .highlight-work {
  color: var(--bosa-primary);
}

.bosa-services-hww-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Steps System (mobile base) */
.bosa-services-hww-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.bosa-services-work-step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.bosa-services-step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--bosa-primary);
  background-color: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background-color 0.2s ease;
}

.bosa-services-work-step:hover .bosa-services-step-icon-wrap {
  background-color: rgba(34, 165, 89, 0.1);
}

.bosa-services-step-text h3 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.bosa-services-step-text p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}

/* Step Connector Line (hidden on mobile) */
.bosa-services-step-connector {
  display: none;
}

/* ── 4. Services CTA (mobile base) ── */
.bosa-services-cta {
  padding: 0 0 80px;
}

.bosa-services-cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.bosa-services-cta-card {
  background-color: #061910;
  border-radius: 24px;
  padding: 32px 24px;
}

.bosa-services-cta-card-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.bosa-services-cta-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bosa-services-cta-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.bosa-services-cta-content-wrap {
  flex: 1.2;
}

.bosa-services-cta-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.bosa-services-cta-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* CTA Details Col (mobile base) */
.bosa-services-cta-details-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.bosa-services-cta-detail-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bosa-services-cta-detail-icon {
  color: #ffffff;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--bosa-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bosa-services-cta-detail-text h4 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.bosa-services-cta-detail-text p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  margin: 0;
}

/* Button Wrap */
.bosa-services-cta-btn-wrap {
  flex-shrink: 0;
}

/* ── 5. Responsive / Media Queries ── */

/* Tablet (min-width: 769px) */
@media (min-width: 769px) {
  /* Hero */
  .bosa-services-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .bosa-services-hero-title {
    font-size: 54px;
  }
  .bosa-services-hero-features {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  /* Pillars */
  .bosa-services-pillars-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .bosa-services-pillar-card-header {
    flex-direction: row;
    padding-left: 32px;
  }
  .bosa-services-pillar-card-header-text {
    flex: 1;
    padding-top: 32px;
    padding-right: 16px;
    margin-bottom: 0;
  }
  .bosa-services-pillar-card-image {
    width: 140px;
    justify-content: flex-end;
  }
  .bosa-services-pillar-card-image img {
    border-radius: 0;
    border-bottom-left-radius: 16px;
  }
  .bosa-services-pillar-card-body {
    padding: 24px 32px;
  }
  .bosa-services-pillar-features-list.two-cols {
    grid-template-columns: 1fr 1fr;
  }
  .bosa-services-pillar-card-footer {
    padding: 0 32px 32px 32px;
  }

  /* How We Work */
  .bosa-services-hww-grid {
    grid-template-columns: 0.8fr 2.2fr;
    gap: 40px;
  }
  .bosa-services-hww-info {
    max-width: 240px;
  }
  .bosa-services-hww-steps {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
    align-items: flex-start;
  }
  .bosa-services-step-connector {
    display: block;
    flex: 1;
    min-width: 40px;
    margin: 32px 16px 0;
    position: relative;
    align-self: flex-start;
  }
  .bosa-services-step-connector::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px dotted var(--bosa-primary);
  }
  .bosa-services-step-connector::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--bosa-primary);
    border-right: 2px solid var(--bosa-primary);
  }
  .bosa-services-work-step {
    max-width: 160px;
  }

  /* Card Padding */
  .bosa-services-hww-card {
    padding: 48px;
  }
  .bosa-services-cta-card {
    padding: 32px 40px;
  }

  /* CTA */
  .bosa-services-cta-card-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .bosa-services-cta-details-wrap {
    flex-direction: row;
    gap: 24px;
    flex: 1.5;
  }
}

/* Desktop (min-width: 1025px) */
@media (min-width: 1025px) {
  /* Hero */
  .bosa-services-hero {
    min-height: 650px;
    padding-top: 140px;
  }
  .bosa-services-hero-image-wrap {
    height: 380px;
  }
}
