/* ============================================================
   ORIGO - App Development service page (page-specific)
   Shared skeleton lives in /services/service-page.css.
   This file: the "What we build" typology signature - four
   white cards, each with a generic UI motif drawn entirely in
   HTML/CSS (no images). Palette + no-gradient rules inherited.
   ============================================================ */

.ad-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; }
.ad-type-card {
  background: var(--color-white);
  border-radius: 18px;
  padding: 14px 14px 0;
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ad-type-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(10, 10, 10, 0.10); }

.ad-motif {
  background: #F1F3F6;
  border-radius: 14px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
}
.ad-type-card__body { padding: 24px 18px 30px; display: flex; flex-direction: column; flex: 1; }
.ad-type-card__body h3 { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--color-black); margin: 0 0 8px; }
.ad-type-card__body p { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--color-gray-dark); margin: 0; }
.ad-chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.ad-chips span {
  font-family: var(--font-body); font-size: 13px; color: var(--color-gray-mid, #6B6B6B);
  background: var(--color-gray-light); border: 1px solid var(--color-border); padding: 5px 12px; border-radius: 999px;
}

/* --- Motif 1: mobile phone --- */
.ad-phone {
  width: 100px; height: 158px; background: #161616; border-radius: 22px; padding: 7px;
  box-shadow: 0 12px 26px rgba(10, 10, 10, 0.18); position: relative;
}
.ad-phone__notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); z-index: 2;
}
.ad-phone__screen { background: #fff; border-radius: 16px; height: 100%; padding: 20px 11px 11px; display: flex; flex-direction: column; gap: 7px; }
.ad-ln { border-radius: 999px; }
.ad-ln--head { height: 8px; width: 58%; background: #CBD5E6; }
.ad-ln--block { height: 36px; border-radius: 9px; background: #EAF0FA; margin-top: 3px; }
.ad-ln--t1 { height: 6px; width: 82%; background: #E6E6E6; }
.ad-ln--t2 { height: 6px; width: 64%; background: #E6E6E6; }
.ad-ln--btn { margin-top: auto; height: 26px; background: var(--color-blue); }

/* --- Motif 2: web app browser --- */
.ad-browser {
  width: 100%; max-width: 246px; background: #fff; border: 1px solid #E1E1E1; border-radius: 11px;
  overflow: hidden; box-shadow: 0 12px 26px rgba(10, 10, 10, 0.12);
}
.ad-browser__bar { display: flex; align-items: center; gap: 5px; padding: 9px 11px; background: #F1F1F1; border-bottom: 1px solid var(--color-border); }
.ad-dot { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.ad-dot--r { background: #E06C60; } .ad-dot--y { background: #E7B34C; } .ad-dot--g { background: #5FBF6B; }
.ad-browser__url { flex: 1; margin-left: 8px; height: 9px; border-radius: 999px; background: var(--color-border); }
.ad-browser__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ad-tiles { display: flex; gap: 8px; }
.ad-tile { flex: 1; height: 32px; border-radius: 6px; background: #F0F0F0; }
.ad-tile--blue { background: #EAF0FA; }
.ad-chart { display: flex; align-items: flex-end; gap: 7px; height: 48px; }
.ad-chart span { flex: 1; border-radius: 4px 4px 0 0; background: #C7D6F0; }
.ad-chart span.ad-chart--hi { background: var(--color-blue); }

/* --- Motif 3: internal tools table --- */
.ad-table { width: 100%; max-width: 246px; background: #fff; border: 1px solid var(--color-border); border-radius: 11px; overflow: hidden; box-shadow: 0 12px 26px rgba(10, 10, 10, 0.12); }
.ad-table__head { display: flex; gap: 9px; align-items: center; padding: 11px 13px; background: #0A0A0A; }
.ad-table__head .ad-tbar { border-radius: 999px; height: 7px; }
.ad-table__head .ad-tbar--1 { flex: 2; background: rgba(255, 255, 255, 0.55); }
.ad-table__head .ad-tbar--2 { flex: 1; background: rgba(255, 255, 255, 0.28); }
.ad-table__head .ad-tbar--3 { width: 40px; background: rgba(255, 255, 255, 0.28); }
.ad-table__row { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-top: 1px solid #EFEFEF; }
.ad-table__row .ad-tbar { border-radius: 999px; height: 7px; }
.ad-table__row .ad-tbar--1 { flex: 2; background: #DEDEDE; }
.ad-table__row .ad-tbar--2 { flex: 1; background: #ECECEC; }
.ad-status { width: 40px; height: 16px; border-radius: 999px; background: #E7EDF8; flex: none; }
.ad-status--on { background: var(--color-blue); }

/* --- Motif 4: customer portal login --- */
.ad-login {
  width: 100%; max-width: 186px; background: #fff; border: 1px solid var(--color-border); border-radius: 13px;
  padding: 22px 20px; box-shadow: 0 12px 26px rgba(10, 10, 10, 0.12);
  display: flex; flex-direction: column; align-items: center; gap: 11px;
}
.ad-login__avatar { width: 42px; height: 42px; border-radius: 999px; background: #EAF0FA; display: flex; align-items: center; justify-content: center; }
.ad-login__avatar span { width: 18px; height: 18px; border-radius: 999px; background: var(--color-blue); display: block; }
.ad-login__head { width: 66%; height: 7px; border-radius: 999px; background: #CBD5E6; }
.ad-login__input { width: 100%; height: 28px; border-radius: 8px; background: #F2F4F8; border: 1px solid var(--color-border); }
.ad-login__btn { width: 100%; height: 30px; border-radius: 999px; background: var(--color-blue); margin-top: 2px; }

/* --- Signature footnote --- */
.ad-sig-note { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--color-gray-dark); margin: 34px 0 0; }
.ad-sig-note a { font-family: var(--font-head); font-weight: 600; color: var(--color-blue); }
.ad-sig-note a:hover { color: #1857BE; }

/* --- Dark mode: cards adapt; the motifs stay light (they read as app screens) --- */
[data-theme="dark"] .ad-type-card { background: #1a1a1c; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .ad-chips span { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #B5B5BD; }

/* --- Responsive: 2-up holds to 900, single column at 640 --- */
@media (max-width: 640px) {
  .ad-type-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-type-card { transition: none; }
}
