/*
Theme Name:  ALG Kadence Child
Description: Africa Label Group child theme for Kadence. Rich & warm palette, editorial typography, subtle textile-inspired accents.
Template:    kadence
Version:     1.7.0
Text Domain: alg-kadence-child
*/

/* -------------------------------------------------
 * Brand variables — "Rich & Warm" direction.
 * Deepened forest green, terracotta accent, warm gold,
 * warm sand background instead of cool off-white.
 * ------------------------------------------------- */
:root {
	--alg-green:      #0f3d26;
	--alg-green-dark: #08210f;
	--alg-terracotta: #b5541f;
	--alg-terracotta-dark: #8f3f16;
	--alg-gold:       #c9a227;
	--alg-gold-soft:  #e4c874;
	--alg-ink:        #2b2118;
	--alg-paper:      #faf4e9;
	--alg-paper-deep: #f2e8d4;
	--alg-stone:      #e8dcc3;
	--alg-cream:      #fffcf6;
}

/* -------------------------------------------------
 * Typography — Fraunces (editorial serif) for headings,
 * Inter for body. Loaded via functions.php enqueue.
 * ------------------------------------------------- */
body {
	color: var(--alg-ink);
	background: var(--alg-paper);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.05rem;
	line-height: 1.7;
}

h1, h2, h3, h4 {
	font-family: 'Fraunces', Georgia, serif;
	color: var(--alg-green-dark);
	letter-spacing: -0.01em;
	font-weight: 600;
	line-height: 1.2;
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; }

a { color: var(--alg-terracotta-dark); text-decoration-thickness: 1px; }
a:hover { color: var(--alg-gold); }

.alg-eyebrow {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--alg-terracotta-dark);
	margin-bottom: 0.6rem;
}

/* Buttons */
.wp-block-button__link,
.button, button[type="submit"] {
	background: var(--alg-green);
	color: #fff;
	border-radius: 3px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.9em 1.9em !important;
	transition: background 0.2s ease, transform 0.2s ease;
}
.wp-block-button__link:hover,
.button:hover, button[type="submit"]:hover {
	background: var(--alg-green-dark);
	color: #fff;
	transform: translateY(-1px);
}
.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid var(--alg-cream);
	color: var(--alg-cream);
}
.is-style-outline .wp-block-button__link:hover {
	background: rgba(255,255,255,0.08);
	border-color: var(--alg-gold-soft);
	color: var(--alg-gold-soft);
}
.alg-cta-gold .wp-block-button__link {
	background: var(--alg-terracotta);
	color: #fff;
}
.alg-cta-gold .wp-block-button__link:hover {
	background: var(--alg-terracotta-dark);
}

/* -------------------------------------------------
 * Subtle textile-inspired pattern — abstract geometric
 * line motif, used sparingly as texture, never literal.
 * ------------------------------------------------- */
.alg-pattern-divider {
	height: 14px;
	background-image: repeating-linear-gradient(
		135deg,
		var(--alg-gold) 0, var(--alg-gold) 2px,
		transparent 2px, transparent 16px
	);
	opacity: 0.35;
}
.alg-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		45deg,
		rgba(201,162,39,0.06) 0, rgba(201,162,39,0.06) 1px,
		transparent 1px, transparent 22px
	);
	pointer-events: none;
}

/* -------------------------------------------------
 * Homepage components
 * ------------------------------------------------- */

.alg-hero {
	position: relative;
	min-height: 76vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.alg-hero h1 {
	color: #fff;
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 500;
	font-size: clamp(2.4rem, 5.4vw, 4rem);
	line-height: 1.08;
	max-width: 20ch;
}
.alg-hero p { color: #f3ead9; font-size: 1.2rem; max-width: 44rem; line-height: 1.6; }

.alg-proof-bar {
	background: var(--alg-green-dark);
	color: #fff;
	padding: 3.5rem 1rem;
}
.alg-proof-bar .alg-stat strong {
	display: block;
	font-family: 'Fraunces', serif;
	font-size: 2.6rem;
	font-weight: 500;
	color: var(--alg-gold-soft);
	line-height: 1;
	margin-bottom: 0.35rem;
}
.alg-proof-bar .alg-stat span { font-size: 0.92rem; opacity: 0.85; letter-spacing: 0.02em; }
.alg-logo-caption { text-align: center; opacity: 0.7; font-size: 0.9rem; margin-top: 2rem; font-style: italic; }

.wp-block-group.has-alg-section-padding,
main .wp-block-group {
	padding-top: 4.5rem;
	padding-bottom: 4.5rem;
}

.alg-service-card {
	background: var(--alg-cream);
	border: 1px solid var(--alg-stone);
	border-top: none;
	border-radius: 4px;
	padding: 2rem 1.75rem;
	height: 100%;
	position: relative;
	transition: box-shadow .25s ease, transform .25s ease;
}
.alg-service-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--alg-terracotta) 0%, var(--alg-gold) 100%);
	border-radius: 4px 4px 0 0;
}
.alg-service-card:hover {
	box-shadow: 0 14px 32px rgba(15, 61, 38, 0.14);
	transform: translateY(-3px);
}
.alg-service-card h3 { font-size: 1.2rem; margin-top: 0.4rem; }
.alg-service-card h3 a { color: var(--alg-green-dark); }

