/*
Theme Name: EntreEmpresas
Description: Tema de bloques del proyecto EntreEmpresas.
Version: 1.24.2
Requires at least: 7.0
Requires PHP: 8.3
Author: Francisco Jose Rodriguez Dominguez
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: entreempresas
*/

:root {
	color-scheme: light;
}

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

html {
	scroll-behavior: smooth;
}

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

body {
	min-height: 100vh;
}

a {
	text-underline-offset: 0.18em;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main {
	flex: 1;
}

.wp-block-post-content > :first-child {
	margin-block-start: 0;
}

.wp-block-post-content > :last-child {
	margin-block-end: 0;
}

.ee-preview-notice {
	position: relative;
	z-index: 20;
	padding: 0.8rem 1rem;
	border-block-end: 2px solid currentColor;
	background: #fff4ce;
	color: #3b2f00;
	font-weight: 700;
	text-align: center;
}

.ee-company-page {
	padding: clamp(1rem, 3vw, 2.5rem) var(--wp--preset--spacing--30) clamp(3rem, 6vw, 6rem);
	background: #f4f7fb;
}

.ee-company-profile {
	--ee-blue: #0773b0;
	--ee-navy: #08223d;
	--ee-border: #dbe5ee;
	--ee-muted: #526475;
	width: min(100%, 1200px);
	margin-inline: auto;
	color: var(--ee-navy);
}

.ee-company-profile__cover {
	height: clamp(260px, 34vw, 430px);
	overflow: hidden;
	border-radius: 1rem;
	background: #0b3154;
}

.ee-company-profile__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ee-company-profile__identity {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr) auto;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: center;
	margin: -4.75rem clamp(1rem, 4vw, 3.5rem) 0;
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid var(--ee-border);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 18px 50px rgb(8 34 61 / 14%);
}

.ee-company-profile__logo {
	display: grid;
	place-items: center;
	width: 180px;
	height: 130px;
	padding: 0.75rem;
	border: 1px solid var(--ee-border);
	border-radius: 0.75rem;
	background: #fff;
	overflow: hidden;
}

.ee-company-profile__logo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Logos de empresa dentro de listados y bucles de consulta. */
.wp-block-post-template .type-ee_company .wp-block-post-featured-image,
.wp-block-post-template .type-ee_company .wp-block-post-featured-image > a,
.ee-company-card__logo {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 150px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0.75rem;
	background: #fff;
}

.wp-block-post-template .type-ee_company .wp-block-post-featured-image img,
.ee-company-card__logo img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	padding: clamp(0.65rem, 2vw, 1.25rem);
	object-fit: contain !important;
	object-position: center !important;
}

.ee-company-profile__logo span {
	font-size: 3.5rem;
	font-weight: 750;
	color: var(--ee-blue);
}

.ee-company-profile__heading h1 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.35rem);
}

.ee-company-profile__categories {
	margin: 0.35rem 0 0;
	font-weight: 700;
	color: var(--ee-blue);
}

.ee-company-profile__summary {
	max-width: 58ch;
	margin: 0.55rem 0 0;
	color: var(--ee-muted);
	font-size: 1.08rem;
}

.ee-company-profile__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	border-radius: 0.55rem;
	background: var(--ee-blue);
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.ee-company-profile__button:hover {
	background: var(--ee-navy);
	color: #fff;
}

.ee-company-profile__content {
	display: grid;
	grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.8fr);
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.ee-company-profile__main,
.ee-company-profile__aside {
	display: grid;
	align-content: start;
	gap: 1.25rem;
}

.ee-company-profile section {
	padding: clamp(1.1rem, 3vw, 1.65rem);
	border: 1px solid var(--ee-border);
	border-radius: 0.9rem;
	background: #fff;
}

.ee-company-profile section > :first-child {
	margin-block-start: 0;
}

.ee-company-profile section > :last-child {
	margin-block-end: 0;
}

.ee-company-profile section h2 {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.ee-company-profile__services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ee-company-profile__services li {
	position: relative;
	padding-left: 1.35rem;
}

.ee-company-profile__services li::before {
	position: absolute;
	left: 0;
	content: "✓";
	color: var(--ee-blue);
	font-weight: 800;
}

.ee-company-profile__contact,
.ee-company-profile__social {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ee-company-profile__contact a,
.ee-company-profile__social a {
	overflow-wrap: anywhere;
}

@media (max-width: 820px) {
	.ee-company-profile__cover {
		height: 270px;
	}

	.ee-company-profile__identity {
		grid-template-columns: 1fr;
		justify-items: center;
		margin: -3rem 0.75rem 0;
		text-align: center;
	}

	.ee-company-profile__logo {
		width: 160px;
		height: 115px;
	}

	.ee-company-profile__button {
		width: 100%;
	}

	.ee-company-profile__content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.ee-company-page {
		padding-inline: 0.75rem;
	}

	.ee-company-profile__services {
		grid-template-columns: 1fr;
	}
}
