/* TechKonnect Africa — page CSS only where a visual needs it (system.md): the phone frame in the
   hero, the logo beside the name, the spam trap, the textarea. Everything else is the kit's. */

/* the client's logo beside the name (nav and footer) */
.nav__mark { width: 28px; height: 28px; object-fit: contain; flex: none; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; }

/* the hero's picture: PickApp on a phone, standing on the surface ground (sections-library: a .device,
   an 8px bezel, radius 32, its own screen). The phone stands right of centre so the one float card sits
   beside it at the lower left, never on it; under 1024 the float card goes and the phone stands alone. */
.hero__media--device { background: var(--surface); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: flex-end; padding-right: clamp(24px, 6vw, 72px); overflow: hidden; }
.device {
  width: 300px; aspect-ratio: 280 / 570; height: auto; max-height: calc(100% - 64px);
  border: 8px solid var(--ink); border-radius: 32px; background: var(--ink); overflow: hidden; flex: none;
}
.device > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.hero__media--device .ly-float { width: 240px; }
@media (max-width: 1279px) { .hero__media--device { justify-content: center; padding-right: 0; } .hero__media--device .ly-float { display: none; } }
@media (max-width: 1023px) { .device { width: auto; height: calc(100% - 32px); max-height: 560px; } }

/* the spam trap: real visitors never see or fill it */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* the quote form's message box: the field's look, taller */
.form textarea { min-height: 120px; resize: vertical; }

/* picture-develops: the founder's portrait on the split's right column, as tall as the text beside it */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(640px, var(--ly-fit, 640px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 5; margin-top: var(--s-7); } }

/* the footer's contact links on the legal row */
.footer__contact { display: inline-flex; gap: var(--s-4); }

/* the quote form on the alternate ground, 48px in (sections-library booking-form) */
.form-card { background: var(--g-alt, var(--surface)); border-radius: var(--r-lg); padding: var(--s-7); }
@media (max-width: 639px) { .form-card { padding: var(--s-5); } }

/* the quote section's ways to reach us: the real icons, the link, one muted note */
.contact-rows { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; }
.contact-rows > li { display: grid; grid-template-columns: 24px auto 1fr; align-items: center; gap: var(--s-4); min-height: 56px; border-bottom: 1px solid var(--line); }
.contact-rows > li > .muted { justify-self: end; font-size: var(--t-small); }
.contact-rows .link { padding-block: 10px; }
/* service names in the list are links: a full 44px target */
.rows a.rows__name { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }

/* a phone screen in a section's picture slot (service and industry pages): the frame's 4:3 box */
.detail-device { --ratio: 75%; padding: var(--s-6) 0; }
.detail-device.hero__media--device { justify-content: center; padding-right: 0; }
.detail-device .device { width: auto; height: calc(100% - 48px); max-height: 560px; }

/* reading pages (blog, articles, 404): the section grows with the text (Read mode); the landing
   pages keep the one-section-per-screen rule */
main > .section.section--read { height: auto; min-height: 100svh; padding-top: calc(var(--nav) + var(--s-8)); }
.article { max-width: 720px; display: grid; gap: var(--s-5); }
.article h1 { font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); margin: 0; }
.article__body { display: grid; gap: var(--s-4); font-size: 18px; line-height: 1.7; }
.article__body h2 { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: -0.02em; margin: var(--s-6) 0 0; }
.article__body ul, .article__body ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.article__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article__by { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.article__more { max-width: 720px; margin-top: var(--s-9); display: grid; gap: var(--s-5); }
.article__more h2 { font-size: var(--t-h3); }
.blog-list { max-width: 860px; }

/* phones: the hero's phone screen fills its picture frame (no bezel), so the picture carries the
   first screen; the FAQ's side line steps aside so the prices section stays two screens */
@media (max-width: 639px) {
  .hero .hero__media--device { padding: 0; display: block; }
  .hero .device { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; background: none; }
  .hero .device > img { border-radius: 0; }
  .faq-aside { display: none; }
}

/* Desktop: a section is at least its screens and grows with its content, never a fixed height. A short
   window (a laptop at 125% zoom) would otherwise lay a section's last rows over the next section and the
   footer's big link over its columns. The same rule the kit applies from 640 to 1279. */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
  }
  :where(main > :is(section, .section):not(.hero, .section--hero), footer.closing) { display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}

/* "Sample design": the designs made to show each trade (invented business names), told apart from real work */
.has-sample { position: relative; }
.sample-tag {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 999px;
  background: var(--ink, #181715); color: var(--bg, #e8e8e3);
  font-size: 13px; line-height: 1.2; font-weight: 500; letter-spacing: 0.01em;
}
.footer__credits { flex-basis: 100%; font-size: 13px; opacity: 0.85; }
.footer__credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* A page with more than four questions: the heading above, the questions in two columns on a wide screen,
   so the section still fits one screen (every answer stays open, as the kit's FAQ rule asks). */
.faq-head { margin-bottom: 0; }
.faq-head .section-head { margin-bottom: 0; }
@media (min-width: 1024px) {
  .faq--two { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .faq--two > :nth-child(odd) { grid-column: 1 / span 5; }
  .faq--two > :nth-child(even) { grid-column: 7 / span 6; }
  .faq--two > .faq__item:nth-child(2) { padding-top: 0; }
}
