/*
Theme Name: Bioteck Pericardium Membrane
Theme URI: https://bioteck.org
Author: Bioteck.org
Description: One-page Bioteck theme presenting the Pericardium Membrane placement sequence. Reuses the Bioteck.org design system (logo, Open Sans / Montserrat type, light-blue palette, header and footer).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: bioteck-pericardium
*/

/* ==========================================================================
   1. Design tokens (identical to the Bioteck.org system)
   ========================================================================== */

@font-face {
	font-family: "Open Sans";
	src: url("assets/fonts/open-sans-var.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("assets/fonts/montserrat-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--c-black: #000;
	--c-white: #fff;
	--c-text: #000;
	--c-text-classic: #333;
	--c-text-muted: #646464;
	--c-text-soft: #282828;
	--c-blue: #7eb4dd;
	--c-blue-pale: #a3cae7;
	--c-teal: #3f8fb6;
	--c-cat: #005795;
	--c-topbar: #404148;
	--c-menubar-dark: #333;
	--c-grey-100: #f4f4f4;
	--c-grey-150: #f2f2f2;
	--c-grey-200: #eee;
	--c-border: #dadada;

	--f-sans: "Open Sans", sans-serif;
	--f-product: "Montserrat", sans-serif;

	--gutter: 15px;
	--container: 100%;

	--space-1: 8px;
	--space-3: 16px;
	--space-5: 48px;

	--header-dark-h: 58px;
}

@media (min-width: 576px) { :root { --container: 540px; } }
@media (min-width: 768px) { :root { --container: 720px; } }
@media (min-width: 992px) { :root { --container: 960px; } }
@media (min-width: 1200px) { :root { --container: 1140px; } }

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--f-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--c-text);
	background: var(--c-white);
}

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

a { color: var(--c-link, #007bff); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 8px; font-weight: 500; line-height: 1.2; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	left: 8px;
	top: 8px;
	z-index: 100;
	padding: 8px 14px;
	background: var(--c-white);
	color: var(--c-text);
}
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   3. Header (dark menu bar — the "product" variant)
   ========================================================================== */

.site-header { position: relative; z-index: 30; }

.menubar { background: var(--c-menubar-dark); }

.menubar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-dark-h);
	padding-block: 5px;
}

.site-logo { display: inline-flex; flex: 0 0 auto; }
.site-logo img { width: 220px; height: auto; }

.primary-nav { display: none; }

.primary-nav .menu {
	margin: 0; padding: 0; list-style: none;
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.primary-nav a {
	display: block;
	padding: 0 14px;
	font-size: 15px;
	font-weight: 400;
	color: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.primary-nav a:hover,
.primary-nav a:focus {
	color: var(--c-blue);
	text-decoration: none;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--c-blue);
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (min-width: 992px) {
	.primary-nav { display: block; }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */

.pm-hero {
	position: relative;
	background: #0b0d0f;
	color: var(--c-white);
}

.pm-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.pm-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
}

.pm-hero__inner {
	position: relative;
	z-index: 1;
	padding-block: 120px 90px;
	text-align: center;
}

.pm-hero__kicker {
	margin: 0 0 14px;
	font-family: var(--f-product);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--c-blue);
}

.pm-hero h1 {
	margin: 0 auto 18px;
	max-width: 720px;
	font-weight: 300;
	font-size: 44px;
	line-height: 1.1;
}

.pm-hero__lead {
	margin: 0 auto;
	max-width: 640px;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
}

/* ==========================================================================
   5. Intro band
   ========================================================================== */

.pm-intro {
	padding-block: var(--space-5);
	text-align: center;
}

.pm-intro h2 {
	margin: 0 0 14px;
	font-size: 30px;
	font-weight: 300;
	line-height: 1.2;
	color: var(--c-black);
}

.pm-intro h2 strong { color: var(--c-blue); font-weight: 300; }

.pm-intro p {
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--c-text-classic);
}

/* ==========================================================================
   6. Step sequence
   ========================================================================== */

.pm-steps {
	padding-block: var(--space-5);
	background: var(--c-grey-150);
}

.pm-step {
	display: grid;
	gap: 24px;
	align-items: center;
	margin-bottom: 40px;
}

.pm-step:last-child { margin-bottom: 0; }

.pm-step__media {
	position: relative;
	background: var(--c-white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.pm-step__media img {
	width: 100%;
	height: auto;
}

.pm-step__body h3 {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--c-cat);
}

.pm-step__body p {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--c-text-classic);
}

@media (min-width: 768px) {
	.pm-step {
		grid-template-columns: 1fr 1fr;
		gap: 44px;
	}

	/* Alternate image/text sides for rhythm. */
	.pm-step:nth-child(even) .pm-step__media { order: 2; }
	.pm-step:nth-child(even) .pm-step__body { order: 1; }
}

/* ==========================================================================
   7. Footer (identical to the Bioteck.org system)
   ========================================================================== */

.footer-company {
	padding-block: var(--space-5);
	background: var(--c-grey-150);
	font-size: 14px;
	line-height: 21px;
	color: var(--c-text-muted);
	text-align: center;
}

.footer-company__inner { max-width: 790px; }

.footer-company__logo { display: inline-block; margin-block: var(--space-1); }

.footer-company__logo img { width: 200px; height: auto; margin-inline: auto; }

.footer-company__tagline { margin: 6px 0 0; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--c-text-muted); }

.footer-legal {
	padding-block: var(--space-3);
	background: var(--c-topbar);
	font-size: 12px;
	line-height: 18px;
	color: var(--c-white);
	text-align: center;
}

.footer-legal p { margin: 0; }

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