/* CIS v2 "bold brand" page CSS: only what sits inside a visual and the kit lacks (tasteskill plan, section 3) */

/* the client's logo image in the header and footer (BRIEF): 54px tall on a desktop, 42 on a phone */
.nav__logo img, .footer__logo img { display: block; height: 54px; width: auto; }
@media (max-width: 639px) { .nav__logo img, .footer__logo img { height: 42px; } }

/* ---------------------------------------------------------------- hero: the photo hero's layer is one picture, a wall of eight
   field photographs (three tiles on a phone, four on a tablet), each shown under its own width; the words sit in the kit's solid box */
.hero--photo .hero__lead { max-width: 44ch; }

/* ---------------------------------------------------------------- #about: the statement and the regions, the racks developing beside them */
.about__text { display: flex; flex-direction: column; gap: var(--s-6); }
.about__lead { font-size: var(--t-lead); line-height: 1.55; max-width: 46ch; }
.about__regions { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); }
.about__regions > li { display: grid; gap: var(--s-1); padding-top: var(--s-4); border-top: 2px solid var(--accent); }
.about__place { font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.about__what { color: var(--muted); }
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: 100%; }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { #about .about { grid-template-rows: minmax(0, 1fr); height: 100%; } #about .about > * { min-height: 0; } }
@media (max-width: 1023px) { .about__regions { margin-top: var(--s-4); } .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }
@media (max-width: 639px) { main > .hero.hero--photo { --photo: 40svh; } }
@media (max-width: 639px) { .about__regions { gap: var(--s-5) var(--gutter); } .develop { aspect-ratio: 1 / 1; } }

/* ---------------------------------------------------------------- #services: four large numbered rows, two real photographs each */
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.svc__row { align-items: stretch; height: max(180px, calc((100svh - 372px) / 2)); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.svc__text { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--s-5); align-content: start; }
.svc__num { grid-row: 1 / span 2; font: var(--display-weight) 64px/0.9 var(--font-display); letter-spacing: var(--display-tracking-xl); color: var(--accent); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.svc__text h3 { font-size: var(--t-h3); margin: 0 0 var(--s-3); }
.svc__text p { max-width: 44ch; font-size: var(--t-lead); line-height: 1.5; }
@media (max-width: 639px) { .svc__text p { font-size: var(--t-body); } }
.svc__pic { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 1023px) {
  .svc__row { height: auto; }
  .svc__row > .svc__pic { grid-column: span 6; height: 160px; }
  .svc__row > .svc__pic.start-7 { grid-column: 1 / span 6; }
}
@media (max-width: 639px) {
  .svc__num { font-size: 40px; }
  .svc__row > .svc__pic { height: 124px; }
  #services { --hm: 2; }
}

/* ---------------------------------------------------------------- #brands: words and a rack close-up left, the real marks right
   as a ruled ledger of two columns (the mark, then its name on the same line) */
#brands .brands-grid { grid-template-rows: minmax(0, 1fr); }
.brands__text { display: flex; flex-direction: column; min-height: 0; }
.brands__side { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.brands__pic { display: block; width: 100%; height: 100%; min-height: 0; max-height: 460px; object-fit: cover; border-radius: var(--r-lg); }
.brands__note { font-size: var(--t-lead); line-height: 1.5; }
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); column-gap: var(--gutter); align-self: stretch; }
.brands > li { display: flex; align-items: center; gap: var(--s-5); border-top: 1px solid var(--line-strong); padding-block: var(--s-3); }
.brands > li > img { flex: none; width: 96px; height: 64px; object-fit: contain; object-position: 0 50%; }
.brands > li > span { font-size: var(--t-lead); }
@media (max-width: 1023px) {
  .brands { margin-top: var(--s-7); grid-auto-rows: auto; }
  .brands__side { grid-template-rows: auto; }
  .brands__pic { height: 320px; }
}
@media (max-width: 639px) {
  .brands > li { gap: var(--s-3); } .brands > li > img { width: 64px; height: 44px; } .brands > li > span { font-size: var(--t-body); }
  .brands__side { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); } .brands__pic { height: 200px; } .brands__note { font-size: var(--t-body); }
}

/* ---------------------------------------------------------------- #quote: the one CIS-blue brand band; the form on a white card */
.quote__text { display: flex; flex-direction: column; }
.quote__side { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.quote__contacts { display: grid; gap: var(--s-6); margin: 0; align-content: start; }
.quote__contacts > div { display: grid; gap: var(--s-1); }
.quote__contacts dd { margin: 0; font-size: var(--t-lead); line-height: 1.6; }
.quote__pic { display: block; width: 100%; height: 100%; min-height: 0; max-height: 420px; object-fit: cover; border-radius: var(--r-md); }
.quote__form {
  --bg: var(--p-bg); --surface: var(--p-surface); --ink: var(--p-ink); --muted: var(--p-muted);
  --action: var(--p-action); --action-ink: var(--p-action-ink);
  --line: color-mix(in oklab, var(--p-ink) 14%, transparent); --line-strong: color-mix(in oklab, var(--p-ink) 30%, transparent);
  background: var(--bg); color: var(--ink); border-radius: var(--r-lg); padding: var(--s-7); align-self: start;
}
.field__hint { font-weight: 400; color: var(--muted); }
@media (max-width: 1023px) { .quote__form { margin-top: var(--s-7); } .quote__pic { height: 280px; } }
@media (max-width: 639px) {
  #quote { --hm: 2; }
  .quote__side { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .quote__pic { height: 150px; }
  .quote__form { padding: var(--s-5); }
}

/* ---------------------------------------------------------------- #visit: the address, hours and the owner's Google map */
.visit__text { display: grid; gap: var(--s-5); align-content: start; }
.visit__text .section-head { margin-bottom: 0; }
.visit__address { font: var(--display-weight) var(--t-h3)/1.25 var(--font-display); letter-spacing: var(--display-tracking); font-style: normal; max-width: 30ch; }
.visit__now { color: var(--muted); }
@media (min-width: 640px) { .visit__text .btn-row { align-items: center; } }
.visit__map { height: 660px; overflow: hidden; padding: 0; }
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1023px) { .visit__map { height: 360px; margin-top: var(--s-7); } }
@media (max-width: 639px) { .visit__map { height: 300px; } }

/* the close: the one large button keeps its height (the row never squeezes it) */
#contact .closing__cta > .btn { flex: none; }
/* footer-visit: the address at the h3 size, so the close, the address and the hours share one screen on the 732 split */
.footer--visit .footer__address { font-size: var(--t-h3); line-height: 1.25; }
/* footer: the logo leads the nav row */
.footer__nav .footer__logo { margin-right: var(--s-4); }
@media (max-width: 639px) { .footer__nav .footer__logo { flex-basis: 100%; margin-right: 0; } }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
