/*
 * Inner pages on the Inertia Dealer Website design system (approved 2 Dec 2026): About, Contact, Financing,
 * Insurance, Sell or trade, Service, Events, Brands, each location and brand page, the blog and 404.
 *
 * theme.css keeps the page layouts. This file loads after it and moves the shared pieces onto the system's tokens
 * (tokens.css): type scale, 1280 container, 64/40px sections, flat 8px buttons, 12px cards with a 1px line,
 * 48px fields, fixed status colors and the scrim on photos. The jump bar stays exactly as it was (Josh's call).
 */

/* Old theme variables point at the system's tokens, so every rule still using them follows along. */
:root {
	--dark: var(--brand-secondary);
	--topbar: var(--brand-secondary);
	--nav-ink: var(--ink);
	--muted: var(--text-muted);
	--eyebrow: var(--text-muted);
	--field-line: var(--line-control);
	--placeholder: var(--text-muted);
	--line-soft: var(--line);
	--gray: var(--surface-subtle);
	--field: var(--surface);
	--white: var(--surface);
	--radius: var(--radius-control);
	--radius-xl: var(--radius-lg);
	--section: var(--space-16);
	--gutter: 32px;
	--shadow: var(--shadow-overlay);
	--display: var(--font-sans);
}

/* ---------- Type ---------- */
body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; letter-spacing: 0; color: var(--text); }
h1, h2, h3, h4, h5, h6 { letter-spacing: 0; color: var(--ink); }
.display { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -1.2px; }
.h1, .page-hero__title, .photo-hero__title, .service-hero .h1 { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -.8px; }
.h2, .photo-band__title, .photo-hero--brand .photo-hero__title { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.4px; }
.photo-band__title, .photo-hero--brand .photo-hero__title { font-size: 40px; line-height: 48px; letter-spacing: -.8px; }
.h3 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; }
.h4, .h5, .info-card__title, .location-card__name, .check-card__title, .amenity-list__title, .form-card__title { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
/* Eyebrow: the small uppercase label above a heading (Josh brought it back, 2 Dec 2026). .im-eyebrow is the same
   style for design-system markup. Use one per heading, in the dealer's own words. */
.eyebrow, .im-eyebrow { display: block; margin: 0 0 8px; font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); opacity: 1; }
.eyebrow--light, .im-eyebrow--light, .photo-hero .eyebrow--light, .photo-band .eyebrow--light { color: rgba(255, 255, 255, .8); }
.fine-print, .form-consent { font-size: 14px; line-height: 20px; color: var(--text-muted); }
/* Long-form copy is body-lg; dense UI stays 16. */
.split__text > p, .prose p, .entry-content p, .entry-content li, .faq__intro, .photo-hero__lead, .photo-band__lead { font-size: 18px; line-height: 28px; }
.photo-hero__lead, .photo-band__lead { font-weight: 400; }
.feature p, .plain-card p, .faq__item p, .info-card p, .info-card__text, .review p, .review-card p, .step p, .amenity p, .post-card__body p, .checks li, .contact-list li { font-size: 16px; line-height: 24px; }
.faq__q { font-size: 18px; line-height: 24px; font-weight: 600; }
.entry-content h2 { font-size: 28px; line-height: 36px; }
.entry-content h3 { font-size: 22px; line-height: 28px; }
.site-main p a:not([class]), .entry-content a:not([class]) { color: var(--brand-ink); font-weight: 600; text-decoration: none; }

/* ---------- Layout ---------- */
.container { max-width: calc(var(--container) + var(--gutter) * 2); }
.section--tight { padding: var(--space-12) 0; }
.section-head { margin-bottom: 24px; }
.center-head { margin-bottom: 32px; }
.split { gap: var(--space-16); }
.btn-row { gap: 12px 24px; }

