/*
Theme Name: Big Slick Media
Theme URI: https://bigslick.co.za
Author: Big Slick Media (Pty) Ltd
Description: The Big Slick Media corporate theme ("Open Secret"). Ultramarine and coral, a translucent face-up card, and nothing up its sleeves. Fonts are self-hosted, it makes no external requests, sets no cookies and runs no JavaScript.
Version: 1.4.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bsm
*/

/* Fonts ------------------------------------------------------------------ */

@font-face {
	font-family: 'Figtree';
	src: url('assets/fonts/figtree-latin-wght.woff2') format('woff2-variations');
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('assets/fonts/inter-latin-wght.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IBM Plex Mono';
	src: url('assets/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Tokens ----------------------------------------------------------------- */

:root {
	--ultramarine: #3045D8;
	--coral: #F07861;
	--coral-ink: #B8432E; /* 1.3.0: coral for small text; 5.4:1 on white, 4.8:1 on paper */
	--midnight: #171F48;
	--source: #2D2052;
	--white: #FFFFFF;
	--paper: #EEF1F6;
	--grey: #626B7A;
	--rule: #D5D9E2;

	--display: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
	--text: 'Inter', 'Helvetica Neue', Arial, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

	--wrap: 1200px;
	--gutter: clamp(20px, 5vw, 48px);
	--radius: 14px;
	--card-radius: 22px;
}

/* Base ------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--midnight);
	font: 400 17px/1.6 var(--text);
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--ultramarine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--midnight);
	margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	background: var(--midnight);
	color: var(--white);
	padding: 10px 14px;
	border-radius: 8px;
	z-index: 100;
}
.skip-link:focus { top: 12px; }

.bsm-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.bsm-label {
	font: 400 12px/1.4 var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--grey);
}

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

.bsm-header { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; z-index: 10; }
.bsm-header .bsm-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }

.bsm-logo { display: inline-flex; align-items: center; }
.bsm-logo img { height: 40px; width: auto; display: block; }

.bsm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.bsm-nav a { color: var(--midnight); text-decoration: none; font-weight: 500; font-size: 16px; white-space: nowrap; }
.bsm-nav a:hover, .bsm-nav .current-menu-item > a { color: var(--ultramarine); text-decoration: underline; }

/* The phone menu button: hidden everywhere except phones with JavaScript. */
.bsm-menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -10px 0 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--midnight); cursor: pointer; }
.bsm-menu-toggle__bars, .bsm-menu-toggle__bars::before, .bsm-menu-toggle__bars::after { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, background-color 0.2s ease; }
.bsm-menu-toggle__bars { position: relative; }
.bsm-menu-toggle__bars::before, .bsm-menu-toggle__bars::after { content: ''; position: absolute; left: 0; }
.bsm-menu-toggle__bars::before { top: -7px; }
.bsm-menu-toggle__bars::after { top: 7px; }
.bsm-menu-toggle[aria-expanded="true"] .bsm-menu-toggle__bars { background: transparent; }
.bsm-menu-toggle[aria-expanded="true"] .bsm-menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.bsm-menu-toggle[aria-expanded="true"] .bsm-menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }


/* Hero (front page) ------------------------------------------------------ */

.bsm-hero { background: var(--ultramarine); color: var(--white); overflow: hidden; }
.bsm-hero .bsm-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 112px); }

.bsm-hero__title {
	color: var(--white);
	font-size: clamp(52px, 8.4vw, 112px);
	line-height: 0.9;
	letter-spacing: -0.035em;
	margin: 0 0 24px;
}

.bsm-hero__sub { font: 400 clamp(20px, 2.4vw, 30px)/1.25 var(--mono); margin: 0 0 28px; }
.bsm-hero__descriptor { font: 400 13px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; margin: 0; opacity: 0.92; }
.bsm-hero__descriptor::after { content: ''; display: block; width: 44px; height: 3px; background: var(--coral); margin-top: 12px; }

