/* ============================================================
   Out of the Box — page-level components
   (loaded after site.css on every interior page)
   ============================================================ */

/* active nav state */
.nav-links a.active { color: var(--blue); background: var(--blue-tint); }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--blue-tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero .wrap { padding-block: clamp(40px, 6vw, 78px); position: relative; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--slate);
  font-family: var(--display); font-weight: 600; margin-bottom: 20px; flex-wrap: wrap;
}
.page-hero .breadcrumb a { color: var(--slate); }
.page-hero .breadcrumb a:hover { color: var(--blue); }
.page-hero .breadcrumb svg { width: 14px; height: 14px; opacity: .5; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 18px; max-width: 56ch; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,5vw,64px); align-items: center; }
.page-hero-grid .ph { box-shadow: var(--shadow-md); }

/* decorative cube outline */
.page-hero .cube-deco {
  position: absolute; right: -60px; top: -40px; width: 280px; height: 280px; opacity: .06; z-index: 0;
  background: var(--blue); -webkit-mask: var(--cube-mask) center/contain no-repeat; mask: var(--cube-mask) center/contain no-repeat;
}

/* ---------- generic split row ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,68px); align-items: center;
}
.split.media-lg { grid-template-columns: 1.1fr .9fr; }
.split + .split { margin-top: clamp(40px, 6vw, 80px); }
.split .ph { box-shadow: var(--shadow-md); }
.split.flip .media { order: 2; }

/* ---------- checklist ---------- */
.checklist { display: grid; gap: 13px; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.checklist { padding: 0; margin-left: 0; }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-tint);
  display: grid; place-items: center; color: var(--blue); margin-top: 1px;
}
.checklist .tick svg { width: 14px; height: 14px; }
.checklist span.tx { font-size: 15.5px; color: var(--ink-2); }
.checklist span.tx strong { font-family: var(--display); }

/* ---------- numbered service block ---------- */
.svc-block { position: relative; }
.svc-block .kicker {
  display: inline-flex; align-items: baseline; gap: 12px; margin-bottom: 10px;
}
.svc-block .kicker .nn {
  font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff;
  background: var(--blue); width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center;
  box-shadow: var(--shadow-blue);
}

/* ---------- capabilities grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cap {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; transition: border-color .2s, transform .2s;
}
.cap:hover { border-color: var(--blue-tint-2); transform: translateY(-3px); }
.cap .ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.cap .ico svg { width: 21px; height: 21px; }
.cap h4 { font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cap p { font-size: 14px; color: var(--slate); line-height: 1.45; }

/* ---------- value cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value-card {
  padding: 30px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-card .ico {
  width: 54px; height: 54px; border-radius: 15px; background: var(--blue); color: #fff;
  display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow-blue);
}
.value-card .ico svg { width: 27px; height: 27px; }
.value-card h3 { font-size: 21px; margin-bottom: 10px; }
.value-card p { color: var(--slate); font-size: 15.5px; }

/* ---------- team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.team-card { text-align: left; }
.team-card .ph { aspect-ratio: 4/5; border-radius: var(--radius); margin-bottom: 14px; }
.team-card .name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.team-card .role { color: var(--blue); font-size: 14px; font-family: var(--display); font-weight: 600; }
.team-card .bio { color: var(--slate); font-size: 14px; margin-top: 6px; }

/* ---------- gallery ---------- */
.gallery3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery3 .ph { aspect-ratio: 4/3; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filters .fbtn {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--slate); cursor: pointer; transition: all .15s;
}
.filters .fbtn:hover { border-color: var(--blue); color: var(--blue); }
.filters .fbtn.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.work-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-card .media { aspect-ratio: 3/2; position: relative; }
.work-card .media .ph { height: 100%; border: none; border-radius: 0; }
.work-card .media .tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--blue-dark); font-family: var(--display); font-weight: 700;
  font-size: 12px; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.work-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.work-card h3 { font-size: 20px; margin-bottom: 8px; }
.work-card p { color: var(--slate); font-size: 14.5px; flex: 1; }
.work-card .meta { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.work-card .meta .m .n { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--blue); }
.work-card .meta .m .l { font-size: 11.5px; color: var(--slate-2); text-transform: uppercase; letter-spacing: .06em; }
.work-card.no-media { align-self: start; }
.work-card.no-media > .tag { align-self: flex-start; margin: 22px 22px 0; background: #EEF3FA; color: var(--blue-dark); font-family: var(--display); font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; }
.work-card.no-media .body { padding-top: 14px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(30px,4vw,52px); align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,3vw,40px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-side { display: grid; gap: 18px; }
.info-card { background: var(--blue-darker); color: #cfe0f4; border-radius: var(--radius-lg); padding: 30px; }
.info-card h3 { color: #fff; font-size: 20px; margin-bottom: 18px; }
.info-card .row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.info-card .row:last-child { border-bottom: none; }
.info-card .row svg { width: 20px; height: 20px; color: #6fa8e8; flex: none; margin-top: 2px; }
.info-card .row .lbl { font-size: 12.5px; color: #8ba8cf; text-transform: uppercase; letter-spacing: .08em; }
.info-card .row .val { color: #fff; font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.info-card .row a.val:hover { color: #9ec3f0; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-card .ph { border-radius: 0; border: none; min-height: 220px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink);
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; transition: transform .25s; }
.faq-q .ic svg { width: 15px; height: 15px; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a .inner { padding: 0 24px 22px; color: var(--slate); font-size: 15.5px; line-height: 1.6; }

/* ---------- intro band (light, centered) ---------- */
.band-tint { background: var(--mist); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .page-hero-grid, .split, .split.media-lg { grid-template-columns: 1fr; }
  .split.flip .media { order: -1; }
  .page-hero-grid .media { order: -1; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cap-grid, .team-grid, .work-grid, .gallery3, .form-row { grid-template-columns: 1fr; }
}
