/* GIDEL page — editorial layout, Palco navy/blue, no card clutter */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Sans:wght@500;600;700&display=swap");

body.gidel-page .page_layout,
body.gidel-page .main,
body.gidel-page .inner-page,
.gidel-page {
	--navy: #0b2458;
	--blue: #2f5fbf;
	--ink: #1a2332;
	--muted: #3d4a5c;
	--line: #d8dee8;
	--soft: #eef2f8;
	--paper: #f7f8fb;
	--max: 920px;
	font-family: "DM Sans", "Open Sans", sans-serif;
	color: var(--ink);
	line-height: 1.65;
	font-size: 16px;
}

/* Theme title banner: quieter on this page */
body.gidel-page .small-section.bg-scroll {
	min-height: 160px !important;
	padding: 48px 0 40px !important;
	background:
		radial-gradient(ellipse 80% 60% at 70% 40%, rgba(47, 95, 191, 0.45), transparent 60%),
		linear-gradient(135deg, #071833 0%, #0b2458 45%, #143a7a 100%) !important;
	background-size: cover !important;
}

body.gidel-page .small-section .home-title {
	font-family: "Instrument Sans", "Dosis", sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-size: clamp(22px, 3.2vw, 34px) !important;
	max-width: 18em;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.2;
}

body.gidel-page .inner-page {
	padding-top: 8px;
	padding-bottom: 48px;
}

/* —— Sections —— */
.gidel-page .g-block {
	max-width: var(--max);
	margin: 0 auto 56px;
}

.gidel-page .g-block:last-child {
	margin-bottom: 0;
}

.gidel-page .g-kicker {
	margin: 0 0 10px;
	color: var(--blue) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.gidel-page .g-title {
	margin: 0 0 14px;
	font-family: "Instrument Sans", "Dosis", sans-serif;
	font-size: clamp(26px, 3.2vw, 34px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: var(--navy) !important;
}

.gidel-page .g-lead {
	margin: 0 0 22px;
	max-width: 62ch;
	color: var(--muted) !important;
	font-size: 17px;
	line-height: 1.7;
}

.gidel-page .g-list .g-name {
	color: var(--navy) !important;
}

.gidel-page .g-lead strong {
	color: var(--ink);
	font-weight: 600;
}

/* —— Intro / appointment —— */
.gidel-page .g-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 36px 48px;
	align-items: center;
	padding: 36px 0 40px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 48px;
	animation: g-rise 0.55s ease both;
}

.gidel-page .g-intro-copy .g-kicker,
.gidel-page .g-intro-copy .g-title,
.gidel-page .g-intro-copy .g-lead,
.gidel-page .g-intro-copy .g-territories {
	color: inherit;
}

.gidel-page .g-intro .g-title {
	font-size: clamp(28px, 3.6vw, 40px);
	color: var(--navy) !important;
}

.gidel-page .g-intro .g-lead {
	color: var(--muted) !important;
}

.gidel-page .g-intro .g-kicker {
	color: var(--blue) !important;
}

.gidel-page .g-visual {
	position: relative;
	min-height: 260px;
	overflow: hidden;
	background: #0b2458;
}

.gidel-page .g-visual img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	object-position: center;
}

.gidel-page .g-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(7, 24, 51, 0.15), transparent 55%);
	pointer-events: none;
}

.gidel-page .g-territories {
	margin: 0 0 24px;
	color: var(--ink) !important;
	font-size: 15px;
	font-weight: 500;
}

.gidel-page .g-territories span {
	color: var(--blue) !important;
	font-weight: 700;
}

.gidel-page .g-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.gidel-page .g-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 1.5px solid var(--navy);
	background: var(--navy);
	color: #fff !important;
	font-family: "Instrument Sans", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gidel-page .g-btn:hover,
.gidel-page .g-btn:focus {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff !important;
	transform: translateY(-1px);
}

.gidel-page .g-btn.is-ghost {
	background: transparent;
	color: var(--navy) !important;
}

.gidel-page .g-btn.is-ghost:hover,
.gidel-page .g-btn.is-ghost:focus {
	background: var(--navy);
	color: #fff !important;
}

/* —— Solution / application link rows (not cards) —— */
.gidel-page .g-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.gidel-page .g-list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px 24px;
	align-items: baseline;
	padding: 18px 4px;
	border-bottom: 1px solid var(--line);
	color: inherit !important;
	text-decoration: none !important;
	transition: background 0.2s ease, padding-left 0.2s ease;
}

.gidel-page .g-list a:hover,
.gidel-page .g-list a:focus {
	background: var(--paper);
	padding-left: 10px;
}

.gidel-page .g-list .g-name {
	display: block;
	font-family: "Instrument Sans", sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: var(--navy);
	letter-spacing: -0.01em;
}

.gidel-page .g-list .g-desc {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
	max-width: 52ch;
}

