/*
Theme Name: FRWD
Author: FRWD
Description: Minimal dark block theme for FRWD/, an e-commerce growth agency. Large type, one accent colour, light motion. Edit everything in Appearance > Editor.
Version: 1.1.0
Requires at least: 6.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frwd
*/

:root {
	--frwd-gutter: max(clamp(20px, 5vw, 72px), calc((100vw - 1280px) / 2));
	--frwd-line: var(--wp--preset--color--line);
	--frwd-muted: var(--wp--preset--color--muted);
	--frwd-accent: var(--wp--preset--color--accent);
	--frwd-display: var(--wp--preset--font-family--display);
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Header */
body .frwd-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding: 24px var(--frwd-gutter);
}
body .frwd-logo {
	margin: 0;
	font-family: var(--frwd-display);
	font-weight: 600;
	font-size: 24px;
	letter-spacing: -0.03em;
}
body .frwd-logo a,
body .frwd-nav a {
	text-decoration: none;
}
body .frwd-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 32px;
}
body .frwd-nav p {
	margin: 0;
	font-size: 15px;
}
body .frwd-nav a {
	display: inline-block;
	padding: 12px 0;
	transition: opacity 0.25s;
}
body .frwd-nav a:hover {
	opacity: 0.6;
}
body .frwd-nav p:last-child a {
	color: var(--frwd-accent);
}

/* Hero */
body .frwd-hero {
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 4vw, 56px);
	padding: clamp(64px, 9vw, 140px) var(--frwd-gutter) clamp(48px, 6vw, 88px);
}
body .frwd-label {
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--frwd-muted);
}
body .frwd-mask {
	overflow: hidden;
	padding-bottom: 16px;
	margin-bottom: -16px;
}
body .frwd-title {
	margin: 0;
	font-size: clamp(52px, 11.5vw, 176px);
	line-height: 0.92;
	letter-spacing: -0.05em;
	font-weight: 500;
}
body .frwd-hero-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
}
body .frwd-lede {
	margin: 0;
	max-width: 440px;
	font-size: 18px;
	color: var(--frwd-muted);
}

/* Buttons */
body .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}
body .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	margin-left: 12px;
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body .wp-block-button__link:hover::after {
	transform: translateX(8px);
}

/* Scrolling strip */
body .frwd-marquee {
	overflow: hidden;
	padding: 22px 0;
	border-top: 1px solid var(--frwd-line);
	border-bottom: 1px solid var(--frwd-line);
}
body .frwd-track {
	display: flex;
	width: max-content;
	white-space: nowrap;
}
body .frwd-track p {
	margin: 0;
	padding-right: 40px;
	font-family: var(--frwd-display);
	font-weight: 500;
	font-size: 22px;
	letter-spacing: -0.01em;
}
body .frwd-track p::after {
	content: "/";
	padding-left: 40px;
	color: var(--frwd-accent);
}

/* Statement */
body .frwd-statement {
	padding: clamp(88px, 12vw, 200px) var(--frwd-gutter);
}
body .frwd-big {
	margin: 0;
	max-width: 1040px;
	font-family: var(--frwd-display);
	font-weight: 500;
	font-size: clamp(30px, 4.6vw, 68px);
	line-height: 1.05;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

/* Sections */
body .frwd-section {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 0 var(--frwd-gutter) clamp(88px, 10vw, 160px);
}
body .frwd-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--frwd-muted);
}

/* Service rows */
body .frwd-rows {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--frwd-line);
}
body .frwd-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 32px;
	padding: 28px 0;
	border-top: 1px solid var(--frwd-line);
}
body .frwd-row h3 {
	margin: 0;
	font-size: clamp(34px, 5.4vw, 80px);
	line-height: 1;
	letter-spacing: -0.04em;
}
body .frwd-row h3::before {
	content: "/";
	display: inline-block;
	width: 0;
	overflow: hidden;
	vertical-align: bottom;
	opacity: 0;
	color: var(--frwd-accent);
	transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}
body .frwd-row:hover h3::before {
	width: 0.5em;
	opacity: 1;
}
body .frwd-row p {
	margin: 0;
	font-size: 17px;
	color: var(--frwd-muted);
}

