/* TG Partners — editorial boutique design system */

:root {
	--tgp-navy: #141b24;
	--tgp-navy-deep: #0e131a;
	--tgp-charcoal: #2a2622;
	--tgp-muted: #5e574e;
	--tgp-border: #e4ddd2;
	--tgp-ivory: #f6f1e8;
	--tgp-white: #fcfaf6;
	--tgp-bronze: #6B4F2D;
	--tgp-bronze-soft: #b08a55;
	--tgp-max: 1240px;
	--tgp-gutter: clamp(1.25rem, 4vw, 1.5rem);
}

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

html {
	scroll-behavior: smooth;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	background: var(--tgp-ivory);
	color: var(--tgp-charcoal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	font-size: 1.0625rem;
	line-height: 1.7;
}

html.tgp-nav-open,
html.tgp-nav-open body {
	overflow: hidden;
	touch-action: none;
}

.wp-site-blocks {
	overflow-x: clip;
	padding: 0 !important;
}

.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-site-blocks > main {
	padding-inline: 0;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

iframe {
	display: block;
}

:focus-visible {
	outline: 2px solid var(--tgp-bronze);
	outline-offset: 3px;
}

.screen-reader-text:focus {
	z-index: 100000;
}

/* ---------- Header ---------- */

.tgp-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--tgp-ivory);
	border-bottom: 1px solid var(--tgp-border);
}

.tgp-header .alignfull,
.tgp-header .alignwide {
	max-width: none !important;
	margin: 0 !important;
}

.tgp-header__bar {
	max-width: var(--tgp-max);
	margin: 0 auto;
	padding: 0.65rem var(--tgp-gutter);
	display: flex;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.tgp-header__brand {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	flex: 1 1 auto;
}

.tgp-header__brand .wp-block-site-logo,
.tgp-header__mark-link {
	display: flex;
	flex-shrink: 0;
	line-height: 0;
}

.tgp-header .custom-logo,
.tgp-header__mark {
	width: 40px;
	height: 40px;
	display: block;
}

.tgp-header__brand-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.tgp-header__brand .wp-block-site-title {
	margin: 0;
	font-size: clamp(1.15rem, 3.4vw, 1.4rem) !important;
	text-transform: none !important;
	letter-spacing: 0.01em !important;
}

.tgp-header__brand .wp-block-site-title a {
	text-decoration: none;
}

.tgp-header__tagline {
	margin: 0 !important;
	font-size: 0.6875rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tgp-muted);
	line-height: 1.3;
}

.tgp-header__nav {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-left: auto;
	flex: 0 0 auto;
}

.tgp-header .wp-block-navigation {
	font-size: 1rem;
}

.tgp-header .wp-block-navigation a {
	text-decoration: none;
	padding: 0.4rem 0.15rem;
}

.tgp-header .wp-block-navigation__responsive-container-open,
.tgp-header .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	min-width: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tgp-header .wp-block-navigation__responsive-container-open svg,
.tgp-header .wp-block-navigation__responsive-container-close svg {
	width: 26px;
	height: 26px;
}

.tgp-header__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.5rem 1rem !important;
	white-space: nowrap;
	text-decoration: none;
	background: var(--tgp-navy);
	color: var(--tgp-white);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.tgp-header__cta .wp-block-button__link:hover,
.tgp-header__cta .wp-block-button__link:focus-visible {
	background: var(--tgp-bronze);
	color: var(--tgp-white);
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--tgp-ivory) !important;
	padding: 1.25rem 1.5rem 2rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--tgp-navy) !important;
	font-size: 1.25rem !important;
	padding: 0.85rem 0 !important;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.15rem !important;
}

.tgp-cta-short {
	display: none;
}

@media (max-width: 899px) {
	.tgp-header__cta .tgp-cta-full {
		display: none;
	}

	.tgp-header__cta .tgp-cta-short {
		display: inline;
	}

	.tgp-header__cta .wp-block-button__link {
		padding: 0.55rem 0.85rem !important;
		font-size: 0.9375rem;
	}
}

.wp-block-navigation__responsive-container.is-menu-open .tgp-mobile-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1.5rem;
	min-height: 48px;
	padding: 0.85rem 1.15rem;
	background: var(--tgp-navy);
	color: var(--tgp-white) !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	width: 100%;
	max-width: 22rem;
}