/* ---------- Buttons: the system's im-btn (flat, 8px corners, 44px, 16/600, sentence case as written) ---------- */
.btn { --btn-overlay: none; min-height: var(--control-md); height: auto; padding: 10px 20px; border-radius: var(--radius-control); font: 600 16px/24px var(--font-sans); letter-spacing: 0; box-shadow: none; transition: background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.btn::after { display: none; }
.btn .icon { transform: none; }
.btn--primary, .btn--primary:hover { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--outline, .photo-hero .btn--outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-control); }
.btn--outline:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--text { min-height: 0; padding: 0; color: var(--brand-ink); }
.btn--text:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.btn--light { min-height: 0; padding: 0; color: #fff; font-size: 16px; }
.btn--inverse { background: #fff; color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none; }
.page-hero .btn:focus-visible, .service-hero .btn:focus-visible, .photo-hero .btn:focus-visible, .photo-band .btn:focus-visible { outline-color: #fff; }
.icon-btn { border-radius: var(--radius-control); color: var(--ink); }
.icon-btn:hover { background: var(--surface-subtle); color: var(--ink); }
.slider-btn { width: var(--control-md); height: var(--control-md); border-radius: var(--radius-control); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-control); }
.slider-btn:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Banners on photos: the system's scrim keeps white text at 4.5:1 ---------- */
.page-hero, .service-hero { padding: var(--space-16) 0; background-color: var(--brand-secondary); }
.page-hero.has-image, .service-hero.has-image {
	background-image: linear-gradient(90deg, rgba(14, 26, 39, .82) 0%, rgba(14, 26, 39, .55) 60%, rgba(14, 26, 39, .4) 100%), var(--header-image);
}
.photo-hero { padding: var(--space-16) 0; background: var(--brand-secondary); }
.photo-hero::before, .photo-hero--brand::before {
	background: radial-gradient(120% 110% at 0% 100%, rgba(14, 26, 39, .94) 0%, rgba(14, 26, 39, .78) 30%, rgba(14, 26, 39, .4) 55%, rgba(14, 26, 39, 0) 80%), linear-gradient(90deg, rgba(14, 26, 39, .55) 0%, rgba(14, 26, 39, .2) 55%, rgba(14, 26, 39, .1) 100%);
}
.photo-hero__status { padding: 0 8px; height: 24px; border-radius: var(--radius-xs); font: 600 12px/16px var(--font-sans); }
.photo-band { padding: 96px 0; background: var(--brand-secondary); }
.photo-band::before { background: rgba(14, 26, 39, .7); }
.split__media img, .rounded-photo, .entry-image { border-radius: var(--radius-lg); }

/* ---------- Cards: 12px corners, flat, a 1px line (no resting shadow) ---------- */
.info-card, .location-card, .amenity, .post-card, .special-card, .review, .review-card, .step, .plain-card img, .logo-tile, .calc-card {
	border: 0; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--line);
}
.info-card, .review, .review-card, .step, .amenity { padding: 24px; background: var(--surface); }
.section--gray .info-card, .section--gray .review, .section--gray .review-card, .section--gray .step, .section--gray .amenity, .section--gray .location-card, .section--gray .post-card { box-shadow: none; }
.logo-tile { border: 0; background: var(--surface); }
.logo-tile:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.location-card { border: 0; overflow: hidden; }
.location-card:hover, .post-card:hover, .special-card:hover { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-overlay); }
.location-card__photo img { aspect-ratio: 3 / 2; height: auto; }
.post-card__media { aspect-ratio: 3 / 2; background: var(--surface-sunken); }
.post-card__title { font-size: 18px; line-height: 24px; }
.special-card { overflow: hidden; }
.calc-card { padding: 48px; }
.calc { border-radius: var(--radius-md); background: var(--surface-subtle); }
.calc__result { border-top-color: var(--line); }
.calc__result strong { font-size: 30px; line-height: 36px; letter-spacing: -.4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.check-card { border-radius: var(--radius-md); background: var(--brand-tint); }
.brand-card { border-radius: var(--radius-md); }
.photo-card { border-radius: var(--radius-lg); }
.review-card small, .review__head small { color: var(--text-muted); }

/* Icon tiles and feature icons: brand tint with brand-ink icons. */
.icon-tile, .feature__icon { border-radius: var(--radius-control); background: var(--brand-tint); color: var(--brand-ink); }
.checks .icon, .check-list .icon, .contact-list .icon, .amenity-list .icon { color: var(--success); }
.location-card__facts .icon { color: var(--text-muted); }
.step__num { border-radius: var(--radius-control); background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; }

/* ---------- Forms: the system's fields (48px, 8px corners, --line-control edge, label above) ---------- */
.form-card { padding: 32px; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.section--gray .form-card { box-shadow: var(--shadow-raised), inset 0 0 0 1px var(--line); }
.form-card__group { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.field-grid { gap: 16px; }
.field label:not(.screen-reader-text) { margin-bottom: 6px; font: 600 14px/20px var(--font-sans); color: var(--ink); }
/* Fields after HubSpot's forms: a light blue-grey edge on a faint blue fill; white with a brand ring while typing. */
:root { --field-fill: #f5f8fa; --field-edge: #cbd6e2; --field-placeholder: #7c98b6; }
.field input, .field select, .field textarea, .signup-form input {
	min-height: var(--control-lg); padding: 0 14px; border: 0; border-radius: var(--radius-control);
	background-color: var(--field-fill); box-shadow: inset 0 0 0 1px var(--field-edge);
	font: 400 16px/24px var(--font-sans); color: var(--ink);
	transition: box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.field textarea { padding: 12px 14px; min-height: 120px; }
.field select { background-color: var(--field-fill); }
.field input::placeholder, .field textarea::placeholder { color: var(--field-placeholder); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-tint); }
.field__req { color: var(--danger); }
.form-card .btn--block { margin-top: 20px; }
.form-note { padding: 12px 14px; border-radius: var(--radius-control); font-size: 14px; line-height: 20px; }
.form-note--ok { background: var(--success-bg); color: var(--success); }
.form-note--error { background: var(--danger-bg); color: var(--danger); }
.upload { border: 1px dashed var(--field-edge); border-radius: var(--radius-control); background: var(--field-fill); }
.upload small { text-transform: none; letter-spacing: 0; font-size: 14px; }
.upload:focus-within { border-color: var(--focus); }

/* ---------- FAQ, hours, lists ---------- */
.faq__grid { gap: 24px 48px; }
.faq__item { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.hours-table thead th { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.hours-table td.is-closed { color: var(--text-muted); }
.map, .map--card { border-radius: var(--radius-md); background: var(--surface-sunken); }
.map__load { border-radius: var(--radius-control); box-shadow: var(--shadow-raised); }
.reach-list__label { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.reach-list__value { font-size: 16px; line-height: 24px; }
a.reach-list__value:hover { color: var(--brand-ink); }
.page-numbers { border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.page-numbers.current { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.empty-note { color: var(--text-muted); }

/* Special offer popup (opened from service specials). */
.offer-dialog { border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); }

/* ---------- Responsive: the system's gutters (32 / 24 / 16) and phone sections (40px) ---------- */
@media (max-width: 1023px) {
	:root { --gutter: 24px; }
	.h1, .page-hero__title, .photo-hero__title, .service-hero .h1 { font-size: 34px; line-height: 40px; }
}
@media (max-width: 767px) {
	:root { --gutter: 16px; --section: var(--space-10); --grid-gap: 12px; }
	.display { font-size: 36px; line-height: 40px; }
	.h1, .page-hero__title, .photo-hero__title, .service-hero .h1, .photo-band__title, .photo-hero--brand .photo-hero__title { font-size: 30px; line-height: 36px; letter-spacing: -.4px; }
	.h2 { font-size: 24px; line-height: 30px; }
	.h3 { font-size: 20px; line-height: 26px; }
	.split__text > p, .prose p, .entry-content p, .entry-content li, .faq__intro, .photo-hero__lead, .photo-band__lead { font-size: 17px; line-height: 26px; }
	.page-hero, .service-hero, .photo-hero, .photo-hero--brand { padding: var(--space-10) 0; }
	.photo-band { padding: 64px 0; }
	.form-card { padding: 24px 16px; }
	.calc-card { padding: 24px 16px; }
	.info-card, .review, .review-card, .step, .amenity { padding: 20px; }
	/* Secondary actions become full-width outline buttons at the bottom of a section. */
	.btn-row .btn--text { justify-content: center; width: 100%; min-height: var(--control-md); padding: 10px 20px; border-radius: var(--radius-control); background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-control); }
	.photo-hero .btn-row .btn--text, .page-hero .btn-row .btn--text, .service-hero .btn-row .btn--text { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
}
