/* PeakStack IT Solutions: page CSS. Only what sits inside a visual or the kit lacks: the logo's size,
   one --p-h for the card group, the lit frames of the process steps, the quote form's panel. */

/* panels and lit frames stand on the logo's mint, flat (kind other) */
:root { --ground-bg: var(--p-surface); --ground-surface: var(--p-bg); }

/* the client's logo: a picture with its own wordmark, set taller than a drawn mark */
.nav__logo img { height: 36px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 30px; } }
.footer__logo { display: inline-block; }
.footer__logo img { display: block; height: 72px; width: auto; }
@media (max-width: 639px) { .footer__logo img { height: 56px; } }

/* the hero's window: a white app on the mint frame */
.hero__app { --fx-bg: #ffffff; --fx-surface: var(--p-surface); --fx-ink: var(--p-ink); --fx-muted: var(--p-muted); --fx-accent: var(--p-accent); --fx-accent-ink: var(--p-accent-ink); }
.hero__app .at-corner > .ui-win { width: 640px; }

/* services: one panel height for the two cards */
#services .panel { --p-h: 340px; }
@media (min-width: 640px) and (max-width: 1023px) { #services .panel { --p-h: 480px; } }
@media (max-width: 639px) { #services .panel { --p-h: 260px; } }

/* process: each step's window sits whole on the mint frame, white, in the page's ink (also on the dark band) */
#process .mo-pc__visual--lit {
  --fx-bg: #ffffff; --fx-surface: var(--p-surface); --fx-ink: var(--p-ink); --fx-muted: var(--p-muted);
  --fx-accent: var(--p-accent); --fx-accent-ink: var(--p-accent-ink);
  color: var(--p-ink); overflow: hidden; border-radius: var(--r-lg);
}
#process .mo-pc__visual--lit > .ui { width: min(440px, 100%); flex: none; }
#process.is-live .mo-pc__visuals { border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 640px) {
  #process:not(.is-live) .mo-pc__visual--lit { aspect-ratio: auto; height: 34svh; align-items: flex-start; }
}
@media (max-width: 639px) {
  #process .mo-pc__visual--lit { aspect-ratio: auto; height: 334px; align-items: flex-start; }
}

/* quote: the form on the surface, 48px in */
.quote__panel { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-7); }
@media (max-width: 639px) { .quote__panel { padding: var(--s-5); } }
.quote__contacts .rows__value { text-align: right; }
/* the contacts run long (the email, the full address): under 640 each value goes under its name and may wrap */
@media (max-width: 639px) {
  .quote__contacts > li { grid-template-columns: minmax(0, 1fr); }
  .quote__contacts .rows__value { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; white-space: normal; overflow-wrap: anywhere; }
}

/* card text in the ink (7:1), not the kit's 84% mix, which reads 6.65:1 on this ground */
.card { --c-text: var(--ink); }

/* the keyboard ring: the logo green is 2.5:1 on the light ground, so a deeper green there (5:1); the bright green
   stays on the dark band and footer, where it reads 3.9:1 */
:focus-visible { outline-color: #0b7a44; }
.ground-inverse :focus-visible { outline-color: var(--p-inv-action); }

/* the footer's contact column holds the email and the phone at full size: on a phone it takes the whole row */
@media (max-width: 639px) { .closing__links .footer__col--contact { grid-column: 1 / -1; } }

/* at rest on a phone the process steps stack: the section takes exactly two phone screens, so the next one never peeks in */
@media (max-width: 639px) { #process:not(.is-live) { min-height: calc(2 * 100lvh); } }