@media (min-width: 900px) {
	.tgp-header .wp-block-navigation__responsive-container-open {
		display: none !important;
	}

	.tgp-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: block !important;
		position: static;
		width: auto;
		height: auto;
		background: transparent;
	}

	.tgp-header .wp-block-navigation__responsive-container:not(.is-menu-open)
		.wp-block-navigation__responsive-container-content {
		display: flex !important;
	}

	.tgp-header .wp-block-navigation .wp-block-navigation__container {
		gap: 1.35rem !important;
	}
}

/* ---------- Buttons ---------- */

.wp-block-button__link {
	border-radius: 0 !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	text-decoration: none !important;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-element-button.has-border-color {
	border-width: 1px !important;
	background: transparent !important;
	color: var(--tgp-navy) !important;
	border-color: var(--tgp-navy) !important;
}

.tgp-section--navy .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--tgp-ivory) !important;
	border-color: rgba(246, 241, 232, 0.5) !important;
}

.tgp-section--navy .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--tgp-ivory) !important;
	color: var(--tgp-navy) !important;
}

.tgp-section--navy .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.tgp-section--navy .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible {
	background: var(--tgp-white) !important;
	color: var(--tgp-navy) !important;
}

.tgp-hero .wp-block-buttons,
.tgp-cta .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

@media (max-width: 599px) {
	.tgp-hero .wp-block-button,
	.tgp-cta .wp-block-button,
	.tgp-hero .wp-block-button__link,
	.tgp-cta .wp-block-button__link {
		width: 100%;
	}
}

/* ---------- Hero editorial ---------- */

.tgp-hero {
	max-width: var(--tgp-max);
	margin: 0 auto;
	padding: clamp(1.15rem, 2.8vw, 2rem) var(--tgp-gutter) clamp(1.5rem, 3.5vw, 2.5rem);
}

.tgp-hero__grid {
	display: grid;
	gap: 1.35rem;
	align-items: start;
}

.tgp-kicker {
	margin: 0 0 0.85rem !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tgp-bronze);
	font-weight: 600;
}

.tgp-hero h1 {
	margin: 0 0 0.7rem;
	font-size: clamp(1.85rem, 4.6vw, 2.75rem);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -0.025em;
	max-width: 16ch;
}

.tgp-hero .tgp-lead {
	margin: 0 0 1.15rem;
	font-size: clamp(1.05rem, 2.2vw, 1.15rem);
	line-height: 1.5;
	color: var(--tgp-muted);
	max-width: 38ch;
}

.tgp-hero__media {
	margin: 0;
	max-width: 17.5rem;
	width: 100%;
}

.tgp-hero__media img {
	width: 100%;
	height: auto;
	max-height: 21.5rem;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 16%;
	display: block;
	background: #d9d0c3;
}

.tgp-hero__photo[hidden] {
	display: none !important;
}

.tgp-hero__caption {
	margin: 0.55rem 0 0 !important;
	font-size: 0.875rem !important;
	color: var(--tgp-charcoal);
	letter-spacing: 0.01em;
	line-height: 1.4;
}

.tgp-hero__caption a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--tgp-border);
}

.tgp-hero__caption a:hover,
.tgp-hero__caption a:focus-visible {
	color: var(--tgp-bronze);
	border-bottom-color: var(--tgp-bronze);
}

@media (min-width: 900px) {
	.tgp-hero__grid {
		grid-template-columns: minmax(0, 1fr) 17.5rem;
		gap: 2.75rem 3.25rem;
		align-items: start;
	}
}

/* ---------- Sections ---------- */

.tgp-section {
	max-width: var(--tgp-max);
	margin: 0 auto;
	padding: clamp(2.25rem, 5.5vw, 4rem) var(--tgp-gutter);
}

.tgp-hero + .tgp-section {
	padding-top: clamp(1.25rem, 3vw, 2rem);
}

.tgp-section--band {
	background: var(--tgp-white);
	max-width: none;
	padding-inline: 0;
}

.tgp-section--band > .tgp-section__inner,
.tgp-section--navy > .tgp-section__inner {
	max-width: var(--tgp-max);
	margin: 0 auto;
	padding-inline: var(--tgp-gutter);
}

