/* =========================================================================
   STORE LOCATION PAGE — Integrity 1st Car Pros
   Loads on Store Location Page templates only (see functions.php), so it can
   never affect another page. Uses the design tokens in style.css.

   SPECIFICITY: the Elementor kit styles `.elementor-kit-6 h1/h2/a` at (0,1,1).
   A bare component rule at (0,1,0) loses silently, so every rule here is
   prefixed with the `.i1s` ancestor to reach (0,2,x) and win predictably.
   This is the documented trap in the site-architecture memory / DEPLOY.md.
   ========================================================================= */

.i1s.i1-scope { overflow-x: hidden; }

.i1s .i1s-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.i1s .i1s-wrap--narrow { max-width: 820px; }
.i1s .i1s-center { text-align: center; }

/* ---- Sections ---- */
.i1s .i1s-sec { padding: clamp(48px, 7vw, 88px) 0; }
.i1s .i1s-sec--wash { background: var(--i1-red-soft); }

/* ---- Type: heading device (heavy uppercase + lighter lowercase tail) ---- */
.i1s .i1s-kicker {
	font-family: var(--i1-body);
	font-weight: var(--i1-w-med);
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--i1-red-ui);
	margin: 0 0 14px;
}
.i1s .i1s-h1,
.i1s .i1s-h2 {
	font-family: var(--i1-display);
	font-weight: var(--i1-w-display);
	letter-spacing: var(--i1-track);
	line-height: 1.02;
	text-transform: uppercase;
	color: var(--i1-ink);
	margin: 0 0 18px;
}
.i1s .i1s-h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
.i1s .i1s-h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
.i1s .i1s-h1 em,
.i1s .i1s-h2 em {
	display: block;
	font-style: normal;
	text-transform: none;
	font-weight: var(--i1-w-body);
	letter-spacing: var(--i1-track-sm);
	color: var(--i1-slate);
	margin-top: .18em;
}
.i1s .i1s-lede {
	font-family: var(--i1-body);
	font-weight: var(--i1-w-body);
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	line-height: 1.6;
	color: var(--i1-slate);
	margin: 0 0 16px;
	max-width: 64ch;
}
.i1s .i1s-lede--center { margin-inline: auto; }
.i1s .i1s-note {
	font-family: var(--i1-body);
	font-weight: var(--i1-w-body);
	font-size: .98rem;
	color: var(--i1-slate);
	margin: 22px 0 0;
}
.i1s .i1s-note a,
.i1s .i1s-lede a { color: var(--i1-red-ui); text-decoration: underline; text-underline-offset: 2px; }
/* The Elementor kit sets font-family directly on `a` (0,1,1), so inline links
   inherit Poppins unless we force the surrounding face back on. */
.i1s .i1s-note a,
.i1s .i1s-lede a,
.i1s .i1s-faq__a a,
.i1s .i1s-fact dd a { font-family: inherit; }
/* AA contrast: --i1-red-ui (4.88:1 on white) drops to ~4.28:1 on the pink wash,
   so small red text and inline links on wash sections use the deeper red
   (~6.8:1 on pink). */
.i1s .i1s-sec--wash .i1s-kicker,
.i1s .i1s-sec--wash .i1s-note a,
.i1s .i1s-sec--wash .i1s-faq__a a { color: var(--i1-red-deep); }

/* ---- Buttons ---- */
.i1s .i1s-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.i1s .i1s-cta--center { justify-content: center; }
.i1s a.i1s-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 26px;
	border-radius: var(--i1-radius-btn);
	font-family: var(--i1-body);
	font-weight: var(--i1-w-med);
	font-size: 1rem;
	line-height: 1.1;
	text-decoration: none;
	letter-spacing: var(--i1-track-sm);
	transition: background var(--i1-dur) var(--i1-ease), color var(--i1-dur) var(--i1-ease), border-color var(--i1-dur) var(--i1-ease);
}
.i1s a.i1s-btn--red { background: var(--i1-red-ui); color: var(--i1-white); border: 2px solid var(--i1-red-ui); }
.i1s a.i1s-btn--red:hover { background: var(--i1-red-deep); border-color: var(--i1-red-deep); color: var(--i1-white); }
.i1s a.i1s-btn--line { background: transparent; color: var(--i1-ink); border: 2px solid var(--i1-grey); }
.i1s a.i1s-btn--line:hover { border-color: var(--i1-ink); color: var(--i1-ink); }
.i1s a.i1s-btn:focus-visible { outline: 3px solid var(--i1-red-deep); outline-offset: 2px; }