/* Grids: process and work */
body .frwd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 40px;
}
body .frwd-step {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--contrast);
}
body .frwd-step h3 {
	margin: 0;
	font-size: 32px;
	letter-spacing: -0.03em;
}
body .frwd-step p {
	margin: 0;
	color: var(--frwd-muted);
}
body .frwd-step .frwd-num {
	font-size: 14px;
	color: var(--frwd-accent);
}
body .frwd-grid.frwd-work {
	gap: 24px;
}
body .frwd-case {
	display: flex;
	align-items: flex-end;
	min-height: 320px;
	padding: 24px;
	border: 1px dashed #5c5a54;
}
body .frwd-case p {
	margin: 0;
	color: var(--frwd-muted);
}

/* Closing call to action */
body .frwd-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(32px, 4vw, 56px);
	padding: clamp(88px, 11vw, 180px) var(--frwd-gutter);
	border-top: 1px solid var(--frwd-line);
}
body .frwd-cta-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
}
body .frwd-cta-foot p {
	margin: 0;
	color: var(--frwd-muted);
}

/* Footer */
body .frwd-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	padding: 28px var(--frwd-gutter);
	border-top: 1px solid var(--frwd-line);
}
body .frwd-footer p {
	margin: 0;
	font-size: 14px;
	color: var(--frwd-muted);
}

/* Inner pages and posts */
body .frwd-page {
	padding: clamp(48px, 8vw, 112px) var(--frwd-gutter);
}
body .frwd-page .wp-block-post-title {
	margin: 0 0 40px;
	font-size: clamp(40px, 6vw, 88px);
	line-height: 0.98;
	letter-spacing: -0.04em;
}
body .frwd-page .wp-block-post-title a {
	text-decoration: none;
}
body .frwd-page .wp-block-post-content > * + * {
	margin-block-start: 1.25em;
}
body .frwd-page .wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 56px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body .frwd-page .wp-block-post-excerpt {
	max-width: 760px;
	color: var(--frwd-muted);
}
body .frwd-page .wp-block-post-content {
	max-width: 760px;
}

/* Audit request form */
body .frwd-form-wrap {
	width: 100%;
	max-width: 960px;
}
body .frwd-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 32px 40px;
	margin: 0;
}
body .frwd-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
body .frwd-field-wide {
	grid-column: 1 / -1;
}
body .frwd-form label {
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--frwd-muted);
}
body .frwd-form input,
body .frwd-form select,
body .frwd-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid #77746c;
	border-radius: 0;
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 18px;
}
body .frwd-form textarea {
	min-height: 120px;
	resize: vertical;
}
body .frwd-form select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 28px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23F3F1EA' stroke-width='1.5'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 4px center;
}
body .frwd-form option {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
body .frwd-form ::placeholder {
	color: #77746c;
	opacity: 1;
}
body .frwd-form input:focus,
body .frwd-form select:focus,
body .frwd-form textarea:focus {
	border-bottom-color: var(--frwd-accent);
	outline: none;
}
body .frwd-form input:focus-visible,
body .frwd-form select:focus-visible,
body .frwd-form textarea:focus-visible,
body .frwd-submit:focus-visible {
	outline: 2px solid var(--frwd-accent);
	outline-offset: 4px;
}
body .frwd-form [aria-invalid="true"] {
	border-bottom-color: var(--frwd-accent);
}
body .frwd-form .frwd-error,
body .frwd-form-alert {
	margin: 0;
	font-size: 14px;
	color: var(--frwd-accent);
}
body .frwd-form-alert {
	margin-bottom: 32px;
	font-size: 17px;
}
body .frwd-form .frwd-form-note {
	margin: 0;
	font-size: 14px;
	color: var(--frwd-muted);
}
body .frwd-form-done {
	margin: 0;
	font-family: var(--frwd-display);
	font-size: clamp(24px, 3vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.03em;
}
body .frwd-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
body .frwd-submit {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}
body .frwd-cta .frwd-lede {
	max-width: 520px;
}