.tgp-section--navy {
	background: var(--tgp-navy);
	color: var(--tgp-ivory);
	max-width: none;
	padding-inline: 0;
}

.tgp-section--navy h2,
.tgp-section--navy h3 {
	color: var(--tgp-white);
}

.tgp-section--navy p {
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	line-height: 1.65;
	color: #d8d0c6;
}

.tgp-section__head {
	max-width: 38rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.tgp-section h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.7rem, 4.2vw, 2.35rem);
	font-weight: 500;
}

/* ---------- Practice ---------- */

.tgp-practice {
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--tgp-border);
}

.tgp-practice a {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	column-gap: 0.85rem;
	row-gap: 0.2rem;
	padding: 1.35rem 0;
	border-bottom: 1px solid var(--tgp-border);
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease;
}

.tgp-practice a:hover,
.tgp-practice a:focus-visible {
	color: inherit;
}

.tgp-practice__num {
	font-family: Newsreader, Georgia, serif;
	font-size: 0.95rem;
	color: var(--tgp-bronze);
	padding-top: 0.2rem;
}

.tgp-practice__title {
	margin: 0;
	font-family: Newsreader, Georgia, serif;
	font-size: clamp(1.25rem, 3vw, 1.55rem);
	font-weight: 500;
	color: var(--tgp-navy);
}

.tgp-practice__desc {
	grid-column: 2;
	margin: 0;
	color: var(--tgp-muted);
	font-size: 1rem;
}

@media (min-width: 768px) {
	.tgp-practice {
		grid-template-columns: 1fr 1fr;
		column-gap: 3rem;
	}
}

/* ---------- Service hub cards (from static model) ---------- */

.tgp-service-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: var(--tgp-border);
	border: 1px solid var(--tgp-border);
	margin-top: 1.75rem;
}

.tgp-service-card {
	display: block;
	background: var(--tgp-white);
	padding: 1.5rem 1.35rem 1.6rem;
	text-decoration: none;
	color: inherit;
	min-height: 100%;
}

.tgp-service-card:hover,
.tgp-service-card:focus-visible {
	color: inherit;
	background: var(--tgp-ivory);
}

.tgp-service-card .tgp-kicker {
	margin-bottom: 0.45rem !important;
}

.tgp-service-card h2,
.tgp-service-card h3 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.2rem, 2.6vw, 1.4rem);
	font-weight: 500;
}

.tgp-service-card p {
	margin: 0;
	color: var(--tgp-muted);
	font-size: 1rem;
}

@media (min-width: 700px) {
	.tgp-service-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.tgp-ribbon {
	border-left: 2px solid var(--tgp-bronze);
	padding-left: 1.25rem;
	max-width: 46rem;
}

.tgp-ribbon p {
	margin: 0;
	font-size: clamp(1.15rem, 2.4vw, 1.35rem);
	line-height: 1.7;
	color: var(--tgp-navy);
}

.tgp-info-line {
	display: flex;
	gap: 1rem;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--tgp-border);
}

.tgp-info-line__k {
	flex: 0 0 7.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tgp-bronze);
	font-weight: 600;
	padding-top: 0.15rem;
}

.tgp-info-line__v {
	margin: 0;
	font-size: 1.0625rem;
}

.tgp-note {
	border: 1px solid var(--tgp-bronze);
	padding: 1.1rem 1.2rem;
	margin-top: 1.5rem;
	font-size: 0.95rem;
	color: var(--tgp-charcoal);
}

@media (max-width: 599px) {
	.tgp-info-line {
		flex-direction: column;
		gap: 0.25rem;
	}

	.tgp-info-line__k {
		flex: none;
	}
}

/* ---------- About ---------- */

.tgp-about__grid {
	display: grid;
	gap: 2rem;
}

.tgp-about__grid p {
	font-size: 1.0625rem;
}

.tgp-facts {
	display: grid;
	gap: 1.25rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tgp-border);
}

.tgp-facts p {
	margin: 0;
}

.tgp-facts strong {
	display: block;
	font-family: Newsreader, Georgia, serif;
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--tgp-navy);
	margin-bottom: 0.2rem;
}

@media (min-width: 700px) {
	.tgp-facts {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 900px) {
	.tgp-about__grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: 4rem;
		align-items: start;
	}
}

/* ---------- Team ---------- */

.tgp-team {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.25rem;
	max-width: 44rem;
}

