/* google-maps-seo.css: the Google Maps & SEO page's own placing and sizing. Components and tokens come from design\.
   Scenes keep their words at full size (Lessons 1-3): the layout gives them room, their glass stays on the photo's calm
   side at every width. */

/* ---------- 1. the header: the town full-bleed, the Maps list climbing at the left, the words at the right ---------- */
.mapshead { display: grid; min-height: calc(100svh - var(--header-h)); }
.mapshead__media video, .mapshead__media .kit-first { object-position: 50% 62%; }
.mapshead__wash { background: linear-gradient(270deg, rgba(13, 13, 15, 0.94) 0%, rgba(13, 13, 15, 0.82) 32%, rgba(13, 13, 15, 0.25) 60%, rgba(13, 13, 15, 0.12) 100%), linear-gradient(180deg, rgba(13, 13, 15, 0.4) 0%, rgba(13, 13, 15, 0) 26%); }
.mapshead__in { --side: max(var(--gutter), calc((100% - var(--max-w)) / 2)); display: grid; grid-template-columns: var(--side) minmax(0, 1fr) minmax(0, 520px) var(--side); }
.mapshead__stage { grid-column: 2; position: relative; min-height: 540px; margin: 44px 40px 44px 0; }
.mapshead__scene { position: absolute; inset: 0; }
.mapshead__stage .stop { top: auto; bottom: 0; left: 0; right: auto; }
.mapshead__copy { grid-column: 3; display: grid; gap: 16px; align-content: center; padding: 36px 0; }
.mapshead .phead__line { margin-top: 0; }
.mapshead .phead__title { font-size: min(clamp(2.5rem, 1.6rem + 3.4vw, 4.75rem), 8vh); }
@media (max-width: 999px) {
  .mapshead__in { grid-template-columns: minmax(0, 1fr); }
  .mapshead__copy { grid-column: 1; grid-row: 1; padding: 28px var(--gutter) 28px; }
  .mapshead__stage { grid-column: 1; grid-row: 2; height: 560px; min-height: 0; margin: 0; }
  .mapshead__scene { inset: 8px var(--gutter) 16px; }
  .mapshead__media, .mapshead__wash { top: auto; height: 560px; }
  .mapshead__wash { background: linear-gradient(180deg, var(--c-night) 0%, rgba(13, 13, 15, 0.25) 18%, rgba(13, 13, 15, 0.08) 100%); }
  .mapshead__stage .stop { left: auto; right: var(--gutter); bottom: 16px; }
}

/* ---------- 2. already searching: the arsenal's demand-pings on the designed ground ---------- */
.searching { --ground-x: 92%; --ground-y: 8%; }
.searching__in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1100px) { .searching__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.searching__head { margin: 0; }
.searching__stage { position: relative; height: 560px; }
.searching__scene { position: absolute; inset: 0; }
.searching__stage .stop { top: 12px; right: 12px; bottom: auto; }

/* ---------- 3. the call from a search: the owner by his van, the call in glass over the van's door ---------- */
.mcall__in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .mcall__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.mcall__copy { display: grid; gap: 20px; }
.mcall__copy .head__line { margin: 0; }
.mcall__media { position: relative; overflow: hidden; height: 560px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-l); }
.mcall__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 50%; }
.mcall__scene { position: absolute; inset: 0; }
.mcall__media .stop { top: 14px; right: 14px; bottom: auto; }
@media (max-width: 759px) { .mcall__media { height: 640px; } .mcall__photo { object-position: 100% 50%; } }

/* ---------- 4. found everywhere, the signature ---------- */
.area { --ground-x: 50%; --ground-y: 100%; }
.area__stage { position: relative; max-width: 860px; margin: 0 auto; padding-bottom: 8px; }
.area__scene { position: relative; }
.area__stage .stop { top: -6px; right: 0; bottom: auto; }
@media (max-width: 699px) { .area__stage .stop { top: auto; bottom: -40px; } .area__stage { margin-bottom: 40px; } }

