/* Neil and Son: page CSS on top of the kit (system.css). Only what the kit lacks. */

/* logo-full.png has white space round the artwork (art 820x250 at 64,102 of 945x456): show only the art */
.logo { --h: 44px; display: block; height: var(--h); aspect-ratio: 820 / 250;
  background: url(/assets/img/logo-full.png) no-repeat 51.2% 49.5% / 115.24% auto; }
.footer .logo { --h: 52px; }
@media (max-width: 639px) { .logo { --h: 34px; } }

/* phone number beside the main button */
.nav__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav__phone svg { width: 18px; height: 18px; color: var(--action); }
@media (max-width: 1180px) { .nav__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* before / after slider. A split photo: before is its left half, after its right half (a 30px bar between). */
.ba-card { display: grid; gap: 12px; }
.ba-card__title { margin: 0; font-size: var(--t-card); font-weight: 500; }
.ba { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 945 / 750; background: var(--g-alt); --pos: 50%; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.ba--two { aspect-ratio: 4 / 3; }
.ba__img { position: absolute; inset: 0; overflow: hidden; }
.ba__img img { position: absolute; top: 0; left: 0; height: 100%; width: 203.2%; max-width: none; object-fit: cover; }
.ba__img--after img { left: -103.2%; }
.ba--two .ba__img img { width: 100%; left: 0; }
.ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgb(15 29 44 / .25); display: grid; place-items: center; pointer-events: none; color: var(--action); }
.ba__knob svg { width: 22px; height: 22px; }
.ba__control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.ba__control input { width: 100%; height: 44px; margin: 0; accent-color: var(--action); cursor: ew-resize; }

/* two photos side by side, before then after */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
.duo--one { grid-template-columns: 1fr; }
.duo--one img { aspect-ratio: 4 / 3; }

/* home services: the chosen service's before above its after */
.pair { display: grid; gap: 12px; }
.pair[hidden] { display: none; }
.pair__half { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 945 / 400; }
.pair__half img { position: absolute; top: 0; left: 0; height: 100%; width: 203.2%; max-width: none; object-fit: cover; }
.pair__half--after img { left: -103.2%; }
.pair--two .pair__half img, .pair--single .pair__half img { width: 100%; }
.pair--two .pair__half--after img { left: 0; }
.pair--single .pair__half { aspect-ratio: 945 / 812; }
#services .rows li { padding-block: 10px; }

/* rows link to their pages */
.rows a.rows__go { display: inline-flex; align-items: center; min-height: 44px; color: var(--action); font-weight: 500; white-space: nowrap; }

/* reviews: open columns on the section ground, the real Google mark at the top */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.review figcaption { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; color: var(--muted); }
.review figcaption b { font-weight: 600; color: var(--ink); }
.review--inline { margin-top: 32px; }
@media (max-width: 1023px) { .reviews { grid-template-columns: 1fr; } }

/* inner page heads */
.page-head { padding-top: calc(var(--nav) + 48px); }
.crumbs { margin-bottom: 24px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.hero .crumbs { margin-bottom: 32px; }

/* services index */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin-top: 48px; }
.svc { color: inherit; text-decoration: none; }
.svc .panel { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); }
.svc .panel img { width: 100%; height: 100%; object-fit: cover; }
.svc .svc__title { margin: 16px 0 4px; font-size: var(--t-card); font-weight: 500; }
.svc p { margin: 0; color: var(--muted); }
@media (max-width: 1023px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .svc-grid { grid-template-columns: 1fr; } }

/* portfolio */
.ba-grid { row-gap: 48px; margin-top: 48px; }
.gal-grid { row-gap: 32px; }
.gal h3 { margin: 0 0 12px; font-size: var(--t-card); font-weight: 500; }
@media (max-width: 1023px) { .gal.span-3 { grid-column: span 6; } }

/* service pages */
.other-services { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 32px 0 0; padding: 0; font-size: 18px; }
.other-services a { display: inline-flex; min-height: 44px; align-items: center; }

/* contact */
.contact-list { display: grid; gap: 16px; margin: 32px 0 0; }
.contact-list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.contact-list dt { color: var(--muted); font-size: 14px; padding-top: 3px; }
.contact-list dd { margin: 0; font-size: 18px; }
.contact-list a { display: inline-flex; min-height: 44px; align-items: center; margin-block: -12px; }
.form select, .form textarea { width: 100%; font: inherit; font-size: 16px; }
.footer__email { overflow-wrap: anywhere; }

/* simple text pages */
.prose { max-width: 68ch; margin-top: 32px; font-size: 18px; line-height: 1.65; }
.prose h2 { margin-top: 48px; font-size: var(--t-h3); }
.link-list { padding-left: 1.2em; }
.link-list a { display: inline-flex; min-height: 44px; align-items: center; }

::selection { background: #cfe3f7; color: var(--ink); }

/* fixes after the first full render */
.rows a.rows__link { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.rows a.rows__link:hover { color: var(--action); }
.review .ic { align-self: flex-start; margin: 0; }
.other { margin-top: 64px; padding-top: 32px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.other h3 { margin: 0; }
.other .other-services { margin-top: 16px; }
.reviews { row-gap: 48px; }
/* phones: the service hero keeps to its words, buttons and slider */
@media (max-width: 639px) { .hero .review--inline { display: none; } .hero .hero-visual { height: auto; } }
/* gate round 1 */
.review .ic { width: 28px; height: 28px; }
#work .ba { aspect-ratio: 945 / 680; }
#commercial .grid { height: 100%; }
#commercial .develop { height: 100%; margin: 0; }
#commercial .develop img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 639px) { #reviews .review:nth-child(n+4) { display: none; } }
/* phones: the home service list keeps to names, so the list and its photos fit one screen */
@media (max-width: 639px) { #services .rows p { display: none; } #services .rows li { padding-block: 0; } }
/* about: three reviews stacked beside the roof photo */
.reviews--stack { grid-template-columns: 1fr; row-gap: 24px; }
#reviews .develop--tall { height: 100%; margin: 0; }
#reviews .develop--tall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); }
/* service cards: full text in the ink; phones show two a row with the short line */
.svc p { color: var(--ink); }
.svc__line { display: none; }
@media (max-width: 639px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .svc__lead { display: none; }
  .svc__line { display: block; font-size: 15px; }
}
/* a tall develop photo filling its column */
.develop--tall { height: 100%; margin: 0; }
.develop--tall img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
#reviews .develop--tall img { object-position: 50% 30%; }
#sectors .grid, #booking .grid { height: 100%; }
ol.rows { list-style: none; padding-left: 0; }
