/*
Theme Name: St. Paul Ignition Interlock — Design
Template: st-paul-interlock
Version: 1.1.0
Description: Design layer for the st-paul-interlock theme. Presentation only; all content and features come from the parent theme. Roll back by activating the parent theme.
Author: 1 Stop
*/

/* ==========================================================================
   St. Paul Ignition Interlock: design layer 1.1.0
   Presentation only. No wording, links or content order change.
   Mirrors the cr1stop.com 3.1/3.2 design pass.
   ========================================================================== */

/* ---- Language switcher: off the page content, into the footer band ------ */
.gtranslate_wrapper { display: flex; justify-content: center; background: #09111d; padding: 0 24px 28px; }
.gtranslate_wrapper .gt_switcher_wrapper { position: static !important; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 12px; background: transparent; color: #a9b6c8; border: 0; box-shadow: none; padding: 0; max-width: 100%; }
.gtranslate_wrapper .gt_switcher_wrapper::before { margin: 0; color: #a9b6c8; font: 14px/1.4 var(--body); }
.gtranslate_wrapper .gt_switcher_wrapper .gt_selector { min-height: 44px; font: 15px var(--body); border-radius: 8px; }
@media (max-width: 900px) { .gtranslate_wrapper { padding-bottom: 24px; } }

/* ---- Hero: stronger photo, headline carries the top ---------------------- */
.spim .hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; }
.hero:before { background: linear-gradient(100deg, rgba(9,17,29,.95) 0%, rgba(9,17,29,.8) 48%, rgba(9,17,29,.2) 100%); }
.hero .w { padding-top: clamp(64px, 10vw, 128px); }

/* ---- LifeSafer notice (aside after services): a finished panel ----------- */
.spim main > aside.w { background: var(--brand-50); border: 1px solid #f8d2b0; border-left: 6px solid var(--brand); border-radius: var(--r-lg); padding: 26px 30px; margin-top: 0; margin-bottom: clamp(40px, 6vw, 72px); }
.spim main > aside.w h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.spim main > aside.w p:last-child { margin-bottom: 0; }

/* ---- Service relationship: bold dark band ------------------------------- */
.ost-service-relationship { background: var(--ink); color: #dfe6ef; }
.ost-service-relationship h2 { color: #fff; max-width: 22ch; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.ost-service-relationship .lead { color: #c9d3e1; font-size: 1.15rem; max-width: 62ch; }
.ost-service-relationship .w { border-top: 4px solid var(--brand); padding-top: 28px; }

/* ---- Common problems: list rows, so they no longer look like services ---- */
.sec-alt .grid.g4 { grid-template-columns: 1fr; gap: 0; border-top: 1px solid #cfd8e3; }
.sec-alt .grid.g4 > .svc { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "i h go" "i p go"; column-gap: 20px; row-gap: 2px; align-items: center; padding: 22px 4px; border: 0; border-bottom: 1px solid #cfd8e3; border-radius: 0; background: transparent; box-shadow: none; transform: none !important; }
.sec-alt .grid.g4 > .svc .i { grid-area: i; margin: 0; }
.sec-alt .grid.g4 > .svc h3 { grid-area: h; font-size: 1.3rem; }
.sec-alt .grid.g4 > .svc p { grid-area: p; font-size: 1rem; }
.sec-alt .grid.g4 > .svc .go { grid-area: go; white-space: nowrap; }
@media (max-width: 640px) {
	.sec-alt .grid.g4 > .svc { grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "i h" "i p" ". go"; }
	.sec-alt .grid.g4 > .svc .go { margin-top: 8px; }
}

/* ---- Three steps: white section, big numbers on a connecting line ------- */
.sec-alt:has(.steps) { background: var(--white); }
.steps { gap: 28px; position: relative; }
.steps li { background: transparent; border: 0; border-top: 3px solid var(--ink); border-radius: 0; padding: 22px 4px 0; }
.steps li:before { width: 56px; height: 56px; font-size: 1.5rem; background: var(--brand); margin-top: -50px; box-shadow: 0 0 0 8px var(--white); }
.steps h3 { font-size: 1.3rem; }

/* ---- Photo sections: larger photos that hold their side ----------------- */
.split .photo { aspect-ratio: auto; height: 100%; min-height: 440px; }
.split { align-items: stretch; }
.split > .rv:not(.photo) { align-self: center; }
@media (max-width: 900px) { .split .photo { min-height: 0; height: auto; aspect-ratio: 4/3; width: 100%; } }

/* ---- Reviews: even columns, no orphan row ------------------------------- */
.spii-review-grid { display: block; columns: 3 300px; column-gap: 18px; }
.spii-review { break-inside: avoid; margin-bottom: 18px; border-top: 4px solid #f5a524; }

/* ---- Location: card and map the same height ----------------------------- */
.loc { align-items: stretch; }
.loc-card { border-top: 4px solid var(--brand); }

/* ---- Footer: legal links tidy, matched spacing -------------------------- */
.ftr .legal { align-items: center; }
.ftr nav[aria-label="Information and policies"] { font-size: .88rem; }