.tgp-team a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.tgp-team a:hover .tgp-team__name,
.tgp-team a:focus-visible .tgp-team__name {
	color: var(--tgp-bronze);
}

.tgp-team img {
	width: 100%;
	max-height: 22rem;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center 16%;
	display: block;
	background: #ddd6ca;
}

.tgp-team__name {
	margin: 1rem 0 0.2rem;
	font-family: Newsreader, Georgia, serif;
	font-size: clamp(1.35rem, 3vw, 1.7rem);
	font-weight: 500;
	color: var(--tgp-navy);
}

.tgp-team__role {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tgp-bronze);
}

.tgp-team__more {
	font-size: 0.95rem;
	color: var(--tgp-navy);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (min-width: 700px) {
	.tgp-team {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem 3rem;
	}
}

/* ---------- CTA / contact ---------- */

.tgp-cta {
	display: grid;
	gap: 2.5rem;
}

.tgp-cta h2 {
	color: var(--tgp-white);
}

.tgp-cta p,
.tgp-cta a {
	color: #e8e0d4;
}

.tgp-cta a:hover {
	color: var(--tgp-bronze-soft);
}

.tgp-cta .wp-block-button__link {
	background: var(--tgp-bronze);
	color: var(--tgp-white);
}

.tgp-cta .wp-block-button__link:hover {
	background: var(--tgp-bronze-soft);
}

.tgp-cta .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--tgp-ivory);
	border: 1px solid rgba(246, 241, 232, 0.45);
}

.tgp-section--navy .wpcf7 {
	max-width: 36rem;
	margin: 0 auto;
	padding: 0 var(--tgp-gutter) clamp(3rem, 8vw, 5.5rem);
}

.tgp-section--navy .wpcf7 label {
	color: var(--tgp-ivory);
}

.tgp-section--navy .wpcf7 input[type="text"],
.tgp-section--navy .wpcf7 input[type="email"],
.tgp-section--navy .wpcf7 input[type="tel"],
.tgp-section--navy .wpcf7 select,
.tgp-section--navy .wpcf7 textarea {
	background: var(--tgp-ivory);
}

.tgp-section--navy .wpcf7 input[type="submit"] {
	background: var(--tgp-bronze);
}

.tgp-section--navy .wpcf7 .wpcf7-not-valid-tip,
.tgp-section--navy .wpcf7 .wpcf7-list-item-label {
	color: #e8e0d4;
}

@media (min-width: 900px) {
	.tgp-cta {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
		align-items: start;
	}
}

.tgp-home-contact.alignfull {
	max-width: none !important;
	width: 100%;
	display: grid;
	gap: 2.5rem;
	padding: clamp(3rem, 8vw, 5.5rem) var(--tgp-gutter);
}

.tgp-home-contact .wpcf7 {
	max-width: none;
	margin: 0;
	padding: 0;
}

.tgp-home-contact h3 {
	margin-top: 0;
	font-size: clamp(1.35rem, 3vw, 1.6rem);
}

@media (min-width: 900px) {
	.tgp-home-contact.alignfull {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 4rem;
		align-items: start;
		padding-inline: max(var(--tgp-gutter), calc((100% - var(--tgp-max)) / 2));
	}
}

.tgp-cta .wpcf7 {
	max-width: none;
}

.tgp-cta .wpcf7 label,
.tgp-cta .wpcf7 input,
.tgp-cta .wpcf7 select,
.tgp-cta .wpcf7 textarea {
	color: var(--tgp-navy);
}

/* ---------- Footer ---------- */

.tgp-footer {
	background: var(--tgp-navy-deep);
	color: #d8d0c6;
}

