/*
Theme Name: KOKO Enterprise Core
Theme URI: https://kokointernet.com
Author: KOKO Group
Author URI: https://kokointernet.com
Description: Shared presentation framework for KOKO Digital Platform brand websites.
Version: 1.3.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: koko-enterprise-core
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================
   KOKO Enterprise — Launch Design Tokens
   Reset and global typography live in assets/css/base.css.
   ========================================================== */

:root {
	/* Brand */
	--color-primary: #121212;
	--color-secondary: #2c2c2c;
	--color-accent: #c9a227;
	--color-accent-hover: #a9851d;
	--color-accent-soft: #f4eed8;
	--color-accent-contrast: #121212;

	/* Surfaces and text */
	--color-white: #ffffff;
	--color-light: #f6f4ef;
	--color-surface: #ffffff;
	--color-surface-muted: #f8f7f3;
	--color-surface-strong: #ece9e1;
	--color-border: #e4e1d9;
	--color-border-strong: #cbc6ba;
	--color-text: #34332f;
	--color-text-light: #66645f;
	--color-muted: #77736b;

	/* Feedback */
	--color-success: #207245;
	--color-error: #b42318;
	--color-warning: #8a6400;
	--color-info: #175cd3;

	/* Typography */
	--font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-size-base: 1rem;
	--font-size-small: .875rem;
	--line-height-body: 1.75;
	--line-height-heading: 1.06;
	--measure-text: 70ch;
	--measure-narrow: 58ch;
	--measure-wide: 82ch;

	/* Layout */
	--container: 1280px;
	--container-wide: 1440px;
	--container-narrow: 860px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section-space: clamp(5rem, 8vw, 8.5rem);
	--section-space-sm: clamp(3.75rem, 6vw, 5.75rem);
	--section-space-lg: clamp(6.5rem, 11vw, 10.5rem);

	/* Spacing */
	--space-1: .5rem;
	--space-2: .75rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2rem;
	--space-6: 3rem;
	--space-7: 4rem;
	--space-8: 6rem;

	/* Shape */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;
	--radius-pill: 999px;

	/* Elevation */
	--shadow-sm: 0 6px 20px rgba(18, 18, 18, .06);
	--shadow-md: 0 14px 38px rgba(18, 18, 18, .09);
	--shadow-lg: 0 24px 64px rgba(18, 18, 18, .13);

	/* Motion */
	--ease-standard: cubic-bezier(.2, .7, .2, 1);
	--transition-fast: 160ms ease;
	--transition: 280ms ease;
	--transition-slow: 480ms var(--ease-standard);

	/* Focus */
	--focus-ring: 0 0 0 3px rgba(201, 162, 39, .28);
}
/* Portfolio company grid */

.brands-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.brand-card {
	position: relative;
	min-width: 0;
	height: 100%;
	margin: 0;
	background: #fff;
	border: 1px solid rgba(17, 17, 17, 0.12);
	overflow: hidden;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.brand-card:hover,
.brand-card:focus-within {
	border-color: rgba(209, 168, 33, 0.75);
	box-shadow: 0 20px 48px rgba(17, 17, 17, 0.1);
	transform: translateY(-4px);
}

.brand-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #111;
	text-decoration: none;
}

.brand-logo-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 230px;
	padding: clamp(2rem, 4vw, 3.5rem);
	background: #f7f7f5;
	border-bottom: 1px solid rgba(17, 17, 17, 0.08);
	overflow: hidden;
}

.brand-logo {
	display: block;
	width: auto;
	max-width: min(100%, 240px);
	height: auto;
	max-height: 120px;
	object-fit: contain;
	transition: transform 220ms ease;
}

.brand-card:hover .brand-logo,
.brand-card:focus-within .brand-logo {
	transform: scale(1.035);
}

.brand-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 112px;
	background: #111;
	border-radius: 50%;
}

.brand-placeholder span {
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3.5rem;
	line-height: 1;
}

.brand-card-index {
	position: absolute;
	top: 1rem;
	right: 1rem;
	color: rgba(17, 17, 17, 0.45);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.14em;
}

.brand-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(1.5rem, 3vw, 2rem);
}

