/*
Theme Name: wp-apps
Theme URI: https://wp-apps.local/
Author: wp-apps
Author URI: https://wp-apps.local/
Description: Custom WordPress theme for the wp-apps project, built with ACF blocks.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: wp-apps
*/

/* ==========================================================================
   Fonts — Inter & Poppins (global)
   ========================================================================== */

@font-face {
	font-family: 'Inter';
	src: url('assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Colors
   ========================================================================== */

:root {
	--color-brand-blue: #0F7AC0;
	--color-vegetation-green: #3CA31D;
	--color-safety-orange: #E97132;
	--color-sky-blue: #1CA2E1;
	--color-industrial-grey: #9B9A9A;
	--color-iron-earth: #B84F20;
	--color-gold: #D6912D;
	--color-oxidised-copper: #2FA89E;
	--color-anthracite: #1F2931;
	--color-concrete: #D8D8D8;
	--color-mist: #F3F3F3;
	--color-white: #FFFFFF;
	--color-black: #000000;

	--font-family-base: 'Inter', sans-serif;
	--font-family-heading: 'Poppins', sans-serif;

	--header-bg: #FFFFFF;
	--header-border: rgba(0, 0, 0, 0.05);
	--header-menu-color: var(--color-anthracite);
	--header-menu-hover-color: var(--color-brand-blue);
	--header-menu-underline-color: var(--header-menu-hover-color);
	--header-brand-color: var(--color-brand-blue);

	--footer-bg: var(--color-anthracite);
	--footer-heading-color: var(--color-brand-blue);
	--footer-link-color: rgba(255, 255, 255, 0.8);
	--footer-link-hover-color: var(--color-white);
	--footer-accent-color: var(--color-brand-blue);
	--footer-credit-color: var(--color-brand-blue);
	--footer-copyright-color: var(--footer-link-color);
}

/* ==========================================================================
   Global Reset & Base Layouts
   ========================================================================== */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-family-base);
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--color-mist);
	color: var(--color-anthracite);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--color-brand-blue);
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