.tgp-footer .alignfull,
.tgp-footer .alignwide {
	max-width: var(--tgp-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.tgp-footer a {
	color: #f6f1e8;
	text-decoration: none;
}

.tgp-footer a:hover {
	color: var(--tgp-bronze-soft);
}

.tgp-footer .wp-block-heading {
	color: var(--tgp-white);
}

.tgp-footer__brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.85rem;
}

.tgp-footer__brand .wp-block-heading {
	margin: 0;
}

.tgp-footer__mark-link {
	display: flex;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	background: var(--tgp-ivory);
	border-radius: 50%;
}

.tgp-footer__mark {
	width: 36px;
	height: 36px;
	display: block;
}

.tgp-footer__disclaimer {
	max-width: 52rem;
	font-size: 0.8125rem !important;
	line-height: 1.55;
	color: #9a9288 !important;
}

.tgp-footer__credits {
	margin: 0;
	font-size: 0.8125rem !important;
	color: #9a9288;
}

.tgp-footer__credits a {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.tgp-footer .wp-block-navigation .wp-block-navigation-item__content {
	color: #f6f1e8;
	padding: 0.35rem 0;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

/* ---------- FAQ ---------- */

.tgp-faq details {
	border-bottom: 1px solid var(--tgp-border);
	padding: 1.1rem 0;
}

.tgp-faq summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--tgp-navy);
	font-family: Newsreader, Georgia, serif;
	font-size: 1.15rem;
	list-style: none;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.tgp-faq summary::-webkit-details-marker {
	display: none;
}

.tgp-faq summary::after {
	content: "+";
	color: var(--tgp-bronze);
	font-weight: 400;
	flex: 0 0 auto;
}

.tgp-faq details[open] summary::after {
	content: "–";
}

.tgp-faq details p {
	margin: 0.65rem 0 0;
	color: var(--tgp-muted);
	font-size: 1rem;
}

/* ---------- Blog ---------- */

.tgp-blog-index .tgp-page-intro .tgp-lead {
	max-width: 42rem;
}

.tgp-blog-list {
	display: grid;
	gap: 1.25rem;
}

.tgp-blog-card {
	padding: 1.35rem 0 1.5rem;
	border-bottom: 1px solid var(--tgp-border);
}

.tgp-blog-card h2,
.tgp-blog-card h3 {
	margin: 0.2rem 0 0.35rem;
	font-size: clamp(1.25rem, 2.6vw, 1.55rem);
	font-weight: 500;
}

.tgp-blog-card h2 a,
.tgp-blog-card h3 a {
	text-decoration: none;
	color: var(--tgp-navy);
}

.tgp-blog-card .wp-block-post-date,
.tgp-blog-card .wp-block-post-terms,
.tgp-single__meta {
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tgp-bronze);
}

.tgp-blog-card .wp-block-post-excerpt p {
	margin: 0.5rem 0 0;
	color: var(--tgp-muted);
}

.tgp-blog-teaser__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin-top: 1.25rem;
}

@media (min-width: 768px) {
	.tgp-blog-teaser__grid {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 1.5rem;
	}

	.tgp-blog-teaser__grid .tgp-blog-card {
		border-bottom: 0;
		padding-top: 0;
	}
}

.tgp-single .tgp-page-intro h1 {
	margin: 0 0 0.85rem;
	max-width: 22ch;
}

.tgp-single__meta {
	gap: 0.35rem 0;
	padding-bottom: 1.35rem;
	margin-bottom: 0;
	border-bottom: 1px solid var(--tgp-border);
}

.tgp-single__meta .wp-block-post-date::after {
	content: "·";
	margin: 0 0.7rem;
	color: var(--tgp-border);
}

.tgp-single .tgp-kicker a {
	color: inherit;
	text-decoration: none;
}

.tgp-single .tgp-page-intro {
	padding-bottom: 0;
}

.tgp-single > .tgp-section {
	padding-top: 1.75rem;
	padding-bottom: clamp(3rem, 7vw, 5rem);
}

.tgp-single .wp-block-post-content > .tgp-lead {
	font-size: clamp(1.08rem, 2.1vw, 1.2rem);
	line-height: 1.7;
	color: var(--tgp-navy);
	margin: 0 0 0.25rem;
}

.tgp-single .wp-block-post-content > h2 {
	margin: 2.1rem 0 0.7rem !important;
	padding-top: 1.65rem;
	border-top: 1px solid var(--tgp-border);
	font-size: clamp(1.28rem, 2.8vw, 1.5rem) !important;
	line-height: 1.3;
	font-weight: 500;
}

.tgp-single .wp-block-post-content > p {
	margin: 0 0 0.9rem;
}

.tgp-single .wp-block-post-content > .tgp-faq {
	margin: 0.35rem 0 1.75rem;
	background: var(--tgp-white);
	border: 1px solid var(--tgp-border);
	padding: 0 1.15rem;
}

