/* balatat.com — Certificate. Page styles on top of shared/theme.css (the Dial theme). */

/* ───────── partner ───────── */
.c-hero { display: grid; gap: 22px; }
.c-hero .pills { margin-block-start: 4px; }
.c-lab { display: grid; gap: 14px; justify-items: start; }
.c-lab-head { display: flex; align-items: center; gap: 14px; }
.c-lab-logo { flex: none; display: block; width: 76px; height: 76px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 6px; }
.c-lab-logo img { width: 100%; height: 100%; object-fit: contain; }           /* their logo, untouched */
.c-lab-place { font-size: var(--fs-s); color: var(--ink-2); }
.c-lab-list { display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.c-lab-list li { position: relative; padding-inline-start: 16px; }
.c-lab-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--deep); }
:lang(ar) .c-lab-list { line-height: 1.75; }
.c-out { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; font-size: 14px; font-weight: 500; }
.c-out svg { flex: none; }
.c-rows .c-out { display: flex; width: max-content; margin-block: 0 -6px; }
.c-lab .c-out { margin-block: -8px -12px; }

/* ───────── model ───────── */
.c-model { display: grid; gap: 22px; }
.c-why .sec-head { margin-block-end: 10px; }
.c-why-q { font-size: 19px; line-height: 1.45; font-weight: 300; letter-spacing: -.01em; max-width: 30em; text-wrap: pretty; }
:lang(ar) .c-why-q { line-height: 1.8; }
.c-proofs { display: grid; gap: 12px; }
.c-proof { display: grid; gap: 8px; align-content: start; justify-items: start; }
.c-k { font-size: 11px; line-height: 1.5; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.c-proof-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.c-proof-h .h3 { font-size: 20px; }
.c-p { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.c-soon { box-shadow: none; background-image: none; background: none; outline: 1px dashed var(--ink-3); outline-offset: -1px; color: var(--ink-2); }
.c-go { display: inline-flex; align-items: center; min-height: 44px; margin-block-end: -12px; font-size: 14px; font-weight: 500; }

.c-steps { display: grid; gap: 0; margin-block-start: 6px; }
.c-step { position: relative; display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.c-step svg { flex: none; color: var(--ink); }
.c-step .d { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.c-step .a { stroke: var(--maroon); stroke-width: 1.5; }
.c-steps.is-in .d { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.6, 0, .2, 1) calc(var(--s) * .32s); }
.c-steps.is-in .a { transition-delay: calc(var(--s) * .32s + .55s); }
.c-step b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.c-step small { display: block; font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); }
.c-step + .c-step::before { content: ""; position: absolute; inset-inline-start: 23.5px; inset-block-start: -7px; height: 14px; border-inline-start: 1px dashed var(--ink-3); }

/* ───────── reports area ───────── */
.c-will { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; border-radius: var(--r-card); border: 1px dashed var(--ink-3); text-align: center; color: var(--ink-2); }
.c-will-t { font-size: 17px; font-weight: 300; color: var(--ink); }
.c-reports .note { margin-block-start: 12px; }

/* ───────── gallery ───────── */
.c-gal-head { display: grid; gap: 0; margin-block-end: 18px; }
.c-gal-head .sec-head { margin-block-end: 6px; }
.c-model, .c-reports, .c-gal, .c-exam, .c-faq { padding-block: 36px; }
@media (min-width: 700px) { .c-model, .c-reports, .c-gal, .c-exam, .c-faq { padding-block: 48px; } }
@media (min-width: 900px) { .c-model, .c-reports, .c-gal, .c-exam, .c-faq { padding-block: 60px; } .c-faq { padding-block-end: 96px; } }
.c-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.c-tile { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(21, 23, 28, .08); cursor: zoom-in; transition: transform .5s var(--ease); }
.c-tile:hover { transform: translateY(-3px); }
.c-tile:active { transform: scale(.98); }
.c-tile img { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: contain; border-radius: 15px; }
.c-tile-pad img { inset: 10%; width: 80%; height: 80%; border-radius: 0; }
.c-zoom { position: absolute; inset-inline-end: 8px; inset-block-end: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px var(--line); }
.c-zoom::before, .c-zoom::after { content: ""; position: absolute; inset: 13.25px 8.5px auto; height: 1.5px; border-radius: 2px; background: var(--ink); }
.c-zoom::after { transform: rotate(90deg); }
.c-name { margin-block-start: 10px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.c-desc { margin-block-start: 2px; font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); }
.c-gal-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 18px; }
.c-gal-foot .tag, .c-photos .tag { white-space: normal; line-height: 1.4; }

/* ───────── laboratory ───────── */
.c-photos-row { display: flex; flex-wrap: wrap; gap: 8px; }
.c-photos img { min-width: 0; height: auto; border-radius: 14px; background: var(--wash); }
.c-photos .land { flex: 1.5 1 0; }
.c-photos .port { flex: .6664 1 0; }
.c-photos .land:first-child { flex-basis: 100%; }
.c-photos figcaption { margin-block-start: 10px; }
.c-rows { margin: 22px 0 0; }
.c-rows > div { display: grid; gap: 2px; padding-block: 12px; border-block-start: 1px solid var(--line); }
.c-rows > div:last-child { border-block-end: 1px solid var(--line); padding-block-end: 4px; }
.c-rows dt { font-size: var(--fs-s); color: var(--ink-2); }
.c-rows dd { margin: 0; font-size: 14.5px; line-height: 1.5; }
:lang(ar) .c-rows dd { line-height: 1.75; }

/* ───────── questions ───────── */
.c-faq { display: grid; gap: 8px; padding-block-end: 64px; }
.c-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.c-cta .btn { flex: 1 1 auto; }
.c-faq-list { margin-block-start: 18px; border-block-end: 1px solid var(--line); }
.c-faq-list details { border-block-start: 1px solid var(--line); }
.c-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding-block: 12px; cursor: pointer; list-style: none; font-size: 16px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.c-faq-list summary::-webkit-details-marker { display: none; }
:lang(ar) .c-faq-list summary { line-height: 1.6; }
.c-faq-list details p { padding-block-end: 18px; padding-inline-end: 32px; max-width: 38em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.plus { position: relative; flex: none; width: 14px; height: 14px; margin-inline-end: 4px; }
.plus::before, .plus::after { content: ""; position: absolute; inset-block-start: 6.25px; inset-inline: 0; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] > summary .plus::after { transform: rotate(0deg); }

/* ───────── lightbox (light, like the phone menu) ───────── */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #fff; opacity: 0; transition: opacity .3s; padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px); }
.lb.is-open { opacity: 1; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding-inline: 20px 6px; }
.lb-count { font-size: 12px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lb-x { width: 44px; height: 44px; display: grid; place-items: center; }
.lb-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: none; width: 100%; height: 100%; display: grid; place-items: center; padding: 8px 16px; scroll-snap-align: center; scroll-snap-stop: always; }
.lb-slide { min-height: 0; overflow: hidden; }
.lb-slide img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.lb-foot { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 8px 10px 14px; }
.lb-cap { display: grid; gap: 1px; text-align: center; font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); }
.lb-cap b { font-size: 15px; font-weight: 500; color: var(--ink); }
.lb-nav { position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(21, 23, 28, .22); background: #fff; transition: opacity .2s, transform .12s; }
.lb-nav:active { transform: scale(.94); }
.lb-nav:disabled { opacity: .3; cursor: default; }
.lb-chev { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-block-start: 1.5px solid var(--ink); border-inline-end: 1.5px solid var(--ink); }
.lb-next .lb-chev { transform: translate(-70%, -50%) rotate(45deg); }
.lb-prev .lb-chev { transform: translate(-30%, -50%) rotate(-135deg); }
[dir="rtl"] .lb-next .lb-chev { transform: translate(-30%, -50%) rotate(-45deg); }
[dir="rtl"] .lb-prev .lb-chev { transform: translate(-70%, -50%) rotate(135deg); }

/* ───────── tablet ───────── */
@media (min-width: 700px) {
  .c-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: end; }
  .c-hero .page-head { padding-block-end: 0; }
  .c-lab-logo { width: 88px; height: 88px; }
  .c-model { gap: 28px; }
  .c-why-q { font-size: 22px; }
  .c-proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .c-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block-start: 14px; }
  .c-step { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0; }
  .c-step + .c-step::before { inset-inline-start: -14px; inset-block-start: 24px; width: calc(100% - 100% + 0px); height: 0; border: 0; }
  .c-step::after { content: ""; position: absolute; inset-inline: 62px 0; inset-block-start: 24px; border-block-start: 1px dashed var(--ink-3); }
  .c-step:last-child::after { display: none; }
  .c-will { padding-block: 56px; }
  .c-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .c-photos-row { flex-wrap: nowrap; gap: 12px; }
  .c-photos .land:first-child { flex-basis: 0; }
  .c-photos img { border-radius: 18px; }
  .c-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .c-rows > div { align-content: start; }
  .c-rows > div:nth-last-child(2) { border-block-end: 1px solid var(--line); }
  .c-cta .btn { flex: 0 0 auto; }
  .lb-slide { padding: 12px 40px; }
  .lb-foot { padding: 12px 40px 24px; }
  .lb-bar { padding-inline: 40px 28px; }
}
@media (min-width: 900px) {
  .c-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; }
  .c-why-q { font-size: 24px; }
  .c-gal-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px; }
  .c-gal-head .sec-head { margin: 0; }
  .c-gal-head .note { text-align: end; max-width: 30em; padding-block-end: 6px; }
  .c-tiles { gap: 18px; }
  .c-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 64px; align-items: start; }
  .c-faq-list { margin: 0; }
  .c-faq-side { position: sticky; top: 24px; }
  .c-cta { margin-block-start: 6px; }
}
@media (min-width: 1180px) {
  .c-model { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 64px; row-gap: 40px; align-items: start; }
  .c-steps { grid-column: 1 / -1; }
}
details:not([open]) > p { display: none; }