.alg-work-card {
	background: var(--alg-cream);
	border: 1px solid var(--alg-stone);
	border-radius: 4px;
	padding: 2rem 1.75rem;
	height: 100%;
}
.alg-sector-tag {
	display: inline-block;
	background: var(--alg-paper-deep);
	color: var(--alg-terracotta-dark);
	border: 1px solid var(--alg-stone);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	margin-bottom: 0.9rem;
}

.alg-flagship {
	background: var(--alg-green);
	color: #fff;
	border-radius: 6px;
	padding: 3rem 2.5rem;
	position: relative;
	overflow: hidden;
}
.alg-flagship::after {
	content: "";
	position: absolute;
	bottom: 0; right: 0;
	width: 140px; height: 140px;
	background-image: repeating-linear-gradient(
		135deg,
		rgba(201,162,39,0.18) 0, rgba(201,162,39,0.18) 2px,
		transparent 2px, transparent 14px
	);
	pointer-events: none;
}
.alg-flagship h3 { color: var(--alg-gold-soft); font-size: 1.5rem; }
.alg-flagship p { color: #ece4d4; font-size: 1.02rem; }

.alg-quote {
	position: relative;
	padding: 0.5rem 0 0.5rem 1.5rem;
	border-left: 2px solid var(--alg-terracotta);
	font-family: 'Fraunces', serif;
	font-size: 1.12rem;
	font-style: italic;
	color: var(--alg-green-dark);
	line-height: 1.55;
}
.alg-quote cite {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--alg-ink);
	opacity: 0.75;
}

.alg-cta-band {
	background: var(--alg-green-dark);
	color: #fff;
	text-align: center;
	padding: 5rem 1rem;
	position: relative;
}
.alg-cta-band h2 { color: #fff; }
.alg-cta-band p { color: #e3d9c4; font-size: 1.08rem; }

.site-footer { background: #0c1f13; color: #cdd8cd; }
.site-footer a { color: #cdd8cd; }
.site-footer a:hover { color: var(--alg-gold-soft); }

.alg-contact-map iframe { filter: sepia(8%) saturate(85%); }

/* -------------------------------------------------
 * Badge-monogram system — replaces literal pictograms.
 * A ringed circle (terracotta -> gold gradient) holding
 * a short serif monogram. Used on service, program and
 * industry cards for visual rhythm without stock icons.
 * ------------------------------------------------- */
.alg-badge {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.1rem;
	background:
		radial-gradient(circle, var(--alg-cream) 0 62%, transparent 63%),
		conic-gradient(from 210deg, var(--alg-terracotta), var(--alg-gold), var(--alg-terracotta));
}
.alg-badge span {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--alg-green-dark);
	letter-spacing: 0.02em;
}
.alg-badge--dark {
	background:
		radial-gradient(circle, var(--alg-green) 0 62%, transparent 63%),
		conic-gradient(from 210deg, var(--alg-gold-soft), var(--alg-terracotta), var(--alg-gold-soft));
}
.alg-badge--dark span { color: var(--alg-gold-soft); }

/* Photo treatment — for when real photography is added.
 * Consistent aspect ratio + brand-tinted overlay so any
 * photo (real or licensed stock) matches the palette. */
.alg-photo {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}
.alg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alg-photo::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15,61,38,0) 40%, rgba(8,33,15,0.55) 100%);
	pointer-events: none;
}
.alg-photo--portrait { aspect-ratio: 3 / 4; }
.alg-photo--wide { aspect-ratio: 16 / 9; }