.gidel-page .g-list .g-go {
	font-size: 13px;
	font-weight: 600;
	color: var(--blue);
	white-space: nowrap;
	align-self: center;
}

.gidel-page .g-list a:hover .g-go {
	text-decoration: underline;
}

.gidel-page .g-apps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
	border-top: 1px solid var(--line);
}

.gidel-page .g-apps a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 4px;
	border-bottom: 1px solid var(--line);
	color: var(--navy) !important;
	font-family: "Instrument Sans", sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
	transition: color 0.15s ease, padding-left 0.2s ease;
}

.gidel-page .g-apps a::after {
	content: "→";
	color: var(--blue);
	font-weight: 500;
	transition: transform 0.2s ease;
}

.gidel-page .g-apps a:hover,
.gidel-page .g-apps a:focus {
	color: var(--blue) !important;
	padding-left: 8px;
}

.gidel-page .g-apps a:hover::after {
	transform: translateX(3px);
}

.gidel-page .g-more {
	margin: 18px 0 0;
	font-size: 14px;
}

.gidel-page .g-more a {
	color: var(--blue) !important;
	font-weight: 600;
	text-decoration: none !important;
}

.gidel-page .g-more a:hover {
	text-decoration: underline !important;
}

/* —— Contacts directory —— */
.gidel-page .g-contacts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 48px;
	padding: 28px 0 0;
	border-top: 1px solid var(--line);
}

.gidel-page .g-contacts-single {
	grid-template-columns: 1fr;
	max-width: 520px;
}

.gidel-page .g-org h3 {
	margin: 0 0 4px;
	font-family: "Instrument Sans", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: -0.02em;
}

.gidel-page .g-org .g-tag {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 14px;
}

.gidel-page .g-person {
	padding: 14px 0;
	border-top: 1px solid var(--line);
}

.gidel-page .g-person:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.gidel-page .g-person strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}

.gidel-page .g-person .g-role {
	display: block;
	margin: 2px 0 6px;
	color: var(--muted);
	font-size: 13px;
}

.gidel-page .g-person a {
	color: var(--blue) !important;
	text-decoration: none !important;
	font-size: 14px;
}

.gidel-page .g-person a:hover {
	text-decoration: underline !important;
}

.gidel-page .g-person .g-line {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink);
}

/* —— Closing band —— */
.gidel-page .g-close {
	margin: 56px calc(50% - 50vw) 0;
	width: 100vw;
	max-width: 100vw;
	padding: 40px 24px;
	background:
		radial-gradient(ellipse 60% 80% at 20% 50%, rgba(47, 95, 191, 0.35), transparent 55%),
		linear-gradient(120deg, #071833, #0b2458 55%, #1a4a8c);
	text-align: center;
}

.gidel-page .g-close-inner {
	max-width: 560px;
	margin: 0 auto;
}

.gidel-page .g-close h2 {
	margin: 0 0 10px;
	font-family: "Instrument Sans", sans-serif;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
}

.gidel-page .g-close p {
	margin: 0 0 22px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	line-height: 1.6;
}

.gidel-page .g-close .g-actions {
	justify-content: center;
}

.gidel-page .g-close .g-btn {
	border-color: #fff;
	background: #fff;
	color: var(--navy) !important;
}

.gidel-page .g-close .g-btn:hover {
	background: transparent;
	color: #fff !important;
}

.gidel-page .g-close .g-btn.is-ghost {
	background: transparent;
	color: #fff !important;
}

.gidel-page .g-close .g-btn.is-ghost:hover {
	background: #fff;
	color: var(--navy) !important;
}

/* Gutenberg helpers */
.gidel-page .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.gidel-page .wp-block-button__link {
	border-radius: 0 !important;
	min-height: 44px;
	padding: 10px 22px !important;
	font-family: "Instrument Sans", sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	background: var(--navy) !important;
	border: 1.5px solid var(--navy) !important;
}

.gidel-page .is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--navy) !important;
}

.gidel-page .g-close .wp-block-button__link {
	background: #fff !important;
	border-color: #fff !important;
	color: var(--navy) !important;
}

.gidel-page .g-close .is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: #fff !important;
	border-color: #fff !important;
}

@keyframes g-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gidel-page .g-intro,
	.gidel-page .g-close,
	.gidel-page .g-list a,
	.gidel-page .g-apps a,
	.gidel-page .g-btn {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 900px) {
	.gidel-page .g-intro {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.gidel-page .g-visual {
		order: -1;
		min-height: 200px;
	}

	.gidel-page .g-visual img {
		min-height: 200px;
	}
}

@media (max-width: 767px) {
	.gidel-page .g-apps,
	.gidel-page .g-contacts {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.gidel-page .g-list a {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.gidel-page .g-list .g-go {
		justify-self: start;
	}

	.gidel-page .g-close {
		margin-left: -15px;
		margin-right: -15px;
		width: calc(100% + 30px);
		max-width: none;
	}
}