/* ---- Hero ---- */
.i1s .i1s-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	background: var(--i1-bone);
}
.i1s .i1s-hero__media { position: relative; min-height: 320px; background: var(--i1-ink); }
.i1s .i1s-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.i1s .i1s-hero__panel { display: flex; align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.i1s .i1s-hero__panel .i1s-wrap { max-width: 620px; margin-right: auto; margin-left: auto; padding-inline: clamp(24px, 4vw, 56px); }
.i1s .i1s-status {
	font-family: var(--i1-body);
	font-weight: var(--i1-w-body);
	font-size: .96rem;
	color: var(--i1-ink);
	background: var(--i1-white);
	border: 1px solid var(--i1-line);
	border-left: 4px solid var(--i1-red-ui);
	border-radius: 12px;
	padding: 12px 16px;
	margin: 4px 0 6px;
}
.i1s .i1s-status strong { font-weight: var(--i1-w-med); }
/* When there is no storefront image, don't leave a black half. */
.i1s .i1s-hero:not(.i1s-hero--img) { grid-template-columns: 1fr; }
.i1s .i1s-hero:not(.i1s-hero--img) .i1s-hero__media { display: none; }

/* ---- Hero: faded background variant ----
   A decorative, ghosted storefront behind full-width hero text. Kept very low
   opacity so it reads as a wash (and the door number is not legible), with the
   panel above it and a light scrim guaranteeing text contrast. */
.i1s .i1s-hero--bg { position: relative; grid-template-columns: 1fr; overflow: hidden; background: var(--i1-bone); }
.i1s .i1s-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: .34;
	z-index: 0;
}
/* Scrim: light enough that the storefront reads clearly, but with a left bias so
   the ink hero copy stays comfortably above AA where it sits. */
.i1s .i1s-hero--bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(250, 250, 250, .74) 0%, rgba(250, 250, 250, .46) 52%, rgba(250, 250, 250, .36) 100%);
	z-index: 0;
}
.i1s .i1s-hero--bg .i1s-hero__panel { position: relative; z-index: 1; padding: clamp(52px, 8vw, 104px) 0; }
.i1s .i1s-hero--bg .i1s-hero__panel .i1s-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
/* Over the backdrop, use ink for the body sub-copy so it stays comfortably above
   AA even where the scrim is lightest (the large display tail only needs 3:1). */
.i1s .i1s-hero--bg .i1s-lede { color: var(--i1-ink); }

/* ---- Location / NAP ---- */
.i1s .i1s-loc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.i1s .i1s-address {
	font-family: var(--i1-body);
	font-weight: var(--i1-w-body);
	font-style: normal;
	font-size: 1.1rem;
	line-height: 1.5;
	color: var(--i1-ink);
	margin: 6px 0 20px;
}
.i1s .i1s-address__name { font-weight: var(--i1-w-med); }
.i1s .i1s-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 4px; }
.i1s .i1s-fact dt {
	font-family: var(--i1-body);
	font-weight: var(--i1-w-med);
	font-size: .74rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--i1-red-ui);
	margin-bottom: 4px;
}
.i1s .i1s-fact dd { margin: 0; font-family: var(--i1-body); font-weight: var(--i1-w-body); color: var(--i1-ink); line-height: 1.5; }
.i1s .i1s-fact dd a { color: var(--i1-ink); }
.i1s .i1s-loc__map { border-radius: var(--i1-radius); overflow: hidden; box-shadow: var(--i1-shadow-lg); background: var(--i1-bone); }
.i1s .i1s-loc__map iframe { display: block; }

/* ---- Services ---- */
.i1s .i1s-services {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.i1s .i1s-service a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 60px;
	padding: 16px 18px;
	background: var(--i1-white);
	border: 1px solid var(--i1-line);
	border-radius: var(--i1-radius-btn);
	text-decoration: none;
	color: var(--i1-ink);
	font-family: var(--i1-body);
	font-weight: var(--i1-w-med);
	font-size: 1rem;
	letter-spacing: var(--i1-track-sm);
	transition: border-color var(--i1-dur) var(--i1-ease), box-shadow var(--i1-dur) var(--i1-ease), transform var(--i1-dur) var(--i1-ease);
}
.i1s .i1s-service a:hover { border-color: var(--i1-red-ui); box-shadow: var(--i1-shadow); transform: translateY(-1px); }
.i1s .i1s-service__arrow { width: 16px; height: 16px; color: var(--i1-red-ui); flex: none; }

/* ---- Why cards ---- */
.i1s .i1s-grid { display: grid; gap: 18px; margin-top: 30px; }
.i1s .i1s-grid--4 { grid-template-columns: repeat(4, 1fr); }
.i1s .i1s-card {
	background: var(--i1-white);
	border: 1px solid var(--i1-line);
	border-radius: var(--i1-radius);
	padding: 26px 22px;
	box-shadow: var(--i1-shadow);
}
.i1s .i1s-sec--wash .i1s-card { background: var(--i1-white); }
.i1s .i1s-card h3 {
	font-family: var(--i1-body);
	font-weight: var(--i1-w-med);
	font-size: 1.08rem;
	letter-spacing: var(--i1-track-sm);
	color: var(--i1-ink);
	margin: 0 0 10px;
}
.i1s .i1s-card p { font-family: var(--i1-body); font-weight: var(--i1-w-body); font-size: .98rem; line-height: 1.55; color: var(--i1-slate); margin: 0; }

