/**
 * KOG · About (Editorial) — pattern styles
 * -----------------------------------------------------------------------------
 * Shared design system for the About page storytelling patterns
 * (patterns/about-*.php). All selectors are scoped under `.kog-ab-*` so nothing
 * here leaks into other templates. Values mirror the editorial mockup, which
 * uses the same palette/type as the 2026 brand kit.
 *
 * Patterns are built from native blocks (Cover, Columns, Group, Image, Heading,
 * Paragraph, Buttons) + a thin layer of class hooks for the magazine layout.
 */

:root {
	--kog-green:        #1A3A2A;
	--kog-green-deep:   #0F241A;
	--kog-green-mid:    #2D5C3E;
	--kog-cream:        #F4F0E6;
	--kog-cream-soft:   #FAF8F3;
	--kog-gold:         #C4973A;
	--kog-gold-light:   #E8C46A;
	--kog-ink:          #1C1C1A;
	--kog-ink-soft:     #4E534D;
	--kog-serif:        'Playfair Display', Georgia, serif;
	--kog-sans:         'DM Sans', system-ui, sans-serif;
}

/* ---------------------------------------------------------------------------
 * Section shells + backgrounds
 * ------------------------------------------------------------------------- */
.kog-ab-chapter,
.kog-ab-philosophy,
.kog-ab-gallery-section,
.kog-ab-impact-section,
.kog-ab-signature {
	padding-block: clamp(4rem, 9vw, 7rem);
	padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.kog-ab--cream  { background: var(--kog-cream); color: var(--kog-ink); }
.kog-ab--forest { background: var(--kog-green); color: var(--kog-cream); }
.kog-ab--deep   { background: var(--kog-green-deep); color: var(--kog-cream); }

/* Butt the stacked editorial bands together — drop the theme's default
   block gap between sections (scoped to the kog-ab- sections only). */
.entry-content > [class*="kog-ab-"] { margin-block-start: 0 !important; }

.kog-ab--forest p,
.kog-ab--deep p { color: rgba(244, 240, 230, 0.82); }

/* ---------------------------------------------------------------------------
 * Shared editorial type
 * ------------------------------------------------------------------------- */
.kog-ab-kicker {
	font-family: var(--kog-sans);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--kog-gold);
	font-weight: 700;
	margin: 0 0 1rem;
	display: flex;
	gap: 0.75rem;
	align-items: center;
}
.kog-ab-kicker::before {
	content: "";
	width: 32px;
	height: 1px;
	background: currentColor;
	flex: none;
}
/* Centered kicker variant (philosophy / centered sections) */
.kog-ab-kicker.is-centered { justify-content: center; }

.kog-ab-h1,
.kog-ab-h2 {
	font-family: var(--kog-serif);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.03;
	margin: 0;
}
.kog-ab-h1 { font-size: clamp(3.2rem, 8vw, 7rem); line-height: 1.0; }
.kog-ab-h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); }

.kog-ab-h1 em,
.kog-ab-h2 em,
.kog-ab-pullquote em,
.kog-ab-quote-xl em { color: var(--kog-gold); font-style: italic; }

.kog-ab-lead {
	font-size: clamp(1.12rem, 1.5vw, 1.4rem);
	line-height: 1.6;
}
.kog-ab-note {
	font-family: var(--kog-serif);
	font-style: italic;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	line-height: 1.4;
	color: var(--kog-green);
}
.kog-ab--forest .kog-ab-note,
.kog-ab--deep .kog-ab-note { color: var(--kog-gold-light); }

/* Gold left-bar emphasis line (origin "sketch") */
.kog-ab-sketch {
	border-left: 2px solid var(--kog-gold);
	padding-left: 1.2rem;
	margin-top: 1.6rem;
	font-weight: 500;
	color: var(--kog-green) !important;
}

/* Body copy — brand kit: DM Sans · 15px · weight 400 · line-height ~1.7.
   Excludes eyebrows, leads, notes, sketch, pull quotes (their own scale). */
.kog-ab-chapter .kog-ab-text p:not(.kog-ab-lead):not(.kog-ab-kicker):not(.kog-ab-sketch):not(.kog-ab-note),
.kog-ab-impact p,
.kog-ab-signature .kog-ab-text p:not(.kog-ab-lead):not(.kog-ab-kicker):not(.kog-ab-pullquote) {
	font-family: var(--kog-sans);
	font-size: 0.9375rem;
	line-height: 1.7;
	font-weight: 400;
}

/* ---------------------------------------------------------------------------
 * Chapter (image + text split)
 * ------------------------------------------------------------------------- */