a:hover {
	color: var(--color-sky-blue);
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

main {
	min-height: calc(100vh - 160px - 140px);
	/* header + footer fallback */
	display: block;
}

/* ==========================================================================
   Typography Defaults
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-heading);
	color: var(--color-anthracite);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 16px;
}

p {
	margin-bottom: 20px;
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.site-main {
	padding: 64px 0 80px;
}

.page-content {
	width: 100%;
}

.page-title {
	font-family: var(--font-family-heading);
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-anthracite);
	margin: 0 0 32px;
}

.entry-content {
	font-family: var(--font-family-base);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-anthracite);
}

.entry-content>*:last-child {
	margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: var(--font-family-heading);
	font-weight: 700;
	line-height: 1.25;
	color: var(--color-anthracite);
	margin: 32px 0 16px;
}

.entry-content h1 {
	font-size: clamp(28px, 3.5vw, 40px);
}

.entry-content h2 {
	font-size: clamp(24px, 3vw, 32px);
}

.entry-content h3 {
	font-size: clamp(20px, 2.4vw, 24px);
}

.entry-content h4 {
	font-size: 20px;
}

.entry-content h5 {
	font-size: 18px;
}

.entry-content h6 {
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.entry-content p {
	margin-bottom: 20px;
}

.entry-content a {
	color: var(--color-brand-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	word-wrap: anywhere;
}

.entry-content a:hover,
.entry-content a:focus {
	color: var(--color-sky-blue);
}

.entry-content strong,
.entry-content b {
	font-weight: 700;
}

.entry-content em,
.entry-content i {
	font-style: italic;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 20px 24px;
	padding: 0;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	margin-bottom: 8px;
}

.entry-content li ul,
.entry-content li ol {
	margin: 8px 0 8px 20px;
}

.entry-content blockquote {
	margin: 0 0 24px;
	padding: 16px 24px;
	border-left: 4px solid var(--color-brand-blue);
	background-color: var(--color-mist);
	font-style: italic;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--color-concrete);
	margin: 32px 0;
}

.entry-content img,
.entry-content figure,
.entry-content video,
.entry-content iframe {
	max-width: 100%;
	height: auto;
}

.entry-content figure {
	margin: 0 0 24px;
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--color-industrial-grey);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
}

.entry-content th,
.entry-content td {
	padding: 12px 16px;
	border: 1px solid var(--color-concrete);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	font-weight: 700;
	background-color: var(--color-mist);
}

.entry-content code,
.entry-content kbd,
.entry-content samp {
	font-family: monospace;
	font-size: 0.95em;
	background-color: var(--color-mist);
	padding: 2px 6px;
	border-radius: 4px;
}

.entry-content pre {
	margin: 0 0 24px;
	padding: 16px 20px;
	overflow-x: auto;
	background-color: var(--color-mist);
	border-radius: 8px;
}

.entry-content pre code {
	padding: 0;
	background: none;
}

/* ==========================================================================
   Buttons & Interactivity
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 30px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	text-decoration: none;
}

.btn-blue {
	background-color: var(--color-brand-blue);
	color: var(--color-white);
}

.btn-blue:hover {
	background-color: var(--color-sky-blue);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(15, 122, 192, 0.3);
}

.btn-blue:active {
	transform: translateY(0);
	box-shadow: 0 4px 6px rgba(15, 122, 192, 0.2);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.site-header {
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.admin-bar {
	.site-header {
		top: 32px;
	}
}

.site-header__bar {
	position: relative;
	background-color: var(--header-bg);
	border-bottom: 1px solid var(--header-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 101px;
}

.site-header__brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
	color: var(--header-brand-color);
	text-decoration: none;
}

.site-header__brand-logo {
	display: block;
	width: 70px;
	height: auto;
}

.site-header__brand-text {
	font-family: var(--font-family-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.site-header__nav {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.site-header__menu {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__menu .menu-item {
	margin: 0;
	padding: 0;
}

.site-header__menu a {
	display: inline-block;
	font-family: var(--font-family-heading);
	font-style: normal;
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	text-transform: uppercase;
	color: var(--header-menu-color);
	text-decoration: none;
	padding: 8px 0;
	position: relative;
	transition: color 0.3s ease;
}

.site-header__menu a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--header-menu-underline-color);
	transition: width 0.3s ease;
}

.site-header__menu a:hover,
.site-header__menu a:focus,
.site-header__menu .current-menu-item>a,
.site-header__menu .current_page_item>a {
	color: var(--header-menu-hover-color);
}

.site-header__menu a:hover::after,
.site-header__menu a:focus::after,
.site-header__menu .current-menu-item>a::after,
.site-header__menu .current_page_item>a::after {
	width: 100%;
}

.site-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin-left: auto;
	border: 0;
	background: transparent;
	color: var(--header-menu-color);
	cursor: pointer;
	transition: color 0.2s ease;
}

.site-header__toggle:hover,
.site-header__toggle:focus {
	color: var(--header-menu-hover-color);
}

.site-header__toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.site-header__toggle-icon--close {
	display: none;
}

.site-header.is-menu-open .site-header__toggle-icon--open {
	display: none;
}

.site-header.is-menu-open .site-header__toggle-icon--close {
	display: inline-flex;
}

body.site-header-menu-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.site-header__inner {
		justify-content: space-between;
	}

	.site-header__toggle {
		display: inline-flex;
		position: relative;
		z-index: 1002;
	}

	.site-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		background-color: var(--header-bg);
		border-bottom: 1px solid var(--header-border);
		padding: 24px 0 32px;
		transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
	}

	.site-header.is-menu-open .site-header__nav {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.site-header__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		width: 100%;
	}

	.site-header__menu a {
		width: 100%;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	margin-top: auto;
}

.site-footer__bar {
	background-color: var(--footer-bg);
	color: var(--footer-link-color);
	padding: 64px 0 48px;
}

.site-footer__main {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 48px;
	min-height: 280px;
}

.site-footer__column--features {
	justify-self: start;
}

.site-footer__column--brand {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
}

.site-footer__column--resources {
	justify-self: end;
	grid-column: 2;
}

.site-footer__heading {
	font-family: var(--font-family-heading);
	font-size: clamp(28px, 3vw, 48px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--footer-heading-color);
	margin-bottom: 24px;
}

.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.site-footer__menu .menu-item {
	margin: 0;
	padding: 0;
}

.site-footer__menu a {
	display: inline-block;
	font-family: var(--font-family-base);
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 400;
	line-height: 1.35;
	color: var(--footer-link-color);
	text-decoration: none;
	text-transform: capitalize;
	transition: color 0.2s ease;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus {
	color: var(--footer-link-hover-color);
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.site-footer__list li {
	font-family: var(--font-family-base);
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 400;
	line-height: 1.35;
	color: var(--footer-link-color);
	text-transform: capitalize;
}

.site-footer__brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	text-decoration: none;
}

.site-footer__brand-logo {
	display: block;
	width: 154px;
	height: auto;
}

.site-footer__brand-text {
	font-family: var(--font-family-heading);
	font-size: 24px;
	font-weight: 700;
	color: var(--footer-accent-color);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.site-footer__credit {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: capitalize;
	color: var(--footer-credit-color);
}

.site-footer__credit a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus {
	opacity: 0.85;
}

.site-footer__apps {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.site-footer__apps-title {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: clamp(28px, 3vw, 48px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--footer-accent-color);
}

.site-footer__store-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.site-footer__store-link {
	display: inline-flex;
	line-height: 0;
	transition: opacity 0.2s ease;
}

.site-footer__store-link:hover,
.site-footer__store-link:focus {
	opacity: 0.85;
}

.site-footer__store-link img {
	display: block;
	height: 49px;
	width: auto;
}

.site-footer__copyright {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
}

.site-footer__copyright-text {
	margin: 0;
	font-family: var(--font-family-base);
	font-size: 14px;
	line-height: 1.5;
	color: var(--footer-copyright-color);
}

/* ==========================================================================
   Default Block: Hero Section
   ========================================================================== */

.hero {
	background-color: var(--color-anthracite);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 100px 0;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 80% 20%, rgba(15, 122, 192, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 10% 80%, rgba(60, 163, 29, 0.08) 0%, transparent 50%);
	z-index: 1;
}

.hero .container {
	position: relative;
	z-index: 2;
}

.hero-wrapper {
	display: flex;
	align-items: center;
	max-width: 720px;
}

.hero-content {
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 48px;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--color-sky-blue);
	margin-bottom: 12px;
}

.hero-content h2 {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--color-white);
	margin-bottom: 24px;
}

.hero-content hr {
	border: 0;
	height: 1px;
	background: linear-gradient(to right, var(--color-sky-blue), transparent);
	margin-bottom: 24px;
}

.hero-content p {
	font-size: 16px;
	color: var(--color-concrete);
	margin-bottom: 32px;
}

.hero-logo img {
	max-width: 180px;
	height: auto;
	margin-bottom: 24px;
	display: block;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
	.site-footer__main {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		min-height: 0;
	}

	.site-footer__column--brand {
		position: static;
		transform: none;
		order: -1;
	}

	.site-footer__column--features,
	.site-footer__column--resources {
		justify-self: center;
		width: 100%;
	}

	.site-footer__column--resources {
		grid-column: auto;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.site-footer__apps {
		flex-direction: column;
	}

	.hero {
		padding: 60px 0;
	}

	.hero-content {
		padding: 32px;
	}

	.hero-content h2 {
		font-size: 32px;
	}
}


@media (max-width: 600px) {
	.admin-bar {
		.site-header {
			top: 0px;
		}
	}
}