/* MAX Diesel — layout limpo, uma coluna lógica, tudo alinhado */

*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--text: #0f172a;
	--text-muted: #475569;
	--border: #e2e8f0;
	--surface: #ffffff;
	--surface-alt: #f8fafc;
	--accent: #1e40af;
	--accent-hover: #1d4ed8;
	--accent-soft: rgba(30, 64, 175, 0.08);
	--wa: #128c7e;
	--wa-bright: #25d366;
	--radius: 12px;
	--max: 1040px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body.page {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--surface-alt);
	background-image: linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
	background-size: 40px 40px;
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent);
}

a:hover {
	color: var(--accent-hover);
}

.shell {
	width: 100%;
	max-width: var(--max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--text);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ——— Cabeçalho ——— */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
	max-width: var(--max);
	margin: 0 auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.site-logo img {
	max-height: 64px;
	width: auto;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.site-nav a {
	color: var(--text-muted);
	text-decoration: none;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.btn-wa {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.1rem;
	background: linear-gradient(180deg, var(--wa-bright), var(--wa));
	color: #fff !important;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(18, 140, 126, 0.35);
}

.btn-wa:hover {
	filter: brightness(1.05);
	color: #fff !important;
}

.btn-wa svg {
	flex-shrink: 0;
}

@media (max-width: 720px) {
	.site-header__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.site-logo {
		display: flex;
		justify-content: center;
	}

	.site-nav {
		justify-content: center;
	}

	.btn-wa {
		justify-content: center;
	}
}

/* ——— Seções genéricas ——— */
.section {
	padding: 3rem 0;
	scroll-margin-top: 88px;
}

.section--tight {
	padding: 2rem 0;
}

.section--alt {
	background: var(--surface);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
	position: relative;
}

.section--alt::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--accent) 0%, #3b82f6 50%, var(--wa-bright) 100%);
	opacity: 0.85;
	pointer-events: none;
}

.section__title {
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 0.35rem;
	color: var(--text);
}

.section__lead {
	margin: 0 0 1.75rem;
	color: var(--text-muted);
	font-size: 1.05rem;
	max-width: 62ch;
}

.section__title-wrap {
	text-align: center;
	margin-bottom: 2rem;
}

.section__title-wrap .section__lead {
	margin-left: auto;
	margin-right: auto;
}

/* Cabeçalho de seção padronizado */
.section-head {
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 2.25rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
	position: relative;
}

.section-head::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: 4rem;
	height: 3px;
	background: var(--accent);
	border-radius: 3px;
}

.section-head--left {
	text-align: left;
	margin-left: 0;
	max-width: none;
}

.section-head--left::after {
	left: 0;
	transform: none;
}

.section-head__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.section-head__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
	line-height: 1.2;
}

.section-head__lead {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text-muted);
}

/* ——— Hero ——— */
.hero {
	position: relative;
	min-height: min(52vh, 520px);
	display: flex;
	align-items: flex-end;
	padding: 3rem 0 3.5rem;
	background-color: #0f172a;
	background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.88) 100%),
		url("https://i0.wp.com/grupomaxdiesel.com.br/wp-content/uploads/2024/07/home.jpg?fit=1898%2C952&ssl=1");
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}

.hero__accent {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 12px,
		rgba(255, 255, 255, 0.03) 12px,
		rgba(255, 255, 255, 0.03) 13px
	);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 1;
}

.hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.hero__eyebrow::before {
	content: "";
	width: 2rem;
	height: 2px;
	background: linear-gradient(90deg, var(--wa-bright), transparent);
	border-radius: 2px;
}

.hero h1 {
	font-size: clamp(1.5rem, 4vw, 2.1rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1rem;
	max-width: 36ch;
	letter-spacing: -0.02em;
}

.hero p {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	opacity: 0.95;
	max-width: 42ch;
}

.hero .btn-wa {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ——— Blocos de informação (cards alinhados) ——— */
.info-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
}

@media (max-width: 960px) {
	.info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.info-grid {
		grid-template-columns: 1fr;
	}
}

.info-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.25rem 1.35rem;
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	min-width: 0;
}

.info-card__top {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	min-height: 2.5rem;
}

.info-card__icon {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-soft);
	color: var(--accent);
	border-radius: 10px;
}

.info-card__icon svg {
	display: block;
}

.info-card__label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
	margin: 0;
	font-weight: 700;
	line-height: 1.35;
	padding-top: 0.15rem;
}

.info-card p,
.info-card address {
	margin: 0;
	font-style: normal;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--text);
	flex: 1;
}

.info-card a {
	font-weight: 600;
}

.info-card__link {
	margin-top: auto;
	padding-top: 0.75rem;
}