.tgp-single .wp-block-post-content > .tgp-faq details {
	border-bottom: 0;
	padding: 0.35rem 0 1rem;
}

.tgp-single .wp-block-post-content > .tgp-faq summary {
	font-size: 1.05rem;
}

.tgp-single .wp-block-post-content > ul.tgp-article-links {
	margin: 0.15rem 0 0;
	padding: 0;
	list-style: none;
	background: var(--tgp-white);
	border: 1px solid var(--tgp-border);
}

.tgp-single .wp-block-post-content > ul.tgp-article-links li {
	margin: 0;
	padding: 0.85rem 1.15rem;
	border-bottom: 1px solid var(--tgp-border);
}

.tgp-single .wp-block-post-content > ul.tgp-article-links li:last-child {
	border-bottom: 0;
}

.tgp-article-cta {
	margin-top: 2.25rem;
	padding: 1.5rem 1.45rem 1.4rem;
	background: var(--tgp-white);
	border: 1px solid var(--tgp-border);
	border-left: 3px solid var(--tgp-bronze);
}

.tgp-article-cta p:last-child {
	margin-bottom: 0;
}

.tgp-article-links a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.tgp-single-cta {
	margin-top: 0;
	padding: clamp(3.25rem, 8vw, 5.5rem) max(var(--tgp-gutter), calc((100% - var(--tgp-max)) / 2)) !important;
	margin-bottom: 0 !important;
}

.tgp-page-cta.tgp-section--navy {
	padding: clamp(3.25rem, 8vw, 5.5rem) max(var(--tgp-gutter), calc((100% - var(--tgp-max)) / 2));
	margin-bottom: 0 !important;
}

/* Legacy page CTA blocks (heading + paragraph) before DB refresh */
.wp-block-post-content > .tgp-section--navy:not(.tgp-page-cta):last-child {
	display: grid;
	gap: 1.25rem 4rem;
	padding: clamp(3.25rem, 8vw, 5.5rem) max(var(--tgp-gutter), calc((100% - var(--tgp-max)) / 2));
	margin-bottom: 0 !important;
	margin-left: calc(-1 * var(--wp--style--root--padding-left, var(--tgp-gutter))) !important;
	margin-right: calc(-1 * var(--wp--style--root--padding-right, var(--tgp-gutter))) !important;
	width: auto !important;
	max-width: none !important;
}

@media (min-width: 800px) {
	.wp-block-post-content > .tgp-section--navy:not(.tgp-page-cta):last-child {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		align-items: start;
	}

	.wp-block-post-content > .tgp-section--navy:not(.tgp-page-cta):last-child > h2 {
		margin: 0 !important;
		font-size: clamp(2rem, 4.6vw, 2.85rem) !important;
		line-height: 1.15;
	}

	.wp-block-post-content > .tgp-section--navy:not(.tgp-page-cta):last-child > p {
		margin: 0 0 1.5rem;
		max-width: 38rem;
		font-size: clamp(1.1rem, 2vw, 1.25rem);
		line-height: 1.65;
		color: #e4dcd2;
	}

	.wp-block-post-content > .tgp-section--navy:not(.tgp-page-cta):last-child > .wp-block-buttons {
		margin: 0;
	}
}

.wp-block-post-content > .tgp-section--navy:not(.tgp-page-cta):last-child > h2::before {
	content: "Programare";
	display: block;
	margin-bottom: 0.85rem;
	font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tgp-bronze-soft);
}

