/*
Theme Name: JL Boggio Astra Child
Theme URI: https://jlboggiosac.com/
Description: Custom child theme for J.L. BOGGIO S.A.C., built on Astra.
Author: J.L. BOGGIO S.A.C.
Template: astra
Version: 0.4.2
Text Domain: jlboggio-astra-child
*/

/*
 * Keep global CSS intentionally small.
 * Add only styles that belong to the JL Boggio design system or site structure.
 * Do not duplicate Astra/WordPress functionality here without a documented reason.
 */

/* Header: preserve a compact B2B layout when menu and CTA share the right zone. */
.site-header-primary-section-right {
	align-items: center;
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.site-header-primary-section-right .ast-builder-button-wrap a {
	white-space: nowrap;
}

/* Keep the desktop header on one row before Astra's native mobile breakpoint. */
@media (min-width: 922px) and (max-width: 1240px) {
	.site-primary-header-wrap.ast-container {
		padding-inline: 18px;
	}

	header .custom-logo-link img {
		width: 180px;
		max-width: 180px;
	}

	.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding-inline: 9px;
		font-size: 15px;
	}

	.site-header-primary-section-right {
		gap: 0.5rem;
	}

	.ast-header-button-1 .ast-custom-button {
		padding: 12px 18px !important;
		font-size: 15px;
	}
}

@media (min-width: 922px) and (max-width: 1060px) {
	.ast-header-button-1 {
		display: none !important;
	}
}

/* Hero page: remove normal article chrome only when the shortcode is present. */
.jlb-has-home-hero .site-content,
.jlb-has-home-hero .site-main,
.jlb-has-home-hero article,
.jlb-has-home-hero .entry-content {
	margin: 0 !important;
	padding: 0 !important;
}

.jlb-has-home-hero .site-content > .ast-container {
	max-width: none;
	padding-inline: 0;
}

.jlb-has-home-hero .entry-header,
.jlb-has-home-hero .wp-block-shortcode {
	margin: 0 !important;
}

.jlb-has-home-hero .entry-header {
	display: none;
}

/* Homepage hero: custom engineering-led composition, independent from Elementor widgets. */
.jlb-home-hero {
	position: relative;
	isolation: isolate;
	width: 100vw;
	min-height: clamp(620px, 78vh, 820px);
	margin-inline: calc(50% - 50vw);
	color: #ffffff;
	background: #07111d;
	overflow: clip;
}

.jlb-home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.65) 42%, transparent 72%);
}

.jlb-home-hero__media,
.jlb-home-hero__veil {
	position: absolute;
	inset: 0;
}

.jlb-home-hero__media {
	z-index: 0;
	background: #0b1724;
}

.jlb-home-hero__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% center;
}

.jlb-home-hero__veil {
	background:
		linear-gradient(90deg, rgba(4, 12, 20, 0.98) 0%, rgba(4, 12, 20, 0.94) 32%, rgba(4, 12, 20, 0.72) 51%, rgba(4, 12, 20, 0.25) 76%, rgba(4, 12, 20, 0.12) 100%),
		linear-gradient(0deg, rgba(4, 12, 20, 0.74) 0%, rgba(4, 12, 20, 0.08) 48%, rgba(4, 12, 20, 0.2) 100%);
}

.jlb-home-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: min(100% - 3rem, 1280px);
	min-height: inherit;
	margin-inline: auto;
	padding-block: clamp(4.5rem, 8vh, 7rem) clamp(3rem, 6vh, 5rem);
}

.jlb-home-hero__content {
	width: min(680px, 58vw);
}

.jlb-home-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	font-size: clamp(0.78rem, 1vw, 0.92rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.84);
}

.jlb-home-hero__eyebrow::before {
	content: "";
	width: 34px;
	height: 2px;
	background: #b24a3f;
	box-shadow: 0 0 0 1px rgba(178, 74, 63, 0.12);
}

.jlb-home-hero__title {
	max-width: 11ch;
	margin: 0;
	font-size: clamp(3rem, 5.2vw, 5.15rem);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.045em;
	color: #ffffff;
	text-wrap: balance;
}

.jlb-home-hero__lead {
	max-width: 56ch;
	margin: clamp(1.4rem, 2.5vw, 2rem) 0 0;
	font-size: clamp(1.05rem, 1.55vw, 1.28rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}

.jlb-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: clamp(1.8rem, 3vw, 2.5rem);
}