/* The open secret: a translucent coral card over the evidence slip. */
.bsm-reveal { position: relative; min-height: 470px; isolation: isolate; }
.bsm-reveal__slip {
	position: absolute;
	right: 4%; top: 9%;
	width: 58%; aspect-ratio: 63 / 88;
	background: var(--white);
	border-radius: 10px;
	transform: rotate(5deg);
	box-shadow: 0 30px 60px rgba(10, 16, 60, 0.25);
	display: flex; align-items: center; justify-content: center;
}
.bsm-reveal__slip p {
	font: 400 clamp(22px, 2.6vw, 34px)/1.3 var(--mono);
	color: var(--midnight);
	margin: 0;
	transform: rotate(-12deg);
}
.bsm-reveal__card {
	position: absolute;
	left: 12%; top: 2%;
	width: 56%; aspect-ratio: 63 / 88;
	background: var(--coral);
	mix-blend-mode: multiply;
	border-radius: var(--card-radius);
	transform: rotate(-8deg);
}
.bsm-reveal__index { position: absolute; width: 34px; height: 34px; }
.bsm-reveal__index--tl { left: 18px; top: 18px; }
.bsm-reveal__index--br { right: 18px; bottom: 18px; transform: rotate(180deg); }

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

.bsm-content { padding: 0; }
.bsm-section { padding: clamp(48px, 7vw, 88px) 0; }
.bsm-section:nth-of-type(even) { background: var(--paper); }
.bsm-section h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 28px; }
.bsm-section__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.bsm-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bsm-brand {
	display: block;
	background: var(--white);
	border: 1.5px solid var(--rule);
	border-radius: var(--radius);
	padding: 28px 30px;
	color: var(--midnight);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
a.bsm-brand:hover { border-color: var(--ultramarine); transform: translateY(-2px); }
.bsm-brand__name { display: block; font: 800 clamp(22px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -0.01em; margin-bottom: 8px; }
.bsm-brand__line { display: block; color: var(--grey); font-size: 16px; margin-bottom: 14px; }
.bsm-brand__status { display: inline-block; font: 400 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--midnight); background: var(--paper); padding: 8px 10px; border-radius: 6px; }

.bsm-standards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 28px; padding: 0; list-style: none; }
.bsm-standards li { padding: 4px 24px 4px 0; border-right: 1px solid var(--rule); margin-right: 24px; }
.bsm-standards li:last-child { border-right: 0; margin-right: 0; }
.bsm-standards b { display: block; font: 400 12px/1 var(--mono); letter-spacing: 0.1em; color: var(--coral-ink); margin-bottom: 12px; }
.bsm-standards span { display: block; font: 600 20px/1.3 var(--text); color: var(--midnight); }
.bsm-standards p { font-size: 15px; line-height: 1.5; color: var(--grey); margin: 10px 0 0; }
.bsm-lead { font: 400 clamp(20px, 2.2vw, 26px)/1.45 var(--text); color: var(--midnight); max-width: 860px; }
.bsm-note { color: var(--grey); font-size: 15px; margin: 18px 0 8px; }

.bsm-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.bsm-contact__item { border-top: 1.5px solid var(--midnight); padding-top: 14px; }
.bsm-contact__item p { font-size: 20px; margin: 6px 0 0; }

.bsm-more { font-weight: 600; text-decoration: none; }
.bsm-more::after { content: ' →'; }

/* Page template ------------------------------------------------------------ */

.bsm-pagehead { background: var(--paper); border-bottom: 1px solid var(--rule); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.bsm-pagehead h1 { font-size: clamp(40px, 6vw, 72px); color: var(--ultramarine); margin: 10px 0 14px; }
.bsm-pagehead__dek { font-size: 19px; color: var(--grey); max-width: 680px; margin: 0; }

.bsm-prose { max-width: 720px; padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.bsm-prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.6em 0 0.5em; }
.bsm-prose h3 { font-size: 22px; font-weight: 800; margin: 1.4em 0 0.4em; }
.bsm-prose ul, .bsm-prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.bsm-prose li { margin-bottom: 0.4em; }
.bsm-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.bsm-prose th, .bsm-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bsm-prose th { font-weight: 600; background: var(--paper); }

.bsm-callout { background: var(--coral); color: var(--midnight); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 1.6em; }
.bsm-callout p:last-child { margin-bottom: 0; }
.bsm-draft { border: 1.5px dashed var(--coral); border-radius: var(--radius); padding: 14px 18px; font: 400 13px/1.5 var(--mono); color: var(--midnight); margin: 0 0 1.6em; }

/* Photos (1.3.0; 1.4.0) ------------------------------------------------- */
/* Every photo is toned in Big Slick Media's colours before import (BSM
   Content). Text never sits on a photo without a gradient under it, and every
   line over one passes 4.5:1 (checked at 390, 1280 and 1920 px). */

/* Home page hero (1.4.0): the Earth behind the hero, toned into ultramarine
   so it meets the background with no edge. Africa sits between the headline
   and the cards; a gradient keeps the headline side ultramarine. */
.bsm-hero--photo { position: relative; isolation: isolate; }
.bsm-hero--photo .bsm-inner { position: relative; z-index: 2; }
.bsm-hero__globe { position: absolute; z-index: 0; top: 50%; left: 52%; width: min(58vw, 780px); aspect-ratio: 1; transform: translate(-30%, -50%); pointer-events: none; }
.bsm-hero__globe-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bsm-hero--photo::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--ultramarine) 0%, var(--ultramarine) 40%, rgba(48, 69, 216, 0.6) 52%, rgba(48, 69, 216, 0) 64%); }
.bsm-hero--photo .bsm-reveal { transform: translate(18%, 22%) scale(0.74); }