.wp-block-post-content:has(> .tgp-section--navy:last-child),
.wp-site-blocks > main:has(.wp-block-post-content > .tgp-section--navy:last-child) {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.tgp-page-cta.tgp-section--navy,
.wp-block-post-content > .tgp-page-cta:last-child {
	margin-left: calc(-1 * var(--wp--style--root--padding-left, var(--tgp-gutter))) !important;
	margin-right: calc(-1 * var(--wp--style--root--padding-right, var(--tgp-gutter))) !important;
	width: auto !important;
	max-width: none !important;
}

.tgp-cta-band {
	display: grid;
	gap: 1.75rem 4rem;
	max-width: var(--tgp-max);
	margin: 0 auto;
	align-items: start;
}

@media (min-width: 800px) {
	.tgp-cta-band {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	}
}

.tgp-page-cta .tgp-kicker,
.tgp-single-cta .tgp-kicker {
	color: var(--tgp-bronze-soft);
	margin-bottom: 0.85rem !important;
}

.tgp-page-cta h2,
.tgp-single-cta h2 {
	margin: 0 !important;
	padding-top: 0;
	border-top: 0;
	max-width: none;
	font-size: clamp(2rem, 4.6vw, 2.85rem) !important;
	color: var(--tgp-white);
	line-height: 1.15;
}

.tgp-page-cta .tgp-cta-band__action p,
.tgp-cta-band__action p {
	margin: 0 0 1.5rem;
	max-width: 38rem;
	font-size: clamp(1.1rem, 2vw, 1.25rem);
	line-height: 1.65;
	color: #e4dcd2;
}

.tgp-page-cta .wp-block-buttons,
.tgp-single-cta .wp-block-buttons {
	margin: 0;
}

.tgp-page-cta .wp-block-button__link,
.tgp-single-cta .wp-block-button__link {
	background: var(--tgp-ivory) !important;
	color: var(--tgp-navy) !important;
	min-height: 52px;
	padding-inline: 1.5rem;
	display: inline-flex;
	align-items: center;
	font-size: 1rem;
}

.tgp-page-cta .wp-block-button__link:hover,
.tgp-page-cta .wp-block-button__link:focus-visible,
.tgp-single-cta .wp-block-button__link:hover,
.tgp-single-cta .wp-block-button__link:focus-visible {
	background: var(--tgp-white) !important;
	color: var(--tgp-navy) !important;
}

.tgp-page-cta .tgp-single-cta__phones,
.tgp-single-cta__phones {
	margin-top: 1.25rem !important;
	margin-bottom: 0 !important;
	font-size: 1rem;
	line-height: 1.75;
	color: #d8d0c6;
}

.tgp-page-cta .tgp-single-cta__phones a,
.tgp-single-cta__phones a {
	color: var(--tgp-ivory);
	text-decoration: none;
}

.tgp-page-cta .tgp-single-cta__phones a:hover,
.tgp-single-cta__phones a:hover {
	color: var(--tgp-bronze-soft);
}

/* ---------- Forms ---------- */

.wpcf7 form {
	max-width: 36rem;
}

.wpcf7 label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: var(--tgp-navy);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--tgp-border);
	border-radius: 0;
	padding: 0.8rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	background: var(--tgp-white);
	margin-bottom: 1rem;
	color: var(--tgp-charcoal);
}

.wpcf7 input[type="submit"] {
	background: var(--tgp-navy);
	color: var(--tgp-white);
	border: 0;
	padding: 0.9rem 1.5rem;
	min-height: 44px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 0;
	width: auto;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus-visible {
	background: var(--tgp-bronze);
}

.wpcf7 .wpcf7-not-valid-tip {
	font-size: 0.875rem;
}

.tgp-captcha {
	margin: 0 0 1.15rem;
}

.tgp-captcha__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.35rem;
}

.tgp-captcha br {
	display: none;
}

.wpcf7 .tgp-captcha img {
	display: block;
	border: 1px solid var(--tgp-border);
	background: var(--tgp-white);
	width: 168px;
	height: 56px;
	object-fit: contain;
}

.wpcf7 .tgp-captcha input[type="text"] {
	max-width: 11rem;
	margin-bottom: 0;
	letter-spacing: 0.14em;
}

.tgp-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Inner pages */
.entry-content h1 {
	font-size: clamp(1.85rem, 5.2vw, 2.75rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	max-width: 18ch;
}

.tgp-page-intro {
	max-width: var(--tgp-max);
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 2.5rem) var(--tgp-gutter) 0.5rem;
}

.entry-content > .wp-block-group.alignfull.has-background {
	background-color: var(--tgp-ivory) !important;
}

.entry-content ul li,
.wp-block-list li {
	margin-bottom: 0.4rem;
}

.wp-block-image img {
	border-radius: 0;
}

.tgp-partner-card img {
	width: 100%;
	max-height: 22rem;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center 16%;
	display: block;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.tgp-animate {
		opacity: 0;
		transform: translateY(10px);
		animation: tgp-fade-up 0.65s ease forwards;
	}

	@keyframes tgp-fade-up {
		to {
			opacity: 1;
			transform: none;
		}
	}
}