/* ---------- 5. what we do: five tabs, each its own photo and moment ---------- */
.ftabs { display: grid; gap: 24px; }
@media (min-width: 1000px) { .ftabs { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; } }
.ftabs__list { display: grid; gap: 8px; align-content: start; }
.ftabs__tab { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 15px 18px; border: 0; border-radius: var(--radius-l); background: transparent; color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--c-line); transition: background var(--dur-fast), box-shadow var(--dur-fast); }
.ftabs__tab:hover { background: var(--c-card); }
.ftabs__tab .x { margin-top: 2px; width: 18px; height: 18px; border-radius: 5px; color: var(--c-ink-soft); }
.ftabs__tab > span { display: grid; gap: 4px; }
.ftabs__tab b { font: 700 1.0625rem/1.25 var(--font-ui); }
.ftabs__tab small { font-size: var(--fs-small); line-height: 1.4; color: var(--c-ink-soft); }
.ftabs__tab[aria-selected="true"] { background: var(--c-card); box-shadow: var(--shadow-m), inset 0 0 0 2px var(--c-brand); }
.ftabs__tab:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.ftabs__stage { position: relative; min-height: 560px; border-radius: var(--radius-xl); overflow: hidden; background: var(--c-night-3); box-shadow: var(--shadow-l); }
.ftabs__panel { position: absolute; inset: 0; }
/* a panel not shown keeps its size, out of the stage's frame: its scene and clip rest off screen and start again at
   their beginning when it is shown */
.ftabs__panel[hidden] { display: block; visibility: hidden; transform: translateX(110%); }
.ftabs__fill { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.ftabs__scene { position: absolute; inset: 0; }
.ftabs__stage .stop { top: auto; bottom: 14px; right: 14px; }
/* the reviews moment stays on the furnace, clear of the technician's face (about 40% across) */
@media (min-width: 760px) { #ft-p4 .ft-col { width: min(296px, calc(100% - 44px)); } }
@media (max-width: 759px) {
  .ftabs__stage { min-height: 640px; }
  .ftabs__fill { object-position: var(--pos-m, var(--pos)); }
  .ftabs__stage .stop { top: 14px; bottom: auto; }
  .ftabs__tab { padding: 13px 15px; }
}

/* ---------- 6. our own results ---------- */
.mproof { --ground-x: 10%; --ground-y: 0%; }
.mproof__stage { position: relative; max-width: 900px; margin: 0 auto; }
.mproof__scene { position: relative; overflow: hidden; }
.mproof__stage .stop { top: 0; right: 0; bottom: auto; }

/* ---------- 7. the close: the words over a lower wash, the box at the left, Sean at the right ---------- */
.mclose { padding-top: clamp(300px, 32vw, 460px); }
.mclose::before { background: linear-gradient(180deg, rgba(13, 13, 15, 0) 0%, rgba(13, 13, 15, 0.12) 28%, rgba(13, 13, 15, 0.82) 52%, rgba(13, 13, 15, 0.96) 100%); }
.mclose__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 40% 18%; }
.mclose__in { display: grid; gap: 30px; }
.mclose__head { display: grid; gap: 14px; justify-items: center; max-width: 760px; margin: 0 auto; text-align: center; }
.mclose__row { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .mclose__row { grid-template-columns: minmax(0, 560px) minmax(0, 360px); justify-content: center; gap: 56px; } }
.mclose__card { position: absolute; z-index: 1; right: max(var(--gutter), 7%); top: 20%; }
@media (max-width: 759px) {
  .mclose { padding-top: 0; }
  .mclose .close__media { position: relative; inset: auto; z-index: 0; height: 340px; margin-bottom: 28px; }
  .mclose .close__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 62%, var(--c-night) 100%); }
  .mclose::before { display: none; }
  .mclose__photo { object-position: 30% 20%; }
  .mclose__card { right: 16px; top: auto; bottom: 30px; }
  .mclose__head { justify-items: start; text-align: left; }
}
