/*
Theme Name: Flow PM
Theme URI: https://www.flowpm.com
Author: Flow Project Management FZE
Description: Theme for Flow Project Management FZE. Design management, development management and project direction.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: flowpm
*/

:root {
	--ink: #18191B;
	--ink-2: #3C3D40;
	--ink-3: #808184;
	--grey: #CCCBCB;
	--grey-2: #E4E3E3;
	--panel: #EEEDEB;
	--paper: #F6F6F5;
	--white: #FFFFFF;
	--muted: #55565A;
	--red: #E42320;
	--red-text: #C11B18;
	--display: "Archivo", "Arial Narrow", sans-serif;
	--body: "Source Sans 3", "Segoe UI", sans-serif;
	--mono: "Spline Sans Mono", ui-monospace, monospace;
	--wrap: 1240px;
	--gutter: 32px;
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.55;
}

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

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--red-text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--display);
	font-stretch: 82%;
	font-weight: 700;
	line-height: 1.08;
	margin: 0 0 0.5em;
	letter-spacing: -0.005em;
}
h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-stretch: 85%; }
h4 { font-size: 20px; font-stretch: 90%; }
p { margin: 0 0 1em; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 104px; padding-bottom: 104px; }
.section + .section { border-top: 1px solid var(--grey); }
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: var(--paper); }
.dark a:hover { color: var(--grey); }
.panel { background: var(--panel); }

.eyebrow {
	margin: 0 0 12px;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--red-text);
}
.dark .eyebrow { color: var(--grey); }
.label {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
}
.dark .label { color: var(--grey); }
.lead { font-size: 21px; line-height: 1.5; max-width: 680px; }
.dark .lead { color: var(--grey-2); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 28px;
	font-weight: 600; text-decoration: none; border: 1px solid transparent;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-text); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.dark .btn-line { border-color: var(--ink-3); color: var(--paper); }
.dark .btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Gridline bubbles */
.bubble {
	display: inline-flex; flex: none; width: 34px; height: 34px;
	border: 2px solid var(--red); border-radius: 50%;
	align-items: center; justify-content: center;
	font-family: var(--mono); font-size: 13px; color: var(--red-text);
}
.dark .bubble { color: var(--paper); }
.gridline { display: flex; align-items: center; gap: 8px; }
.gridline .rule { flex: 1; border-top: 1px dashed var(--ink-2); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--grey); position: relative; z-index: 10; }
.site-header .wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand img { height: 60px; width: auto; }
.nav-toggle {
	display: none; min-height: 44px; padding: 0 16px; background: none;
	border: 1px solid var(--ink); font: 600 16px var(--body); color: var(--ink); cursor: pointer;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.nav-list a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0; }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.nav-list .nav-cta { background: var(--ink); color: var(--paper); padding: 12px 20px; }
.nav-list .nav-cta:hover { background: var(--red); color: var(--white); }

@media (max-width: 820px) {
	.nav-toggle { display: inline-flex; align-items: center; }
	.site-nav { flex-basis: 100%; display: none; }
	.site-nav.is-open { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--grey); }
	.nav-list li { border-bottom: 1px solid var(--grey); }
	.nav-list a { display: block; padding: 14px 0; }
	.nav-list .nav-cta { margin: 12px 0; text-align: center; }
	.brand img { height: 48px; }
}

/* Hero */
.hero { padding-top: 40px; padding-bottom: 96px; }
.hero .gridline { margin-bottom: 72px; }
.hero h1 { max-width: 980px; }
.hero .lead { margin-top: 32px; }
.hero .btn-row { margin-top: 44px; }
.stats { display: flex; flex-wrap: wrap; margin-top: 88px; border-top: 1px solid var(--ink-2); }
.stat { flex: 1 1 260px; padding: 28px 32px 0 0; }
.stat-figure { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: 56px; line-height: 1; }
.stat .label { display: block; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Section headings */
.section-head { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }
.section-head > div { flex: 1 1 520px; }
.section-head > p { flex: 1 1 360px; max-width: 440px; margin: 0; color: var(--muted); }
.section-head h2 { margin: 0; }

/* Services */
.services { display: flex; flex-wrap: wrap; border-top: 2px solid var(--ink); }
.service { flex: 1 1 340px; padding: 36px 36px 40px 0; border-bottom: 1px solid var(--grey); }
.service:last-child { padding-right: 0; }
.service h3 { margin: 24px 0 12px; }
.service .label { margin: 20px 0 0; }
.service ul { margin: 0 0 0 18px; padding: 0; }
.service li { margin-bottom: 6px; }
.also { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; padding: 32px; background: var(--panel); }
.also > div:first-child { flex: 1 1 320px; }
.also > div:last-child { flex: 2 1 480px; }
.also h3 { font-size: 22px; margin-bottom: 8px; }

/* Work cards */
.cards { display: flex; flex-wrap: wrap; gap: 32px; }
.card { flex: 1 1 340px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey); }
.card-media { height: 220px; overflow: hidden; background: var(--grey-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-figure { height: 220px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); color: var(--paper); }
.card-figure .stat-figure { font-size: 64px; }
.card-figure .label { color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 10px; }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; }
.card-body ul { margin: 0; padding-left: 18px; }