/* ---- Local ---- */
.i1s .i1s-local { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.i1s .i1s-chips__label { font-family: var(--i1-body); font-weight: var(--i1-w-med); font-size: .9rem; color: var(--i1-ink); margin: 0 0 14px; }
.i1s .i1s-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.i1s .i1s-chips li {
	font-family: var(--i1-body);
	font-weight: var(--i1-w-body);
	font-size: .95rem;
	color: var(--i1-ink);
	background: var(--i1-white);
	border: 1px solid var(--i1-grey);
	border-radius: 999px;
	padding: 8px 16px;
}

/* ---- FAQ ---- */
.i1s .i1s-faq { margin-top: 26px; }
.i1s .i1s-faq__item { border-bottom: 1px solid var(--i1-line); }
.i1s .i1s-faq__item summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 40px 20px 0;
	position: relative;
	font-family: var(--i1-body);
	font-weight: var(--i1-w-med);
	font-size: 1.08rem;
	letter-spacing: var(--i1-track-sm);
	color: var(--i1-ink);
}
.i1s .i1s-faq__item summary::-webkit-details-marker { display: none; }
.i1s .i1s-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--i1-red-ui);
	line-height: 1;
}
.i1s .i1s-faq__item[open] summary::after { content: "\2013"; }
.i1s .i1s-faq__a { padding: 0 0 22px; }
.i1s .i1s-faq__a p { font-family: var(--i1-body); font-weight: var(--i1-w-body); font-size: 1rem; line-height: 1.6; color: var(--i1-slate); margin: 0; max-width: 68ch; }
.i1s .i1s-faq__a a { color: var(--i1-red-ui); text-decoration: underline; }

/* ---- Closing ---- */
.i1s .i1s-closing { background: var(--i1-ink); }
.i1s .i1s-closing .i1s-h2 { color: var(--i1-white); }
.i1s .i1s-closing .i1s-h2 em { color: var(--i1-grey); }
/* Outline button must stay legible on the dark closing ground. */
.i1s .i1s-closing a.i1s-btn--line { color: var(--i1-white); border-color: rgba(255, 255, 255, .45); }
.i1s .i1s-closing a.i1s-btn--line:hover { color: var(--i1-white); border-color: var(--i1-white); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
	.i1s .i1s-hero { grid-template-columns: 1fr; }
	.i1s .i1s-hero__media { min-height: 240px; order: -1; }
	.i1s .i1s-hero__panel .i1s-wrap { padding-inline: 24px; }
	.i1s .i1s-loc,
	.i1s .i1s-local { grid-template-columns: 1fr; }
	.i1s .i1s-loc__map { order: 2; }
	.i1s .i1s-services { grid-template-columns: repeat(2, 1fr); }
	.i1s .i1s-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.i1s .i1s-wrap { padding-inline: 16px; }
	.i1s .i1s-services { grid-template-columns: 1fr; }
	.i1s .i1s-grid--4 { grid-template-columns: 1fr; }
	.i1s .i1s-facts { grid-template-columns: 1fr; }
	.i1s .i1s-cta { gap: 10px; }
	.i1s a.i1s-btn { width: 100%; }
	.i1s .i1s-cta--center a.i1s-btn { width: 100%; }
	/* When a storefront photo is present, put the panel (and its CTA) above the
	   photo on phones so booking is not pushed below the fold. */
	.i1s .i1s-hero--img .i1s-hero__panel { order: 0; padding: 28px 0; }
	.i1s .i1s-hero--img .i1s-hero__media { order: 1; min-height: 180px; }
}

/* The site's inherited Elementor footer keeps two containers at a fixed ~1440px
   between the tablet and desktop breakpoints, which pushes the document wider
   than the viewport (horizontal overflow, clipped branding/coupon form). Fixed
   only on this template, only in that band, without editing the shared footer or
   hiding overflow globally. */
@media (min-width: 768px) and (max-width: 1439px) {
	body.i1-store-page .elementor-element-b2a4878,
	body.i1-store-page .elementor-element-3f8c0c2 {
		--width: 100%;
		width: 100%;
		max-width: 100%;
		flex-wrap: wrap;
		gap: 32px;
		padding-inline: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.i1s .i1s-service a { transition: none; }
	.i1s a.i1s-btn { transition: none; }
}