.brand-sector {
	margin: 0 0 0.65rem;
	color: #777;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.brand-title {
	margin: 0;
	color: #111;
	font-size: clamp(1.45rem, 2vw, 2rem);
	font-weight: 600;
	line-height: 1.15;
}

.brand-excerpt {
	margin: 1rem 0 0;
	color: #555;
	font-size: 1rem;
	line-height: 1.65;
}

.brand-more {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: auto;
	padding-top: 1.5rem;
	color: #111;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition:
		color 180ms ease,
		gap 180ms ease;
}

.brand-card:hover .brand-more,
.brand-link:focus-visible .brand-more {
	gap: 0.8rem;
	color: #d1a821;
}

.brand-link:focus-visible {
	outline: 3px solid #d1a821;
	outline-offset: -3px;
}

.pagination {
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

@media (max-width: 991px) {
	.brands-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.brand-logo-container {
		min-height: 210px;
	}
}

@media (max-width: 640px) {
	.brands-grid {
		grid-template-columns: 1fr;
	}

	.brand-logo-container {
		min-height: 190px;
		padding: 2rem;
	}

	.brand-logo {
		max-width: min(100%, 210px);
		max-height: 100px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brand-card,
	.brand-logo,
	.brand-more {
		transition: none;
	}

	.brand-card:hover,
	.brand-card:focus-within {
		transform: none;
	}
}
/* ==========================================================
   Portfolio company cards
   ========================================================== */

.brands-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.brand-card {
	position: relative;
	min-width: 0;
	height: 100%;
	margin: 0;
	background: #fff;
	border: 1px solid rgba(17, 17, 17, 0.12);
	overflow: hidden;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.brand-card:hover,
.brand-card:focus-within {
	border-color: rgba(209, 168, 33, 0.75);
	box-shadow: 0 20px 48px rgba(17, 17, 17, 0.1);
	transform: translateY(-4px);
}

.brand-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #111;
	text-decoration: none;
}

.brand-logo-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 230px;
	padding: clamp(2rem, 4vw, 3.5rem);
	background: #f7f7f5;
	border-bottom: 1px solid rgba(17, 17, 17, 0.08);
	overflow: hidden;
}

.brand-logo {
	display: block;
	width: auto;
	max-width: min(100%, 240px);
	height: auto;
	max-height: 120px;
	object-fit: contain;
	transition: transform 220ms ease;
}

.brand-card:hover .brand-logo,
.brand-card:focus-within .brand-logo {
	transform: scale(1.035);
}

.brand-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 112px;
	background: #111;
	border-radius: 50%;
}

.brand-placeholder span {
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3.5rem;
	line-height: 1;
}

.brand-card-index {
	position: absolute;
	top: 1rem;
	right: 1rem;
	color: rgba(17, 17, 17, 0.45);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.14em;
}

.brand-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(1.5rem, 3vw, 2rem);
}

.brand-sector {
	margin: 0 0 0.65rem;
	color: #777;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.brand-title {
	margin: 0;
	color: #111;
	font-size: clamp(1.45rem, 2vw, 2rem);
	font-weight: 600;
	line-height: 1.15;
}

.brand-excerpt {
	margin: 1rem 0 0;
	color: #555;
	font-size: 1rem;
	line-height: 1.65;
}

.brand-more {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: auto;
	padding-top: 1.5rem;
	color: #111;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition:
		color 180ms ease,
		gap 180ms ease;
}

.brand-card:hover .brand-more,
.brand-link:focus-visible .brand-more {
	gap: 0.8rem;
	color: #d1a821;
}

.brand-link:focus-visible {
	outline: 3px solid #d1a821;
	outline-offset: -3px;
}

.pagination {
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

@media (max-width: 991px) {
	.brands-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.brand-logo-container {
		min-height: 210px;
	}
}

@media (max-width: 640px) {
	.brands-grid {
		grid-template-columns: 1fr;
	}

	.brand-logo-container {
		min-height: 190px;
		padding: 2rem;
	}

	.brand-logo {
		max-width: min(100%, 210px);
		max-height: 100px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brand-card,
	.brand-logo,
	.brand-more {
		transition: none;
	}

	.brand-card:hover,
	.brand-card:focus-within {
		transform: none;
	}
}