/* Quote and essay */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > :first-child { flex: 1 1 520px; }
.split > :last-child { flex: 1 1 360px; }
blockquote.pull { margin: 0; padding: 32px 0 0 32px; border-left: 3px solid var(--red); }
blockquote.pull p { font-family: var(--display); font-stretch: 90%; font-weight: 500; font-size: 24px; line-height: 1.35; margin-bottom: 16px; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about-portrait { flex: 0 1 340px; min-width: 260px; }
.about-portrait img { width: 100%; height: auto; filter: grayscale(1); }
.about-text { flex: 1 1 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; }

/* Contact band */
.contact-band { position: relative; overflow: hidden; }
.contact-band .bg { position: absolute; inset: 0; opacity: 0.22; }
.contact-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-band .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.contact-band .wrap > div:first-child { flex: 1 1 560px; }
.contact-band .wrap > div:last-child { flex: 0 1 380px; display: flex; flex-direction: column; gap: 12px; }

/* Footer: title block */
.site-footer { background: var(--ink); color: var(--grey-2); padding: 0 var(--gutter) 40px; }
.dark + .site-footer { padding-top: 0; }
.site-footer.standalone { padding-top: 48px; }
.title-block { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; border: 1px solid var(--ink-2); font-family: var(--mono); font-size: 13px; }
.tb-cell { flex: 1 1 180px; padding: 16px 20px; border-right: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2); margin-bottom: -1px; }
.tb-cell.wide { flex: 2 1 280px; }
.tb-cell:last-child { border-right: 0; }
.tb-key { color: var(--grey); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.tb-val { margin-top: 4px; color: var(--paper); }
.tb-val a { color: var(--paper); }

/* Page header for inner pages */
.page-hero { padding-top: 64px; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); max-width: 900px; margin-bottom: 0; }
.page-hero .lead { margin-top: 24px; }

/* Prose (page and post content) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding-left: 24px; border-left: 3px solid var(--red); }
.prose figure { margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--grey); }
.prose th { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--grey); margin: 2em 0; }
.prose .wp-block-heading[id] { scroll-margin-top: 24px; }

/* Our Work page: case studies from page content */
.work-content h3 { font-size: clamp(26px, 3vw, 36px); margin-top: 2em; padding-top: 1.2em; border-top: 2px solid var(--ink); }
.work-content h3:first-of-type { margin-top: 0.5em; }
.work-content .wp-block-image { margin: 0 0 24px; }
.work-content .wp-block-image img { width: 100%; height: auto; border: 1px solid var(--grey); }
.work-content { max-width: 900px; }

/* Insights list */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.post-item { padding: 32px 0; border-bottom: 1px solid var(--grey); display: flex; flex-wrap: wrap; gap: 8px 48px; }
.post-item .label { flex: 0 0 160px; padding-top: 6px; }
.post-item > div { flex: 1 1 480px; }
.post-item h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.post-item h2 a { text-decoration: none; }
.post-item p { margin: 0; color: var(--muted); }
.pagination { margin-top: 40px; display: flex; gap: 16px; }

/* Contact page */
.contact-grid { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-grid > div:first-child { flex: 1 1 520px; }
.contact-grid > aside { flex: 0 1 380px; }
.details { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.details li { padding: 16px 0; border-bottom: 1px solid var(--grey); }
.details .tb-key { color: var(--muted); }

/* Contact Form 7 */
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 4px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; padding: 12px 14px; font: 18px var(--body); color: var(--ink);
	background: var(--white); border: 1px solid var(--ink-3); border-radius: 0;
}
.wpcf7 textarea { min-height: 180px; }
.wpcf7 input[type="submit"] {
	min-height: 52px; padding: 0 28px; background: var(--red); color: var(--white);
	border: 0; font: 600 18px var(--body); cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--red-text); }

/* 404 and search */
.search-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.search-form input[type="search"] { flex: 1 1 260px; min-height: 52px; padding: 0 14px; font: 18px var(--body); border: 1px solid var(--ink-3); }
.search-form button { min-height: 52px; padding: 0 24px; background: var(--ink); color: var(--paper); border: 0; font: 600 18px var(--body); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
	.js .reveal.is-in { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
	:root { --gutter: 20px; }
	body { font-size: 17px; }
	.section { padding-top: 72px; padding-bottom: 72px; }
	.hero .gridline { margin-bottom: 48px; }
	.stats { margin-top: 56px; }
	.stat-figure { font-size: 44px; }
	.service { padding-right: 0; }
	.tb-cell { border-right: 0; }
}
