/* ==========================================================================
   JOYBEAN — Generic inner page template
   Reusable layout blocks: breadcrumb, page hero, in-page nav, split blocks,
   stat panels and check lists. Loaded by every inner page.
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   Page hero
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 3.6vw, 46px) 0 clamp(56px, 6vw, 80px);
  background:
    radial-gradient(circle at 12% 8%, rgba(228, 33, 27, 0.08), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(228, 33, 27, 0.05), transparent 30%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: rgba(228, 33, 27, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(22px, 3vw, 32px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: #b9afa6;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* Copy-only hero variant (no media column) */

.page-hero-grid.is-single {
  grid-template-columns: 1fr;
}

.page-hero-grid.is-single .page-hero-content {
  max-width: 820px;
}

.page-hero-content h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-hero-content > p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.75;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Hero collage */

.page-hero-media {
  min-width: 0;
}

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 1 / 0.9;
}

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero-collage .collage-main {
  grid-row: 1 / 3;
  border-radius: var(--radius-lg);
}

.hero-collage .collage-small {
  border-radius: var(--radius-sm);
}

.collage-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.collage-badge strong {
  color: var(--primary);
  font-size: 19px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Shared inner-page content blocks
   -------------------------------------------------------------------------- */

.inner-section {
  padding: clamp(64px, 8vw, 100px) 0;
}

.section-alt {
  background: #fff;
}

.split-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.split-block.is-reversed .split-media {
  order: -1;
}

.split-block--no-media {
  grid-template-columns: 1fr;
}

.split-block--no-media .split-copy {
  max-width: 760px;
}

.split-copy h2 {
  margin: 12px 0 18px;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.split-copy > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.split-copy .check-list {
  margin-top: 22px;
}

.split-copy .btn {
  margin-top: 26px;
}

.split-media {
  position: relative;
  margin: 0;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.inline-head {
  max-width: 760px;
  margin: 0 0 32px;
}

.inline-head h2,
.inline-head h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.inline-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

/* Credential list — one row per item, so the count can grow or shrink freely */

.credential-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.credential-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px;
}

.credential-list li + li {
  border-top: 1px solid var(--line);
}

.credential-list strong {
  flex: none;
  color: var(--primary);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.credential-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

/* Check list */

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-media {
    max-width: 640px;
  }

  .hero-collage {
    aspect-ratio: 1 / 0.78;
  }

  .split-block {
    grid-template-columns: 1fr;
  }

  .split-block.is-reversed .split-media {
    order: 0;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding-top: 26px;
  }

  .page-hero-content h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .page-hero-content > p {
    font-size: 15.5px;
  }

  .hero-collage {
    gap: 10px;
    aspect-ratio: 1 / 0.86;
  }

  .collage-badge {
    right: 14px;
    bottom: 14px;
    left: auto;
    padding: 10px 13px;
    font-size: 11px;
  }

  .credential-list li {
    padding: 18px 20px;
  }

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

@media (max-width: 520px) {
  .page-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-collage {
    grid-template-columns: 1.2fr 1fr;
    aspect-ratio: 1 / 1;
  }

  .faq-item {
    padding: 0 18px;
  }

  .faq-question {
    font-size: 14.5px;
  }
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.section-head p + p {
  margin-top: 12px;
}

.split-copy > p.about-lead {
  color: var(--ink-soft);
  font-size: 16.5px;
  font-weight: 500;
}

.about-stack {
  display: grid;
  gap: 14px;
}

.about-stack img {
  aspect-ratio: 16 / 9;
}

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

.team-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
  border-color: #f0cdc9;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.team-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.team-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Pagination (blog / product / case list)
   -------------------------------------------------------------------------- */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 5vw, 52px);
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination li {
  margin: 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pagination a.page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-numbers.current {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}
