/* ==========================================================================
   Páginas institucionais: About, Contact (cl-company-*, cl-about-*,
   cl-contact-*) e Trademark (cl-tm-*).
   --------------------------------------------------------------------------
   About e Contact vêm de app/(pages)/(company)/company.style.tsx: faixa navy
   com o logo claro, coluna de 960px sobre fundo cinza-claro. Trademark vem de
   trademark.style.tsx: hero claro e coluna de leitura de 760px.
   O conteúdo é coluna flex, como no React Native: margens somam, não colapsam.
   ========================================================================== */

/*
 * Ícones novos (Font Awesome 6, solid). A máscara vai direto no ::before, sem
 * `--cl-icon`: o Chrome resolve url() relativa de variável CSS a partir da
 * folha onde o var() é usado (site.css, outra pasta), e o caminho quebraria.
 */
.cl-company-icon.cl-ic--envelope::before {
	-webkit-mask-image: url("../../icons/envelope.svg");
	mask-image: url("../../icons/envelope.svg");
}

/* ---------- Botões (company.style primaryButton / secondaryButton) ---------- */

/*
 * PressableWrapper do app: o hover encolhe para 0.97 em 150ms e o toque cai
 * para 50% de opacidade na hora, voltando em 100ms.
 */
.cl-company-btn .wp-block-button__link {
	min-height: 46px;
	padding: 12px 22px;
	gap: 9px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 17px;
	font-weight: 700;
	letter-spacing: 0.2px;
	white-space: normal;
	transition: transform 0.15s ease, opacity 0.1s ease;
}
@media (hover: hover) { .cl-company-btn .wp-block-button__link:hover { transform: scale(0.97); } }
.cl-company-btn .wp-block-button__link:active { opacity: 0.5; transform: scale(0.97); transition: transform 0.15s ease, opacity 0s; }

/* "Contact us →": seta de 12px. */
.cl-company-btn.cl-btn--arrow .wp-block-button__link::after { width: 12px; height: 12px; }
.cl-company-btn.cl-btn--arrow .wp-block-button__link:hover::after { transform: none; }

/* Ícone antes do texto (envelope, download, info): 13px. */
.cl-company-btn--envelope .wp-block-button__link::before,
.cl-company-btn--download .wp-block-button__link::before,
.cl-company-btn--info .wp-block-button__link::before {
	content: "";
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("../../icons/envelope.svg") center / contain no-repeat;
	mask: url("../../icons/envelope.svg") center / contain no-repeat;
}
.cl-company-btn--download .wp-block-button__link::before {
	-webkit-mask-image: url("../../icons/download.svg");
	mask-image: url("../../icons/download.svg");
}
.cl-company-btn--info .wp-block-button__link::before {
	-webkit-mask-image: url("../../icons/circle-info.svg");
	mask-image: url("../../icons/circle-info.svg");
}

.cl-company-btn--secondary .wp-block-button__link {
	border: 1.5px solid var(--cl-navy);
	background: var(--cl-white);
	color: var(--cl-navy);
	font-weight: 600;
}

/* "Verify on USPTO TSDR ↗": ícone de 12px depois do texto. */
.cl-tm-btn--external .wp-block-button__link::after {
	content: "";
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("../../icons/arrow-up-right-from-square.svg") center / contain no-repeat;
	mask: url("../../icons/arrow-up-right-from-square.svg") center / contain no-repeat;
}

.cl-company-actions,
.cl-company-card__actions,
.cl-tm-actions {
	display: flex;
	align-self: flex-start;
}

/* ==========================================================================
   About e Contact
   ========================================================================== */

.cl-company {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 64px;
	background: var(--cl-bg-light);
}

/* ---------- Faixa navy ---------- */