/* 1.3.0's band under the hero, no longer printed from 1.4.0. */
.bsm-band { margin: 0; background: var(--midnight); }
.bsm-band__img { display: block; width: 100%; height: clamp(220px, 26vw, 420px); object-fit: cover; object-position: center 45%; }

/* Page title band with a photo (1.4.0): midnight, the photo filling the
   right two-thirds and fading into midnight under the title. */
.bsm-pagehead--photo { position: relative; overflow: hidden; background: var(--midnight); border-bottom: 0; padding: clamp(64px, 8vw, 112px) 0; }
.bsm-pagehead--photo .bsm-pagehead__text { position: relative; z-index: 2; max-width: 600px; }
.bsm-pagehead--photo .bsm-label { color: #C9D0F5; }
.bsm-pagehead--photo h1 { color: var(--white); }
.bsm-pagehead--photo .bsm-pagehead__dek { color: #E3E7F4; }
.bsm-pagehead__card { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 66%; margin: 0; }
.bsm-pagehead__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--midnight) 0%, rgba(23, 31, 72, 0.88) 30%, rgba(23, 31, 72, 0.2) 72%, rgba(23, 31, 72, 0.05) 100%); }
.bsm-pagehead__img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Tablets: the photo narrower and the text column clear of it, so every line
   keeps 4.5:1. */
@media (min-width: 701px) and (max-width: 1100px) {
	.bsm-pagehead--photo .bsm-pagehead__text { max-width: 50vw; }
	.bsm-pagehead__card { width: 50%; }
}

/* Brand cards: the brand's own hero photo across the top of its card, with
   the brand's logo over it (1.4.0). */
.bsm-brand__frame { position: relative; display: block; height: 230px; margin: -28px -30px 22px; overflow: hidden; border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; background: var(--midnight); }
.bsm-brand__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 16, 40, 0.1) 0%, rgba(12, 16, 40, 0.55) 100%); }
.bsm-brand__photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
a.bsm-brand:hover .bsm-brand__photo { transform: scale(1.04); }
.bsm-brand__logo { position: absolute; z-index: 1; left: 50%; top: 50%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45)); }
.bsm-brand__logo--ocb { width: min(78%, 380px); }
.bsm-brand__logo--osb { width: min(84%, 420px); }

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