.kog-ab-chapter > .wp-block-columns,
.kog-ab-chapter .kog-ab-cols {
	align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
	max-width: 1200px;
	margin-inline: auto;
}
.kog-ab-chapter .kog-ab-text > * + * { margin-top: 1.1rem; }

/* Rounded photo card with caption pill */
.kog-ab-photo {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 34px 80px rgba(26, 58, 42, 0.16);
	line-height: 0;
}
.kog-ab-photo .wp-block-image,
.kog-ab-photo figure { margin: 0; }
.kog-ab-photo img {
	width: 100%;
	object-fit: cover;
	display: block;
}
/* In the gallery the grid row sets the height, so the image fills it. */
.kog-ab-gallery .kog-ab-photo,
.kog-ab-gallery .kog-ab-photo .wp-block-image,
.kog-ab-gallery .kog-ab-photo figure,
.kog-ab-gallery .kog-ab-photo img { height: 100%; }
.kog-ab-caption {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	margin: 0;
	background: rgba(26, 58, 42, 0.86);
	color: var(--kog-cream);
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1;
}

/* ---------------------------------------------------------------------------
 * Stats (leadership proof)
 * ------------------------------------------------------------------------- */
.kog-ab-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(244, 240, 230, 0.16);
	margin-top: 2.5rem;
	border-radius: 14px;
	overflow: hidden;
}
.kog-ab-stat {
	background: rgba(15, 36, 26, 0.5);
	padding: 1.9rem 1.5rem;
	margin: 0;
}
.kog-ab-stat-num {
	font-family: var(--kog-serif);
	font-size: clamp(2.6rem, 5vw, 4.4rem);
	line-height: 1;
	color: var(--kog-gold-light);
	margin: 0;
}
.kog-ab-stat-label {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
	color: rgba(244, 240, 230, 0.8);
	margin: 0.45rem 0 0;
}

/* ---------------------------------------------------------------------------
 * Full-bleed photo sections (courage, mission)
 * ------------------------------------------------------------------------- */
.kog-ab-hero,
.kog-ab-fullphoto,
.kog-ab-cta { position: relative; overflow: hidden; }

.kog-ab-hero      { min-height: 100svh; }
.kog-ab-fullphoto { min-height: 82vh; }
.kog-ab-cta       { min-height: 72vh; }

/* Replace the flat Cover dim with a directional editorial gradient. */
.kog-ab-hero > .wp-block-cover__background {
	background:
		linear-gradient(180deg, rgba(26,58,42,0.28), rgba(26,58,42,0.18) 36%, rgba(15,32,24,0.9) 100%),
		linear-gradient(90deg, rgba(26,58,42,0.82), transparent 60%) !important;
	opacity: 1 !important;
}
.kog-ab-fullphoto > .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(15,36,26,0.9), rgba(15,36,26,0.45) 50%, rgba(15,36,26,0.12)) !important;
	opacity: 1 !important;
}
.kog-ab-cta > .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(15,36,26,0.94), rgba(15,36,26,0.55), rgba(15,36,26,0.2)) !important;
	opacity: 1 !important;
}
.kog-ab-hero img.wp-block-cover__image-background,
.kog-ab-fullphoto img.wp-block-cover__image-background,
.kog-ab-cta img.wp-block-cover__image-background { filter: saturate(1.06) contrast(1.04); }

.kog-ab-hero .wp-block-cover__inner-container,
.kog-ab-fullphoto .wp-block-cover__inner-container,
.kog-ab-cta .wp-block-cover__inner-container {
	width: min(1200px, 100%);
	margin-inline: auto;
	padding-inline: clamp(1.5rem, 5vw, 3rem);
}
.kog-ab-hero .kog-ab-copy   { max-width: 56ch; }
.kog-ab-fullphoto .kog-ab-copy,
.kog-ab-cta .kog-ab-copy    { max-width: 62ch; }
.kog-ab-hero .kog-ab-lead   { color: rgba(244,240,230,0.92); }

/* Mission: bright cream overlay + dark text */
.kog-ab--mission > .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(250,248,243,0.95), rgba(250,248,243,0.8) 48%, rgba(250,248,243,0.12)) !important;
	opacity: 1 !important;
}
.kog-ab--mission .kog-ab-h2,
.kog-ab--mission .kog-ab-lead,
.kog-ab--mission p { color: var(--kog-ink); }
.kog-ab--mission .kog-ab-kicker { color: var(--kog-gold); }

/* ---------------------------------------------------------------------------
 * Hero meta pills
 * ------------------------------------------------------------------------- */
