/* Kona V2: packages, our work, about, contact and request-a-quote page rules. Loaded after site.css on
   every page, so every rule is scoped to .pi, the class these five pages set on their sections. */

/* two screens as two groups: each group one screen's part, the second starting --padt under its top */
main>.section.pi.g2>.wrap{display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);row-gap:calc(var(--padt) + var(--padb) + var(--bar));height:100%}
main>.section.pi.g2>.wrap>*{min-height:0;align-self:start}
main>.section.pi.g2>.wrap>.group.split{height:100%;align-self:stretch}
@media (max-width:1023px){
  main>.section.pi.g2>.wrap{grid-template-rows:auto auto;row-gap:var(--s-9);height:auto}
  main>.section.pi.g2>.wrap>.group.split{height:auto}
}

/* splits: the picture fills the section's content window at desktop, so each section ends on its padding */
@media (min-width:1024px){
  .pi .split>.frame{height:calc(100svh - var(--padt) - var(--padb) - var(--bar));max-height:none}
}

/* the sub-heading that opens a second group (no second h2 in a section) */
.pi .pi-sub{font-size:var(--t-h3);text-transform:uppercase;margin-bottom:var(--s-3)}
.pi .pi-sub+.t-lead{margin:0 0 var(--s-5)}

/* heading sizes: under the 34px phone h1, h2 and figures stay smaller */
@media (max-width:639px){
  .pi .section-head h2{font-size:30px}
  .pi .pkg-price{font-size:30px}
}

/* packages: cards with icon rows, steps in one column */
.pi .pkg{padding:var(--s-5)}
.pi .pkg h3{min-height:2.1em;margin-bottom:var(--s-2)}
.pi .pkg dl{margin:var(--s-3) 0}
.pi .pkg dl div{align-items:center;gap:var(--s-3);padding:7px 0}
.pi .pkg dt{display:flex;align-items:center;gap:8px}
.pi .pkg dt .i{color:var(--brown);flex:none}
.pi .pkg dd{margin:0;text-align:right}
.pi .pkg-fit{margin:0 0 var(--s-4)}
.pi .steps{gap:var(--s-4)}
.pi .steps li{grid-template-columns:48px 1fr;padding-bottom:var(--s-3)}
.pi .steps .step-n{font-size:40px;color:var(--brown)}
.pi .steps h4{font:500 22px/1.1 var(--font-display);text-transform:uppercase;margin:0 0 4px}
.pi .incl h3{font-size:22px}
.pi .incl{margin-top:0}

/* our work: the second group's portrait photographs set square */
.pi .work-grid--sq .work>img{aspect-ratio:1/1}
.pi .group>.ctas{margin-top:var(--s-6)}

/* forms: a clear focus ring on every field; tap-sized contact links; side photograph fills the column */
.pi .form input:focus,.pi .form select:focus,.pi .form textarea:focus{outline:3px solid var(--ink);outline-offset:2px;border-color:var(--ink)}
.pi .facts a{display:inline-flex;align-items:center;min-height:44px}
.pi .facts div{padding:2px 0;align-items:center}
.pi .form-status{margin-top:var(--s-4)}
@media (min-width:1024px){
  .pi .split>.contact-side{display:flex;flex-direction:column;height:calc(100svh - var(--padt) - var(--padb) - var(--bar))}
  .pi .contact-side .frame{flex:1 1 auto;min-height:200px;max-height:none;height:auto}
  .pi .contact-side .frame img{height:100%}
}
.pi .mini-steps{list-style:none;padding-left:0;counter-reset:pi-step}
.pi .mini-steps li{counter-increment:pi-step}
.pi .mini-steps li::before{content:"Step " counter(pi-step);display:block;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--brown)}

/* packages: a photograph heads each card; the h2 on one line */
#packages.pi .section-head{max-width:none}
.pi .pkg>.pkg-img{width:calc(100% + 2*var(--s-5));max-width:none;margin:calc(-1*var(--s-5)) calc(-1*var(--s-5)) var(--s-4);height:84px;object-fit:cover}
.pi .pkg dd{white-space:nowrap}
.pi .pkg-fit{flex:1}
.pi .incl h3,.pi .pi-sub{font-size:var(--t-h3)}
@media (max-width:639px){
  .pi h3,.pi .incl h3,.pi .pi-sub{font-size:22px}
  .pi .steps .step-n{font-size:28px}
  .pi .pkg>.pkg-img{height:180px}
}

/* the kit's field ring (motion.css, loaded after this file) draws in orange, under 3:1 on the grey ground:
   these five pages' fields take an ink ring instead */
html:not([data-pi-x]) .pi .form .field :is(input, select, textarea):focus{outline:3px solid var(--ink);outline-offset:2px;border-color:var(--ink)}