.bsm-footer { background: var(--midnight); color: var(--white); padding: 48px 0 36px; }
.bsm-footer a { color: var(--white); }
.bsm-footer__top { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.bsm-footer__logo img { height: 48px; width: auto; display: block; margin-bottom: 20px; }
.bsm-footer__company { font: 400 14px/1.7 var(--mono); margin: 0; }
.bsm-footer__company strong { font: 600 16px/1.6 var(--text); display: block; }
.bsm-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.bsm-footer nav a { text-decoration: none; font-size: 15px; }
.bsm-footer nav a:hover { text-decoration: underline; }
.bsm-footer__rg { font: 400 14px/1.6 var(--mono); margin: 22px 0 6px; }
.bsm-footer__copy { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin: 0; }

/* Mobile ----------------------------------------------------------------- */

@media (max-width: 860px) {
	.bsm-hero .bsm-inner { grid-template-columns: 1fr; }
	.bsm-reveal { min-height: 400px; max-width: 380px; width: 100%; }
	.bsm-standards { grid-template-columns: 1fr 1fr; row-gap: 24px; }
	.bsm-standards li:nth-child(2) { border-right: 0; margin-right: 0; }
	/* 1.4.0: the hero photo sits low behind the cards, Africa to their left. */
	.bsm-hero__globe { top: auto; bottom: -24vw; left: 30%; width: 118vw; transform: translateX(-50%); }
	.bsm-hero--photo .bsm-reveal { min-height: 340px; transform: translate(22%, 8%) scale(0.62); }
	.bsm-hero--photo::after { background: linear-gradient(180deg, var(--ultramarine) 0%, var(--ultramarine) 46%, rgba(48, 69, 216, 0.45) 60%, rgba(48, 69, 216, 0) 74%); }
}
/* Tablets: a smaller globe, so Africa still shows beside the cards. */
@media (min-width: 561px) and (max-width: 860px) {
	.bsm-hero__globe { bottom: -16vw; left: 34%; width: 84vw; }
	.bsm-hero--photo .bsm-reveal { transform: translate(48%, 6%) scale(0.7); }
}

/* The header links don't fit beside the logo below about 980px: from there
   they sit in one row under the logo. On phones they open from the Menu
   button (1.2.3), or without JavaScript sit in rows of three. */
@media (max-width: 980px) {
	.bsm-header .bsm-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 0; padding-top: 18px; padding-bottom: 8px; }
	.bsm-nav ul { gap: 0 28px; }
	.bsm-nav a { display: block; padding: 8px 0; }
}

@media (max-width: 700px) {
	.bsm-header .bsm-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 0; padding-top: 18px; padding-bottom: 8px; }
	.bsm-logo img { height: 32px; }
	.bsm-nav { width: 100%; }
	.bsm-nav ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 22px; }
	.bsm-nav a { display: block; padding: 11px 0; font-size: 16px; white-space: normal; }
	.bsm-brands, .bsm-contact { grid-template-columns: minmax(0, 1fr); }
	.bsm-brand { padding: 24px 20px; }
	.bsm-brand__frame { height: min(100vw / 2.2, 190px); margin: -24px -20px 18px; }
	.bsm-band__img { height: min(100vw / 3, 240px); }
	/* Page photos on phones (1.4.0): the photo full width above the title,
	   fading into the midnight band. */
	.bsm-pagehead--photo { padding-top: 0; }
	.bsm-pagehead--photo .bsm-inner { display: flex; flex-direction: column-reverse; align-items: stretch; }
	.bsm-pagehead__card { position: relative; width: auto; height: min(100vw / 2.2, 220px); margin: 0 calc(-1 * var(--gutter)) 20px; }
	.bsm-pagehead__card::after { background: linear-gradient(180deg, rgba(23, 31, 72, 0) 50%, var(--midnight) 100%); }
	.bsm-brand__name { font-size: clamp(19px, 6vw, 28px); }
	.bsm-standards { grid-template-columns: 1fr; }
	.bsm-standards li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
	.bsm-footer__top { grid-template-columns: 1fr; }
	/* Scale the slip text and the card's corner marks with the screen, so the
	   bottom-right asterisk never sits on "Sources." */
	.bsm-reveal__slip p { font-size: clamp(15px, 5vw, 22px); }
	.bsm-reveal__index { width: clamp(20px, 7vw, 34px); height: clamp(20px, 7vw, 34px); }
	.bsm-reveal__index--tl { left: 12px; top: 12px; }
	.bsm-reveal__index--br { right: 12px; bottom: 12px; }
}

/* Phones with JavaScript: the logo and a Menu button on one line; the links
   open below them as a list. Without JavaScript the rules above apply and the
   links stay visible in two rows of three. */
@media (max-width: 700px) {
	.bsm-js .bsm-header .bsm-inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
	.bsm-js .bsm-menu-toggle { display: inline-flex; }
	.bsm-js .bsm-nav { display: none; width: 100%; }
	.bsm-js .bsm-header.is-open .bsm-nav { display: block; padding: 6px 0 4px; }
	.bsm-js .bsm-nav ul { display: block; }
	.bsm-js .bsm-nav li + li { border-top: 1px solid var(--rule); }
	.bsm-js .bsm-nav a { display: block; padding: 14px 0; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
