/* MJK Electric — the seven city pages (templates/website/service_areas/_layout.html and one template per city).
   Loaded after css/home_v2.css (tokens, nav, buttons, section heads, spec strip, call to action, footer),
   css/services.css (photo header, city links, the circuit directory), css/service_detail.css (breadcrumb,
   questions, the two-option block) and css/service_areas.css (the vicinity map). See docs/home_v2.md. */

/* ----------------------------------------------------------------- header */
.city .shero { min-height: min(88vh, 860px); }
/* a long headline ("Commercial & Industrial Electrician in" over the city): a size down from the service pages */
.city .shero__title { max-width: 13.5em; font-size: clamp(2.45rem, 5.3vw, 5.1rem); }
.city .shero__lede { max-width: 31em; }
.city .display { font-size: clamp(2.4rem, 4.6vw, 4.1rem); }

/* --------------------------------------------- 01 electrical work in the city */
.city-work .oneline__intro { align-items: start; }
.city-work .oneline__intro p { max-width: 36em; padding-top: .35em; font-size: 1.08rem; line-height: 1.65; color: #c9c7c3; }
.cwork__intro { max-width: 44em; margin-bottom: clamp(22px, 2.6vw, 34px); font-size: 1.04rem; color: var(--muted); }

/* the kinds of work, numbered like the notes on a drawing */
.cwork { border-top: 1px solid var(--line-2); }
.cwork > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 6px; padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.cwork__k { padding-top: 7px; font-weight: 600; color: var(--copper-hi); }
.cwork h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.15vw, 2.05rem); line-height: 1.02; letter-spacing: .008em; text-transform: uppercase; color: #fff; text-wrap: balance; }
.cwork > li > div > p { max-width: 42em; margin-top: 12px; font-size: 1rem; line-height: 1.68; color: var(--muted); }
.cwork .opts { margin: 20px 0 18px; }

/* the vicinity map of the service areas page, with this city lit and its feeder drawn from the shop */
.vm-feed.is-here { opacity: 1; animation: vmFlow .9s linear infinite; }
.vm-node.is-here .vm-node__ring { transform: scale(1.5); fill: rgba(234, 168, 98, .22); }
.vm-node.is-here .vm-node__dot { fill: #fff; }
.vm-node.is-here .vm-node__name { fill: var(--copper-hi); }
.vic--city .vm-node:not(.is-here) { opacity: .58; }
.vic--city .vm-node:not(.is-here):hover, .vic--city .vm-node.is-on { opacity: 1; }
.vic--city.has-on .vm-node.is-here { opacity: 1; }

/* --------------------------------------------------- 02 permits and utilities */
.city-permits { border-top: 1px solid var(--line); background: radial-gradient(900px 520px at 84% 44%, rgba(194, 124, 46, .12), transparent 62%), var(--bg); }
.permits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.permits__head .sec__head { margin-bottom: clamp(22px, 3vw, 36px); }
.permits__body { color: #c9c7c3; font-size: 1.06rem; line-height: 1.68; }
.permits__body p { max-width: 40em; }
.permits__body p + p { margin-top: 14px; }
.city .permits__facts { margin-top: 30px; border-top: 1px solid var(--line-2); }
.permits__facts > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.permits__facts dt { padding-top: 4px; color: var(--copper-hi); }
.permits__facts dd { font-size: .98rem; line-height: 1.5; color: #f1eee9; }

/* ------------------------------------------------------- 04 our services */
.city .sec--work { padding-bottom: clamp(64px, 8vw, 120px); }

/* ------------------------------------------------------------- responsive */
@media (min-width: 1101px) {
    /* the list on the left, the map on the right */
    .vic.vic--city { grid-template-columns: minmax(0, 1fr) minmax(0, 43%); }
}
@media (min-width: 1101px) and (min-height: 700px) {
    /* the map stays beside the list while it scrolls; on a short screen its column narrows so all of it fits
       under the nav (the same sum as css/service_areas.css) */
    .vic.vic--city { grid-template-columns: minmax(0, 1fr) min(43%, calc((100vh - 228px) * 1.065)); }
}
@media (max-width: 1100px) {
    .vic--city .vmap { margin-top: clamp(8px, 2vw, 20px); }
}
@media (max-width: 900px) {
    .city .shero { min-height: 0; }
    .permits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
    .cwork > li { grid-template-columns: 32px minmax(0, 1fr); padding: 22px 0 24px; }
    .permits__facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .permits__facts dt { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .vm-feed.is-here { animation: none; }
}