.kog-ab-pills { gap: 0.55rem !important; }
.kog-ab-pill {
	border: 1px solid rgba(244, 240, 230, 0.34);
	border-radius: 999px;
	padding: 0.42rem 0.85rem;
	text-transform: uppercase;
	font-size: 0.66rem;
	letter-spacing: 0.13em;
	font-weight: 700;
	color: rgba(244, 240, 230, 0.85);
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * Philosophy statement
 * ------------------------------------------------------------------------- */
.kog-ab-philosophy { text-align: center; }
.kog-ab-quote-xl {
	font-family: var(--kog-serif);
	font-weight: 700;
	font-size: clamp(2.4rem, 6.5vw, 6.2rem);
	line-height: 1.0;
	letter-spacing: -0.04em;
	max-width: 18ch;
	margin: 0 auto;
	color: var(--kog-green);
}
.kog-ab--forest .kog-ab-quote-xl,
.kog-ab--deep .kog-ab-quote-xl { color: var(--kog-cream); }

/* ---------------------------------------------------------------------------
 * Human gallery (editorial collage)
 * ------------------------------------------------------------------------- */
.kog-ab-gallery {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr 1fr;
	grid-template-rows: 300px 240px;
	gap: 1rem;
	margin-top: 2.5rem;
}
.kog-ab-gallery .kog-ab-photo { height: 100%; border-radius: 18px; }
.kog-ab-gallery .kog-ab-g1 { grid-row: span 2; }
.kog-ab-gallery .kog-ab-g4 { grid-row: span 2; }

/* ---------------------------------------------------------------------------
 * Impact cards (after the applause)
 * ------------------------------------------------------------------------- */
.kog-ab-impact-banner {
	margin: 0 auto 2.5rem;
	max-width: 1200px;
	border-radius: 20px;
	overflow: hidden;
	line-height: 0;
}
.kog-ab-impact-banner img { width: 100%; height: clamp(220px, 34vw, 440px); object-fit: cover; }
.kog-ab-impact-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-top: 2.5rem;
}
.kog-ab-impact {
	border: 1px solid rgba(244, 240, 230, 0.16);
	border-radius: 18px;
	padding: 1.6rem;
	background: rgba(244, 240, 230, 0.045);
}
.kog-ab-impact h3 {
	font-family: var(--kog-serif);
	font-size: 1.4rem;
	margin: 0 0 0.6rem;
	color: var(--kog-gold-light);
}
.kog-ab-impact p { margin: 0; }

/* ---------------------------------------------------------------------------
 * Signature story
 * ------------------------------------------------------------------------- */
.kog-ab-signature .kog-ab-cols { align-items: start; gap: clamp(2rem, 5vw, 4.5rem); max-width: 1200px; margin-inline: auto; }
.kog-ab-rule { height: 1px; background: rgba(196, 151, 58, 0.32); border: 0; margin: 1.6rem 0; }
.kog-ab-pullquote {
	font-family: var(--kog-serif);
	font-weight: 700;
	font-size: clamp(1.8rem, 3.4vw, 3rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--kog-cream);
	margin: 0 0 1.4rem;
}

/* ---------------------------------------------------------------------------
 * Buttons (editorial pills) — applied to core/button via className
 * ------------------------------------------------------------------------- */
.kog-ab-btn-gold  > .wp-block-button__link,
.kog-ab-btn-ghost > .wp-block-button__link,
.kog-ab-btn-dark  > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	border-radius: 999px;
	padding: 1rem 1.5rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	transition: transform 0.24s ease-out;
}
.kog-ab-btn-gold  > .wp-block-button__link { background: var(--kog-gold); color: var(--kog-green); border: 1px solid var(--kog-gold); }
.kog-ab-btn-ghost > .wp-block-button__link { background: transparent; border: 1px solid rgba(244, 240, 230, 0.38); color: var(--kog-cream); }
.kog-ab-btn-dark  > .wp-block-button__link { background: transparent; border: 1px solid rgba(28, 28, 26, 0.24); color: var(--kog-ink); }
.kog-ab-btn-gold  > .wp-block-button__link:hover,
.kog-ab-btn-ghost > .wp-block-button__link:hover,
.kog-ab-btn-dark  > .wp-block-button__link:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.kog-ab-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px; }
	.kog-ab-impact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.kog-ab-stats { grid-template-columns: 1fr; }
	.kog-ab-hero, .kog-ab-fullphoto, .kog-ab-cta { min-height: 78vh; }
}
@media (max-width: 680px) {
	.kog-ab-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
	.kog-ab-gallery .kog-ab-photo { height: 320px; }
	.kog-ab-gallery .kog-ab-g1, .kog-ab-gallery .kog-ab-g4 { grid-row: auto; }
	.kog-ab-impact-grid { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.kog-ab-btn-gold > .wp-block-button__link,
	.kog-ab-btn-ghost > .wp-block-button__link,
	.kog-ab-btn-dark > .wp-block-button__link { transition: none; }
}