.jlb-home-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0.85rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.jlb-home-hero__cta:hover {
	transform: translateY(-2px);
}

.jlb-home-hero__cta:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

.jlb-home-hero__cta--primary {
	background: #ffffff;
	color: #07111d;
}

.jlb-home-hero__cta--primary:hover {
	background: #edf2f6;
	color: #07111d;
}

.jlb-home-hero__cta--secondary {
	border-color: rgba(255, 255, 255, 0.42);
	background: rgba(7, 17, 29, 0.28);
	color: #ffffff;
	backdrop-filter: blur(8px);
}

.jlb-home-hero__cta--secondary:hover {
	border-color: rgba(255, 255, 255, 0.82);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.jlb-home-hero__proof {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	max-width: 680px;
	margin: clamp(2.25rem, 4vw, 3.5rem) 0 0;
	padding: 1.2rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	list-style: none;
}

.jlb-home-hero__proof li {
	min-width: 0;
	padding: 0 1rem;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.jlb-home-hero__proof li:first-child {
	padding-left: 0;
	border-left: 0;
}

.jlb-home-hero__proof strong,
.jlb-home-hero__proof span {
	display: block;
}

.jlb-home-hero__proof strong {
	font-size: 0.92rem;
	line-height: 1.35;
	color: #ffffff;
}

.jlb-home-hero__proof span {
	margin-top: 0.3rem;
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.62);
}

.jlb-home-hero__index {
	position: absolute;
	right: 0;
	bottom: clamp(2.5rem, 5vh, 4rem);
	display: flex;
	align-items: center;
	gap: 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.68);
}

.jlb-home-hero__index::before {
	content: "";
	width: 44px;
	height: 1px;
	background: rgba(255, 255, 255, 0.38);
}

.jlb-home-hero__index span:first-child {
	font-variant-numeric: tabular-nums;
	color: #ffffff;
}


/* Authority section: editorial transition from the dark hero into the page body. */
.jlb-home-authority {
	position: relative;
	isolation: isolate;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding-block: clamp(5.5rem, 9vw, 8.5rem);
	color: #121a21;
	background: #f2f0eb;
	overflow: hidden;
}

.jlb-home-authority::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(rgba(18, 26, 33, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(18, 26, 33, 0.035) 1px, transparent 1px);
	background-size: 80px 80px;
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 68%);
}

.jlb-home-authority__year {
	position: absolute;
	top: clamp(2rem, 4vw, 4rem);
	left: max(1.5rem, calc((100vw - 1280px) / 2));
	z-index: -1;
	font-size: clamp(8rem, 20vw, 19rem);
	font-weight: 800;
	line-height: 0.75;
	letter-spacing: -0.08em;
	color: rgba(18, 26, 33, 0.045);
	user-select: none;
}

.jlb-home-authority__inner {
	width: min(100% - 3rem, 1280px);
	margin-inline: auto;
}

.jlb-home-authority__header {
	display: grid;
	grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
	gap: clamp(3rem, 8vw, 8rem);
	align-items: start;
}

.jlb-home-authority__meta {
	padding-top: 0.35rem;
}

.jlb-home-authority__eyebrow,
.jlb-home-authority__since {
	margin: 0;
}

.jlb-home-authority__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #6d7479;
}

.jlb-home-authority__eyebrow::before {
	content: "";
	width: 34px;
	height: 2px;
	background: #b24a3f;
}