/* `overflow: hidden` só recorta a marca decorativa (::after). */
.cl-company-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 24px 56px;
	background: var(--cl-navy);
	border-bottom: 3px solid var(--cl-accent);
}
/* A marca da CrashLens, 360px a 7%, saindo pelo canto superior direito. */
.cl-company-hero::after {
	content: "";
	position: absolute;
	top: -60px;
	right: -80px;
	width: 360px;
	height: 360px;
	background: url("../../img/crashlens-icon.svg") center / contain no-repeat;
	opacity: 0.07;
	pointer-events: none;
}

.cl-company-back {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 960px;
	margin-bottom: 28px !important;
}
.cl-company-back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 12px;
	margin-left: -12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 17px;
	font-weight: 600;
	color: #aab3c6;
	text-decoration: none;
	transition: transform 0.15s ease, opacity 0.1s ease;
}
.cl-company-back a::before {
	content: "";
	width: 12.25px;
	height: 14px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("../../icons/arrow-left.svg") center / contain no-repeat;
	mask: url("../../icons/arrow-left.svg") center / contain no-repeat;
}
@media (hover: hover) { .cl-company-back a:hover { transform: scale(0.97); } }
.cl-company-back a:active { opacity: 0.5; transition: transform 0.15s ease, opacity 0s; }
.cl-company-back a:focus-visible { outline: 2px solid #aab3c6; outline-offset: 2px; }

.cl-company-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
/* O logo claro (170x70); o texto fica para leitores de tela. */
.cl-company-wordmark {
	width: 170px;
	height: 70px;
	overflow: hidden;
	background: url("../../img/crashlens-wordmark-light.svg") center / contain no-repeat;
	color: transparent;
	font-size: 0;
}
.cl-company-hero__title {
	font-size: 13px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	color: #aab3c6;
}

/* ---------- Coluna de conteúdo ---------- */

.cl-company-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 960px;
	box-sizing: border-box;
	padding: 40px 24px 0;
}

.cl-company-label {
	margin-bottom: 6px !important;
	font-size: 11px;
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cl-accent-text);
}
.cl-company-sub {
	margin-bottom: 16px !important;
	font-size: 22px;
	line-height: 26px;
	font-weight: 700;
	color: var(--cl-text);
}
.cl-company-lede {
	max-width: 680px;
	margin-bottom: 32px !important;
	font-size: 16px;
	line-height: 27px;
	color: var(--cl-text-gray);
}

.cl-company-divider {
	width: 100%;
	height: 1px;
	margin: 32px 0;
	background: var(--cl-border);
}

/* Cartão largo (CrashDiary, CrashInspect, "Looking for the apps?"). */
.cl-company-card {
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 20px;
	padding: 24px;
	background: var(--cl-white);
	border: 1px solid var(--cl-border);
	border-radius: 14px;
}
.cl-company-card__title {
	margin-bottom: 10px !important;
	font-size: 17px;
	line-height: 20px;
	font-weight: 700;
	color: var(--cl-text);
}
.cl-company-card__body {
	font-size: 15px;
	line-height: 25px;
	color: var(--cl-text-gray);
}
.cl-company-card__actions { margin-top: 16px; }

/* Fileira de cartões que dividem a linha (pilares, contato). */
.cl-company-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
	margin-bottom: 12px;
}
.cl-company-tile {
	flex: 1 1 0;
	min-width: 240px;
	box-sizing: border-box;
	padding: 20px;
	background: var(--cl-white);
	border: 1px solid var(--cl-border);
	border-radius: 14px;
}
.cl-company-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 14px;
	border-radius: 10px;
	background: var(--cl-accent-wash);
	color: var(--cl-accent);
	--cl-icon-size: 17px;
}

.cl-about-pillar__title {
	margin-bottom: 8px !important;
	font-size: 15px;
	line-height: 19px;
	font-weight: 700;
	color: var(--cl-text);
}
.cl-about-pillar__body {
	font-size: 14px;
	line-height: 22px;
	color: var(--cl-text-gray);
}

