/*
Theme Name: Magenta v2
Theme URI: https://thetwentyseven.co.uk/
Author: thetwentyseven
Author URI: https://thetwentyseven.co.uk/
Description: Dark radial-hero redesign for thetwentyseven. Independent successor to the Magenta theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: magenta-v2
*/

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Cabin:wght@400;500;600;700&display=swap');

:root {
	--magenta: #E41A4B;
	--ink: #0a0a0a;
}

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

body {
	margin: 0;
	background: var(--ink);
	color: #e8e8e8;
	font-family: 'Cabin', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

a {
	color: var(--magenta);
}

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

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	color: #000;
	clip: auto !important;
	display: block;
	height: auto;
	left: 5px;
	top: 5px;
	padding: 12px 16px;
	width: auto;
	z-index: 100000;
	text-decoration: none;
}

/*--------------------------------------------------------------
# Site header / nav (hidden on the radial front page, used elsewhere)
--------------------------------------------------------------*/
.site-header {
	background: var(--ink);
	color: #fff;
	padding: 18px 5%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1320px;
	margin: 0 auto;
}

.site-title {
	margin: 0;
	font-size: 16px;
}

.site-title a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.site-branding .custom-logo {
	max-height: 48px;
	width: auto;
}

.main-navigation ul {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	letter-spacing: 0.05em;
}

.main-navigation a:hover {
	color: var(--magenta);
}

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	padding: 8px 12px;
	cursor: pointer;
	font-family: inherit;
}

.is-radial-front .site-header {
	display: none;
}

@media (max-width: 720px) {
	.menu-toggle {
		display: inline-block;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
		gap: 14px;
		position: absolute;
		left: 0;
		right: 0;
		background: var(--ink);
		padding: 16px 5% 24px;
		z-index: 10;
	}

	.main-navigation.toggled ul {
		display: flex;
	}
}

/*--------------------------------------------------------------
# Radial hero
--------------------------------------------------------------*/
.radial-hero {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	color: #fff;
	background-color: var(--ink);
	background-image: var(--radial-hero-bg, none), radial-gradient(circle at 50% 40%, #1c1c1c 0%, #0a0a0a 68%);
	background-size: cover, cover;
	background-position: center, center;
	display: flex;
	flex-direction: column;
}

.radial-hero__scrim {
	position: absolute;
	inset: 0;
	background: rgba(8, 10, 12, 0.62);
	pointer-events: none;
}

.radial-hero__topbar,
.radial-hero__bottombar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 5%;
}

.radial-hero__bottombar {
	align-items: flex-end;
	margin-top: auto;
}

.radial-hero__brand {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.radial-hero__tagline {
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	text-align: right;
}

.radial-hero__bottombar p {
	margin: 0;
	max-width: 320px;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
}

.radial-hero__bottombar a {
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid var(--magenta);
	padding-bottom: 5px;
	white-space: nowrap;
}

.radial-hero__center {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.radial-ring-guide {
	position: absolute;
	left: 50%;
	top: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	pointer-events: none;
}

.radial-hero__mark {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Anton', sans-serif;
	color: var(--magenta);
	line-height: 0.8;
	letter-spacing: -0.03em;
	text-align: center;
}

.radial-hero__mark .custom-logo-link {
	display: block;
	line-height: 0;
}

.radial-hero__mark img {
	width: 240px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.radial-ring {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
}

.radial-ring .ring-item {
	color: #fff;
}

.radial-ring a.ring-item {
	text-decoration: none;
	cursor: pointer;
}

.radial-ring a.ring-item:hover span {
	color: var(--magenta);
}

.radial-ring .ring-label span {
	color: var(--magenta);
}

@media (max-width: 640px) {
	.radial-hero__topbar,
	.radial-hero__bottombar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.radial-hero__tagline {
		text-align: left;
	}
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.radial-contact {
	position: relative;
	background: var(--ink);
	color: #fff;
	padding: 90px 5% 70px;
}

.radial-contact__inner {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 480px;
	gap: 70px;
	align-items: start;
}

.radial-contact__intro h2 {
	margin: 0 0 24px;
	font-family: 'Anton', sans-serif;
	font-size: clamp(38px, 6vw, 90px);
	line-height: 0.95;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.radial-contact__intro h2 .accent {
	color: var(--magenta);
}

.radial-contact__intro p {
	margin: 0 0 30px;
	max-width: 460px;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
}

.radial-contact__email {
	display: inline-block;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	border-bottom: 3px solid var(--magenta);
	padding-bottom: 5px;
}

@media (max-width: 900px) {
	.radial-contact__inner {
		grid-template-columns: 1fr;
	}
}

/* Contact Form 7 — dark restyle (CSS only, default CF7 markup/classes) */
.radial-contact__form .wpcf7-form {
	display: grid;
	gap: 24px;
	margin: 0;
}

.radial-contact__form label {
	display: block;
	margin-bottom: 9px;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.radial-contact__form input[type="text"],
.radial-contact__form input[type="email"],
.radial-contact__form input[type="tel"],
.radial-contact__form textarea {
	width: 100%;
	font-family: 'Cabin', sans-serif;
	font-size: 16px;
	color: #fff;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	padding: 9px 0;
	outline: none;
}

.radial-contact__form textarea {
	resize: vertical;
}

.radial-contact__form input:focus,
.radial-contact__form textarea:focus {
	border-bottom-color: var(--magenta);
}

.radial-contact__form .wpcf7-submit {
	justify-self: start;
	font-family: 'Cabin', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #fff;
	background: var(--magenta);
	border: 0;
	padding: 16px 30px;
	cursor: pointer;
	transition: background-color 0.15s linear, color 0.15s linear;
}

.radial-contact__form .wpcf7-submit:hover {
	background: #fff;
	color: var(--ink);
}

.radial-contact__form .wpcf7-response-output {
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
	border-radius: 0;
}

.radial-contact__form .wpcf7-not-valid-tip {
	color: #ff8fa8;
	font-size: 13px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.6);
	padding: 24px 5%;
	font-size: 13px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	max-width: 1320px;
	margin: 0 auto;
}

.back-to-top {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.back-to-top:hover {
	color: var(--magenta);
}

/*--------------------------------------------------------------
# Generic page/single fallback templates
--------------------------------------------------------------*/
.site-main {
	max-width: 900px;
	margin: 0 auto;
	padding: 70px 5% 100px;
}

.site-main h1,
.site-main h2 {
	font-family: 'Anton', sans-serif;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.site-main .entry-thumbnail {
	margin: 0 0 30px;
}

.site-main .entry-thumbnail img {
	width: 100%;
	border-radius: 4px;
}

.single .entry-header {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.single .entry-thumbnail {
	flex: 0 0 auto;
	width: 3.125rem;
	height: 3.125rem;
	margin: 0;
}

.single .entry-thumbnail img {
	width: 3.125rem;
	height: 3.125rem;
	object-fit: cover;
	border-radius: 4px;
}

.single .entry-title {
	margin: 0;
}

.back-link {
	display: inline-block;
	margin-top: 40px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 14px;
	letter-spacing: 0.05em;
}

.back-link:hover {
	color: var(--magenta);
}

.error-404 {
	text-align: center;
	padding: 140px 5%;
}

.error-404 h1 {
	font-size: clamp(48px, 10vw, 120px);
	color: var(--magenta);
	margin: 0;
}