/* ——— Peças ——— */
.cta-row {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.prose {
	max-width: 65ch;
	margin: 0 auto 1.5rem;
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.75;
	text-align: center;
	overflow-wrap: anywhere;
}

.prose--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.gallery-frame {
	margin-top: 1.5rem;
	padding: 1.1rem 0 1.25rem;
	background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) + 4px);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.brand-marquee__caption {
	margin: 0 1rem 0.85rem;
	text-align: center;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.brand-marquee {
	width: 100%;
}

.brand-marquee__viewport {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.brand-marquee__track {
	display: flex;
	width: max-content;
	flex-wrap: nowrap;
	align-items: stretch;
	animation: brand-marquee-scroll 45s linear infinite;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.brand-marquee__track {
		animation: none;
		flex-wrap: wrap;
		width: 100%;
		max-width: 100%;
		justify-content: center;
		padding: 0 1rem 0.5rem;
	}

	.brand-marquee__group[aria-hidden="true"] {
		display: none;
	}

	.brand-marquee__group {
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}

	.brand-marquee__viewport {
		-webkit-mask-image: none;
		mask-image: none;
	}
}

@keyframes brand-marquee-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.brand-marquee__group {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.95rem;
	padding: 0.4rem 0.6rem;
	flex-shrink: 0;
}

.brand-marquee__item {
	flex: 0 0 auto;
	width: clamp(198px, 38vw, 300px);
	height: clamp(104px, 22vw, 136px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.55rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.brand-marquee__item img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* ——— Serviços ——— */
.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

@media (max-width: 900px) {
	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.service-grid {
		grid-template-columns: 1fr;
	}
}

.service-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0;
	min-width: 0;
	height: 100%;
	box-shadow: var(--shadow-card);
}

.service-card__media {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 62.5%;
	background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
	flex-shrink: 0;
}

.service-card__media::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--accent), #60a5fa);
	opacity: 0.9;
}

.service-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.service-card__body {
	padding: 1.15rem 1.2rem 1.35rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-height: 10.5rem;
}

.service-card h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.35;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.service-card p {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--text-muted);
	line-height: 1.55;
	flex: 1;
}

@media (max-width: 600px) {
	.service-card__body {
		min-height: 0;
	}
}

/* ——— Diferenciais ——— */
.pill-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
}

@media (max-width: 960px) {
	.pill-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.pill-grid {
		grid-template-columns: 1fr;
	}
}

.pill-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.25rem 1.35rem;
	border-left: 4px solid var(--accent);
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	min-width: 0;
	position: relative;
	padding-top: 2.5rem;
}

.pill-card__num {
	position: absolute;
	top: 0.85rem;
	right: 1rem;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	color: var(--accent-soft);
	letter-spacing: -0.04em;
}

.pill-card h3 {
	margin: 0 0 0.5rem;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.35;
	min-height: 2.7em;
}

.pill-card p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.55;
	flex: 1;
}

/* ——— Faixa ——— */
.strip {
	background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #1d4ed8 100%);
	color: #fff;
	padding: 2.5rem 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.strip::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
	opacity: 0.9;
	pointer-events: none;
}

.strip .shell {
	position: relative;
	z-index: 1;
}

.strip h2 {
	margin: 0;
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ——— Contato ——— */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

@media (max-width: 900px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

.contact-block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.25rem 1.1rem;
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	min-width: 0;
}

.contact-block h3 {
	margin: 0 0 1rem;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}

.contact-block__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	background: var(--accent-soft);
	color: var(--accent);
	border-radius: 8px;
	flex-shrink: 0;
}

.contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.contact-list li {
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--border);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem 0.75rem;
	align-items: start;
	font-size: 0.9rem;
	min-width: 0;
}

.contact-list li:last-child {
	border-bottom: none;
}

.contact-list strong {
	color: var(--text);
	font-weight: 600;
	min-width: 0;
}

.contact-list a {
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
}
@media (max-width: 400px) {
	.contact-list li {
		grid-template-columns: 1fr;
	}
}

.contact-list a:hover {
	text-decoration: underline;
}

.contact-list span {
	color: var(--text);
	min-width: 0;
}

/* ——— Mapa ——— */
.map-wrap {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
	margin-top: 1rem;
}

.map-wrap iframe {
	display: block;
	width: 100%;
	height: min(420px, 55vh);
	border: 0;
}

.address-block {
	margin-top: 1.5rem;
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.address-block p {
	margin: 0.35rem 0;
	font-size: 1rem;
}

/* ——— Rodapé ——— */
.site-footer {
	background: #0f172a;
	color: #94a3b8;
	padding: 2.5rem 0 1.5rem;
	font-size: 0.9rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
	align-items: start;
}

@media (max-width: 720px) {
	.footer-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

.site-footer h2 {
	color: #f1f5f9;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 0.75rem;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer li {
	margin-bottom: 0.4rem;
}

.site-footer a {
	color: #cbd5e1;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
}

.footer-legal {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.25rem;
	text-align: center;
	font-size: 0.8rem;
	line-height: 1.55;
	color: #64748b;
}

.footer-legal nav {
	margin-bottom: 0.75rem;
}

.footer-legal a {
	color: #94a3b8;
	font-weight: 600;
	margin: 0 0.35rem;
}

.footer-legal a:hover {
	color: #e2e8f0;
}

/* ——— Cookie ——— */
.cookie-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	background: #0f172a;
	color: #e2e8f0;
	padding: 1rem 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.cookie-bar__inner {
	max-width: var(--max);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.cookie-bar p {
	margin: 0;
	font-size: 0.85rem;
	flex: 1 1 260px;
	line-height: 1.5;
}

.cookie-bar a {
	color: #93c5fd;
}

.cookie-bar button {
	background: #fff;
	color: #0f172a;
	border: none;
	font-weight: 600;
	padding: 0.5rem 1.2rem;
	border-radius: 999px;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.875rem;
}

.cookie-bar button:hover {
	background: #e2e8f0;
}

body.cookie-pad {
	padding-bottom: 6.5rem;
}

/* ——— Página política (texto longo) ——— */
.legal-wrap {
	max-width: 720px;
	margin: 2rem auto 3rem;
	padding: 2rem 1.5rem 3rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.legal-wrap h1 {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--text);
}

.legal-wrap h2 {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 2rem 0 0.5rem;
	color: var(--accent);
}

.legal-wrap p,
.legal-wrap li {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--text-muted);
}

.legal-wrap ul {
	padding-left: 1.25rem;
}

.legal-back {
	margin-bottom: 2rem;
}

.legal-back a {
	font-weight: 600;
	text-decoration: none;
	color: var(--accent);
}

.legal-back a:hover {
	text-decoration: underline;
}