.cl-contact-card { min-width: 260px; padding: 22px; }
.cl-contact-card__label {
	margin-bottom: 6px !important;
	font-size: 11px;
	line-height: 14px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--cl-text-gray);
}
.cl-contact-card__value {
	margin-bottom: 4px !important;
	font-size: 16px;
	line-height: 20px;
	font-weight: 700;
	color: var(--cl-text);
	overflow-wrap: anywhere;
}
.cl-contact-card__meta {
	font-size: 13px;
	line-height: 20px;
	color: var(--cl-text-gray);
}
.cl-contact-email { margin-top: 20px; }

@media (max-width: 767px) {
	/* Empilhados, cada cartão ocupa a largura e cresce com o texto. */
	.cl-company-grid { flex-direction: column; }
	.cl-company-tile { flex: 0 0 auto; min-width: 0; width: 100%; }
}

/* ==========================================================================
   Trademark
   ========================================================================== */

.cl-tm-hero {
	display: flex;
	justify-content: center;
	padding: 72px 32px 56px;
	background: var(--cl-bg-light);
}
.cl-tm-hero__inner,
.cl-tm-body__inner {
	width: 100%;
	max-width: var(--cl-content);
}
.cl-tm-eyebrow {
	margin-bottom: 12px !important;
	font-size: 12px;
	line-height: 15px;
	font-weight: 700;
	letter-spacing: 1.6px;
	color: var(--cl-accent-text);
}
.cl-tm-title {
	font-size: 46px;
	line-height: 54px;
	font-weight: 700;
	letter-spacing: -0.4px;
	color: var(--cl-navy);
}
.cl-tm-subtitle {
	max-width: 680px;
	margin-top: 14px !important;
	font-size: 16px;
	line-height: 26px;
	color: var(--cl-text-gray);
}

.cl-tm-body {
	display: flex;
	justify-content: center;
	padding: 48px 32px 80px;
	background: var(--cl-white);
}
.cl-tm-body__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.cl-tm-h2 {
	max-width: 760px;
	margin: 24px 0 12px !important;
	font-size: 22px;
	line-height: 30px;
	font-weight: 700;
	color: var(--cl-navy);
}
.cl-tm-p {
	max-width: 760px;
	margin-bottom: 16px !important;
	font-size: 16px;
	line-height: 27px;
	color: var(--cl-text-gray);
}
.cl-tm-p a {
	font-weight: 600;
	color: var(--cl-accent-text);
	text-decoration: underline;
}
.cl-tm-note {
	margin: 12px 0 16px !important;
	font-size: 14px;
	line-height: 22px;
	color: var(--cl-text-gray);
}

.cl-tm-table {
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	margin-bottom: 16px;
	overflow: hidden;
	background: var(--cl-white);
	border: 1px solid var(--cl-border);
	border-radius: 14px;
}
.cl-tm-row {
	display: flex;
	gap: 16px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--cl-border);
}
.cl-tm-row:last-child { border-bottom: 0; }
.cl-tm-field {
	width: 200px;
	flex-shrink: 0;
	font-size: 13px;
	line-height: 22px;
	font-weight: 600;
	color: var(--cl-text-gray);
}
.cl-tm-detail {
	flex: 1;
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	color: var(--cl-navy);
}

/* A primeira página do certificado; o clique abre o PDF. */
.cl-tm-cert {
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	overflow: hidden;
	background: var(--cl-white);
	border: 1px solid var(--cl-border);
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(29, 38, 71, 0.08);
	transition: transform 0.15s ease, opacity 0.1s ease;
}
@media (hover: hover) { .cl-tm-cert:hover { transform: scale(0.99); } }
.cl-tm-cert:active { opacity: 0.5; transition: transform 0.15s ease, opacity 0s; }
.cl-tm-cert a { display: block; }
.cl-tm-cert img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1400 / 1982;
}

@media (max-width: 767px) {
	.cl-tm-hero { padding: 40px 20px 36px; }
	.cl-tm-title { font-size: 32px; line-height: 38px; }
	.cl-tm-body { padding: 32px 20px 56px; }
	.cl-tm-row { flex-direction: column; gap: 4px; }
	.cl-tm-field { width: auto; }
}
