/**
 * About page styles.
 *
 * Uses the locked Meifeida palette and the system font stack from global.css.
 */

/* The hero supplies the page H1; hide Astra's default page title. */
.page-id-14 .entry-header {
	display: none;
}

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

.jgy-about-hero {
	background-color: var(--jgy-primary);
	border-radius: var(--jgy-radius-lg);
	color: #ffffff;
	margin: 0 0 56px;
	padding: 64px 56px;
}

.jgy-about-hero h1 {
	color: #ffffff;
	font-size: clamp(32px, 4vw, 52px);
	margin: 8px 0 16px;
}

.jgy-about-hero p {
	color: #d9d6cf;
	font-size: 18px;
	margin: 0 0 14px;
	max-width: 720px;
}

.jgy-about-eyebrow {
	color: var(--jgy-accent) !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 !important;
	text-transform: uppercase;
}

.jgy-about-badge {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	color: #edeae3 !important;
	display: inline-block;
	font-size: 12px !important;
	letter-spacing: 0.04em;
	margin: 8px 0 0 !important;
	padding: 5px 12px;
}

/* --------------------------------------------------------------------------
   Shared sections
   -------------------------------------------------------------------------- */

.jgy-about-section {
	margin: 0 0 56px;
}

.jgy-about-section h2 {
	font-size: clamp(26px, 3vw, 36px);
	margin: 0 0 14px;
}

.jgy-about-section > p {
	max-width: 820px;
}

.jgy-about-note {
	color: var(--jgy-muted);
	font-size: 13px;
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Factory grid
   -------------------------------------------------------------------------- */

.jgy-about-factory-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 24px;
}

.jgy-about-factory-grid figure {
	margin: 0;
	min-width: 0;
}

.jgy-about-factory-grid img {
	border-radius: var(--jgy-radius-lg);
	display: block;
	height: auto;
	width: 100%;
}

.jgy-about-factory-grid figcaption {
	color: var(--jgy-muted);
	font-size: 13px;
	margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Production timeline
   -------------------------------------------------------------------------- */

.jgy-about-timeline {
	margin-top: 28px;
	position: relative;
}

.jgy-about-timeline::before {
	background-color: var(--jgy-border);
	bottom: 12px;
	content: "";
	left: 22px;
	position: absolute;
	top: 12px;
	width: 2px;
}

.jgy-about-step {
	display: grid;
	gap: 2px 18px;
	grid-template-columns: 46px minmax(0, 1fr);
	padding-bottom: 26px;
	position: relative;
}

.jgy-about-step:last-child {
	padding-bottom: 0;
}

.jgy-about-step__number {
	align-items: center;
	background-color: var(--jgy-accent);
	border-radius: 50%;
	color: #ffffff;
	display: flex;
	font-size: 13px;
	font-weight: 700;
	grid-row: 1 / span 2;
	height: 44px;
	justify-content: center;
	margin: 0;
	width: 44px;
}

.jgy-about-step h3 {
	font-size: 19px;
	margin: 9px 0 4px;
}

.jgy-about-step p {
	color: var(--jgy-muted);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Testing
   -------------------------------------------------------------------------- */

.jgy-about-testing-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 24px 0;
}

.jgy-about-testing-grid figure {
	margin: 0;
	min-width: 0;
}

.jgy-about-testing-grid img {
	border-radius: var(--jgy-radius-lg);
	display: block;
	height: auto;
	width: 100%;
}

.jgy-about-testing-grid figcaption {
	color: var(--jgy-muted);
	font-size: 13px;
	margin-top: 8px;
}

.jgy-about-testing-list {
	background-color: var(--jgy-surface);
	border: 1px solid var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	padding: 22px 26px;
}

.jgy-about-testing-list h3 {
	margin-top: 0;
}

.jgy-about-testing-list ul {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Certifications
   -------------------------------------------------------------------------- */

.jgy-about-cert-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 24px;
}

.jgy-about-cert {
	align-items: center;
	background-color: var(--jgy-subtle);
	border: 1px dashed var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	color: var(--jgy-muted-strong);
	display: flex;
	flex-direction: column;
	font-size: 13px;
	gap: 8px;
	justify-content: center;
	margin: 0;
	min-height: 132px;
	padding: 18px;
	text-align: center;
}

.jgy-about-cert::before {
	background-color: #ffffff;
	border: 2px solid var(--jgy-border);
	border-radius: 50%;
	content: "";
	display: block;
	height: 38px;
	width: 38px;
}

.jgy-about-cert span {
	color: var(--jgy-muted-strong);
	display: block;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Sustainability
   -------------------------------------------------------------------------- */

.jgy-about-sustainability {
	background-color: var(--jgy-surface);
	border-left: 4px solid var(--jgy-accent);
	border-radius: var(--jgy-radius);
	padding: 24px 28px;
}

.jgy-about-sustainability h2 {
	margin-top: 0;
}

.jgy-about-sustainability ul {
	margin-bottom: 0;
}

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

.jgy-about-cta {
	background-color: var(--jgy-primary);
	border-radius: var(--jgy-radius-lg);
	color: #ffffff;
	margin: 0 0 24px;
	padding: 48px;
}

.jgy-about-cta h2 {
	color: #ffffff;
	margin-top: 0;
}

.jgy-about-cta p {
	color: #d9d6cf;
	max-width: 720px;
}

.jgy-about-cta .wp-block-buttons {
	gap: 14px;
	margin-top: 24px;
}

.jgy-about-cta .wp-block-button__link {
	background-color: #ffffff;
	border-color: #ffffff;
	color: var(--jgy-primary);
}

.jgy-about-cta .wp-block-button__link:hover,
.jgy-about-cta .wp-block-button__link:focus {
	background-color: var(--jgy-accent);
	border-color: var(--jgy-accent);
	color: #ffffff;
}

.jgy-about-cta .jgy-about-cta__secondary .wp-block-button__link {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.45);
	color: #ffffff;
}

.jgy-about-cta .jgy-about-cta__secondary .wp-block-button__link:hover,
.jgy-about-cta .jgy-about-cta__secondary .wp-block-button__link:focus {
	background-color: #ffffff;
	border-color: #ffffff;
	color: var(--jgy-primary);
}

.jgy-about-disclaimer {
	color: var(--jgy-muted);
	font-size: 13px;
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Founder
   -------------------------------------------------------------------------- */

.jgy-about-founder-grid {
	align-items: center;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	margin-top: 24px;
}

.jgy-about-founder-grid .wp-block-image {
	margin: 0;
}

.jgy-about-founder-grid img {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.jgy-about-founder-quote {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	.jgy-about-hero {
		padding: 40px 24px;
	}

	.jgy-about-section {
		margin-bottom: 44px;
	}

	.jgy-about-factory-grid,
	.jgy-about-testing-grid {
		grid-template-columns: 1fr;
	}

	.jgy-about-cert-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jgy-about-founder-grid {
		gap: 24px;
		grid-template-columns: 1fr;
	}

	.jgy-about-founder-grid .wp-block-image {
		justify-self: center;
		max-width: 320px;
		width: 100%;
	}

	.jgy-about-cta {
		padding: 32px 24px;
	}

	.jgy-about-cta .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.jgy-about-cta .wp-block-button,
	.jgy-about-cta .wp-block-button__link {
		text-align: center;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.jgy-about-cert-grid {
		grid-template-columns: 1fr;
	}

	.jgy-about-step {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	.jgy-about-step__number {
		font-size: 12px;
		height: 38px;
		width: 38px;
	}

	.jgy-about-timeline::before {
		left: 19px;
	}
}
