/* ========================================================================
   NaviA – Section styles part 3 (No.9 onwards)
   ======================================================================== */

/* ===== No.9 Cases ===== */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card .img-slot {
  aspect-ratio: 5 / 3;
  background:
    repeating-linear-gradient(135deg, var(--gray-100) 0 12px, var(--gray-200) 12px 24px);
  border-bottom: 1px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
  position: relative;
}
.case-card .img-slot::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
}
.case-card .img-slot span {
  position: relative;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: .04em;
}
.case-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.case-card .badges-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.case-card .badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.case-card .badge.industry { background: var(--navy-100); color: var(--navy-600); }
.case-card .badge.result { background: var(--orange-soft); color: var(--orange); }
.case-card h4 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.5;
}
.case-card dl { margin: 0 0 16px; }
.case-card dt {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-600);
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.case-card dd {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.8;
}
.case-card .highlight {
  margin-top: auto;
  padding: 16px 18px;
  background: linear-gradient(95deg, var(--orange-soft), #fff);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.7;
}

/* ===== No.10 FAQ ===== */
.faq-wrap {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item.open { border-color: var(--navy-300); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  align-items: center;
}
.faq-q .qmark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.faq-q .plus {
  position: relative;
  width: 16px; height: 16px;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 2px;
  background: var(--navy-600);
  transition: transform .3s;
}
.faq-q .plus::after { transform: rotate(90deg); }
.faq-item.open .faq-q .plus::after { transform: rotate(0deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.2, .7, .2, 1);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 24px 24px 80px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.95;
}

/* ===== No.11 Closing ===== */
.closing {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(237, 108, 0, .25) 0%, transparent 60%),
    linear-gradient(160deg, #0A1E38 0%, #122a4d 50%, #1E4D7B 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(255, 255, 255, .04) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, .04) 95%);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.closing .deco {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(237, 108, 0, .35), rgba(237, 108, 0, 0) 70%);
  right: -150px; top: -150px;
  pointer-events: none;
}
.closing .inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}
.closing .big-logo { display: inline-flex; margin-bottom: 36px; }
.closing h2 {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 26px;
  color: #fff;
}
.closing h2 em { font-style: normal; color: var(--orange-light); }
@media (min-width: 881px){
  /* On PC, allow the closing H2 to extend to the container's full width by
     cancelling the container's left/right gutter padding for this element. */
  .closing h2 { margin-left: -24px; margin-right: -24px; }
  /* Remove the container gutter (left/right padding) on the closing inner only. */
  .closing > .container.inner { padding-left: 0; padding-right: 0; margin-left: auto; margin-right: auto; max-width: 1180px; width: 1180px; }
  .closing > .container.inner > h2 { margin-left: 0; margin-right: 0; }
}
.closing .lead {
  font-size: clamp(14px, 1.4vw, 16px);
  color: rgba(255, 255, 255, .75);
  line-height: 2;
  margin-bottom: 44px;
}
.closing .ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}
.closing .ctas .btn{
  max-width: 100%;
  white-space: normal;
  text-align: center;
  word-break: keep-all;
  line-height: 1.4;
}
@media (max-width: 640px){
  .closing .ctas .btn{
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 15px;
  }
  .closing .ctas .btn-lg{
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
.closing .note {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

/* ===== Section bridge (downward arrow) ===== */
.bridge {
  background: var(--navy-700);
  padding: 32px 0;
  text-align: center;
  color: #fff;
  position: relative;
}
.bridge .arrow-down {
  width: 32px; height: 32px;
  margin: 0 auto;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(45deg);
}

/* ===== Toolbar — hero variant switcher (Tweaks) ===== */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(10, 30, 56, .22);
  padding: 18px 18px 16px;
  min-width: 240px;
  font-size: 13px;
  display: none;
  border: 1px solid var(--gray-200);
}
.tweaks-panel.show { display: block; animation: tweakIn .25s; }
@keyframes tweakIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.tweaks-panel .title {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--navy-700);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-panel .close {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--gray-500);
}
.tweaks-panel .close:hover { background: var(--gray-100); }
.tweaks-panel .group { margin-top: 12px; }
.tweaks-panel .group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 700;
}
.tweaks-panel .seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--gray-100);
  border-radius: 10px;
}
.tweaks-panel .seg button {
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-700);
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.tweaks-panel .seg button.active {
  background: var(--navy-600);
  color: #fff;
}

/* Tweaks open/close FAB (visible whenever tweaks panel exists) */
.tweaks-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  background: var(--navy-600);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 47, 123, .35);
  transition: transform .2s, background .2s;
  display: none; /* hidden by default; shown when tweaks-available */
}
.tweaks-fab.show { display: flex; }
.tweaks-fab:hover { transform: scale(1.05); background: var(--navy-400); }
.tweaks-fab svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .cases-grid { grid-template-columns: 1fr; }
  .faq-a-inner { padding-left: 24px; padding-top: 0; }
  .closing .ctas { flex-direction: column; align-items: stretch; padding: 0 24px; }
  .closing .btn { width: 100%; }
}