.jlb-home-authority__since {
	margin-top: 1.5rem;
	font-size: clamp(1.2rem, 2vw, 1.65rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #121a21;
}

.jlb-home-authority__statement h2 {
	max-width: 15ch;
	margin: 0;
	font-size: clamp(2.6rem, 5vw, 5rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: #121a21;
	text-wrap: balance;
}

.jlb-home-authority__statement > p {
	max-width: 62ch;
	margin: clamp(1.5rem, 2.8vw, 2.2rem) 0 0;
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	line-height: 1.7;
	color: #515b62;
}

.jlb-home-authority__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1.8rem;
	padding-bottom: 0.28rem;
	border-bottom: 1px solid rgba(18, 26, 33, 0.28);
	font-size: 0.96rem;
	font-weight: 700;
	color: #121a21;
	text-decoration: none !important;
	transition: gap 160ms ease, border-color 160ms ease;
}

.jlb-home-authority__link:hover {
	gap: 0.8rem;
	border-color: #b24a3f;
	color: #121a21;
}

.jlb-home-authority__link:focus-visible {
	outline: 3px solid #121a21;
	outline-offset: 4px;
}

.jlb-home-authority__disciplines {
	width: 100%;
	margin: clamp(4rem, 7vw, 6.5rem) 0 0;
	padding: 0;
	border-top: 1px solid rgba(18, 26, 33, 0.2);
	list-style: none;
	box-sizing: border-box;
}

.jlb-home-authority__disciplines li {
	display: grid;
	grid-template-columns: 90px minmax(220px, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
	width: 100%;
	min-width: 0;
	padding-block: clamp(1.6rem, 3vw, 2.35rem);
	border-bottom: 1px solid rgba(18, 26, 33, 0.2);
	box-sizing: border-box;
}

.jlb-home-authority__number {
	padding-top: 0.25rem;
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.14em;
	color: #b24a3f;
}

.jlb-home-authority__disciplines h3,
.jlb-home-authority__disciplines p {
	min-width: 0;
	max-width: 100%;
	margin: 0;
	overflow-wrap: break-word;
}

.jlb-home-authority__disciplines h3 {
	font-size: clamp(1.35rem, 2vw, 1.9rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: #121a21;
}

.jlb-home-authority__disciplines p {
	max-width: 58ch;
	font-size: 0.98rem;
	line-height: 1.65;
	color: #657078;
}

@media (max-width: 980px) {
	.jlb-home-hero {
		min-height: 700px;
	}

	.jlb-home-hero__content {
		width: min(720px, 74vw);
	}

	.jlb-home-hero__video {
		object-position: 67% center;
	}

	.jlb-home-hero__veil {
		background:
			linear-gradient(90deg, rgba(4, 12, 20, 0.98) 0%, rgba(4, 12, 20, 0.91) 46%, rgba(4, 12, 20, 0.48) 78%, rgba(4, 12, 20, 0.3) 100%),
			linear-gradient(0deg, rgba(4, 12, 20, 0.76) 0%, rgba(4, 12, 20, 0.08) 50%, rgba(4, 12, 20, 0.18) 100%);
	}

	.jlb-home-hero__index {
		display: none;
	}
}

@media (max-width: 680px) {
	.jlb-home-hero {
		min-height: 720px;
	}

	.jlb-home-hero::after {
		background-size: 54px 54px;
		mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 78%);
	}

	.jlb-home-hero__video {
		object-position: 68% center;
	}

	.jlb-home-hero__veil {
		background:
			linear-gradient(180deg, rgba(4, 12, 20, 0.5) 0%, rgba(4, 12, 20, 0.58) 30%, rgba(4, 12, 20, 0.92) 62%, rgba(4, 12, 20, 0.99) 100%),
			linear-gradient(90deg, rgba(4, 12, 20, 0.38), rgba(4, 12, 20, 0.18));
	}

	.jlb-home-hero__inner {
		align-items: flex-end;
		width: min(100% - 2rem, 1280px);
		padding-block: 4rem 2rem;
	}

	.jlb-home-hero__content {
		width: 100%;
	}

	.jlb-home-hero__eyebrow {
		margin-bottom: 0.95rem;
		font-size: 0.72rem;
		letter-spacing: 0.09em;
	}

	.jlb-home-hero__eyebrow::before {
		width: 24px;
	}

	.jlb-home-hero__title {
		max-width: 10ch;
		font-size: clamp(2.65rem, 12vw, 4rem);
		line-height: 0.98;
	}

	.jlb-home-hero__lead {
		margin-top: 1.1rem;
		font-size: 1rem;
		line-height: 1.55;
	}

	.jlb-home-hero__actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.65rem;
		margin-top: 1.45rem;
	}

	.jlb-home-hero__cta {
		width: 100%;
		min-height: 48px;
	}

	.jlb-home-hero__proof {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 1.5rem;
		padding-top: 0.95rem;
	}

	.jlb-home-hero__proof li {
		padding-inline: 0.6rem;
	}

	.jlb-home-hero__proof li:nth-child(2) {
		padding-right: 0;
	}

	.jlb-home-hero__proof li:nth-child(3) {
		grid-column: 1 / -1;
		margin-top: 0.8rem;
		padding: 0.8rem 0 0;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		border-left: 0;
	}

	.jlb-home-hero__proof strong {
		font-size: 0.78rem;
	}

	.jlb-home-hero__proof span {
		font-size: 0.68rem;
		line-height: 1.35;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jlb-home-hero__cta,
	.jlb-home-authority__link {
		transition: none;
	}

	.jlb-home-hero__cta:hover {
		transform: none;
	}
}


@media (max-width: 980px) {
	.jlb-home-authority__header {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.jlb-home-authority__meta {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 2rem;
	}

	.jlb-home-authority__since {
		margin-top: 0;
	}

	.jlb-home-authority__disciplines li {
		grid-template-columns: 68px minmax(180px, 0.8fr) minmax(0, 1.2fr);
		gap: 1.5rem;
	}
}

@media (max-width: 680px) {
	.jlb-home-authority {
		padding-block: 4.5rem 5rem;
	}

	.jlb-home-authority::before {
		background-size: 58px 58px;
		mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 72%);
	}

	.jlb-home-authority__year {
		top: 2.25rem;
		left: 1rem;
		font-size: clamp(7rem, 34vw, 10rem);
	}

	.jlb-home-authority__inner {
		width: min(100% - 2rem, 1280px);
	}

	.jlb-home-authority__meta {
		display: block;
	}

	.jlb-home-authority__since {
		margin-top: 1.1rem;
		font-size: 1.12rem;
	}

	.jlb-home-authority__statement h2 {
		max-width: 12ch;
		font-size: clamp(2.35rem, 11vw, 3.4rem);
	}

	.jlb-home-authority__statement > p {
		font-size: 1rem;
		line-height: 1.65;
	}

	.jlb-home-authority__disciplines {
		width: 100%;
		margin-top: 3.4rem;
	}

	.jlb-home-authority__disciplines li {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 0.8rem 0.85rem;
		width: 100%;
		min-width: 0;
		padding-block: 1.45rem;
		box-sizing: border-box;
	}

	.jlb-home-authority__number {
		grid-row: 1 / span 2;
	}

	.jlb-home-authority__disciplines h3,
	.jlb-home-authority__disciplines p {
		min-width: 0;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.jlb-home-authority__disciplines h3 {
		font-size: 1.28rem;
	}

	.jlb-home-authority__disciplines p {
		grid-column: 2;
		font-size: 0.9rem;
		line-height: 1.58;
	}
}

/* Main Services menu: the parent opens a selector instead of sending the visitor away first. */
#ast-desktop-header .jlb-services-toggle > .sub-menu {
	min-width: 310px;
	padding: .55rem;
	border: 1px solid #e0e4e7;
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(7,17,29,.14);
}

#ast-desktop-header .jlb-services-toggle > .sub-menu > li > .menu-link {
	min-height: 48px;
	padding: .8rem .9rem;
	border-radius: 5px;
	font-weight: 680;
	line-height: 1.25;
	transition: background-color 150ms ease, transform 150ms ease;
}

#ast-desktop-header .jlb-services-toggle > .sub-menu > li > .menu-link:hover,
#ast-desktop-header .jlb-services-toggle > .sub-menu > li > .menu-link:focus-visible {
	background: #f3f5f6;
	transform: translateX(3px);
}

#ast-desktop-header .jlb-services-toggle > .sub-menu > li:last-child {
	margin-top: .35rem;
	padding-top: .35rem;
	border-top: 1px solid #e0e4e7;
}

#ast-desktop-header .jlb-services-toggle > .sub-menu > li:last-child > .menu-link {
	color: #8b3c34;
	font-weight: 800;
}

/* v0.4.2: prevent viewport/full-bleed overflow in authority section on phones. */
@media (max-width: 680px) {
	.jlb-home-authority {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
		overflow-x: clip;
	}

	.jlb-home-authority__inner {
		width: 100%;
		max-width: 100%;
		padding-inline: 1rem;
		box-sizing: border-box;
	}

	.jlb-home-authority__header,
	.jlb-home-authority__statement,
	.jlb-home-authority__disciplines,
	.jlb-home-authority__disciplines li {
		min-width: 0;
		max-width: 100%;
	}

	.jlb-home-authority__disciplines li {
		grid-template-columns: 36px minmax(0, 1fr);
	}

	.jlb-home-authority__disciplines h3,
	.jlb-home-authority__disciplines p {
		width: auto;
		min-width: 0;
		max-width: 100%;
		overflow-wrap: anywhere;
	}
}

