/*
Theme Name: BG Info Point
Theme URI: https://bginfopoint.com
Author: Matija Perović
Description: Premium gradski servisni portal — centralna tačka informisanja građana Beograda. Tamni tehnološki hero, svetle servisne sekcije i vesti.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bginfopoint
Tags: news, portfolio, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ======================================================================
   1. Tokens
   ====================================================================== */
:root {
	--navy-950: #0a1020;
	--navy-900: #0e1626;
	--navy-800: #131e34;
	--navy-700: #1b2a47;
	--navy-100: #dbe3f0;
	--orange: #f05a28;
	--orange-dark: #d8481a;
	--orange-soft: #fdeee8;
	--bg: #f5f7fb;
	--surface: #ffffff;
	--text: #1c2433;
	--muted: #5d6a80;
	--line: #e4e9f2;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(16, 26, 46, 0.06), 0 2px 8px rgba(16, 26, 46, 0.06);
	--shadow-md: 0 6px 24px rgba(16, 26, 46, 0.1);
	--shadow-lg: 0 18px 48px rgba(16, 26, 46, 0.18);
	--font: "Manrope", -apple-system, "Segoe UI", sans-serif;
	--container: 1180px;
}

/* ======================================================================
   2. Base
   ====================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--orange);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--orange-dark);
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
	font-weight: 800;
	color: inherit;
	margin: 0 0 0.5em;
	letter-spacing: -0.015em;
}

.container {
	width: min(var(--container), calc(100% - 3rem));
	margin-inline: auto;
}

.container--narrow {
	width: min(760px, calc(100% - 3rem));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--orange);
	color: #fff;
	padding: 0.6rem 1rem;
	z-index: 100;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	vertical-align: -0.25em;
}

/* ======================================================================
   3. Buttons & chips
   ====================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	font-family: inherit;
	line-height: 1.2;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn--primary {
	background: linear-gradient(135deg, var(--orange), var(--orange-dark));
	color: #fff;
	box-shadow: 0 6px 18px rgba(240, 90, 40, 0.35);
}

.btn--primary:hover {
	color: #fff;
	box-shadow: 0 10px 26px rgba(240, 90, 40, 0.45);
}

.btn--outline {
	border-color: var(--line);
	color: var(--text);
	background: var(--surface);
}

.btn--outline:hover {
	border-color: var(--orange);
	color: var(--orange);
}

.btn--ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
	color: #fff;
	border-color: var(--orange);
	background: rgba(240, 90, 40, 0.12);
}

.btn--lg {
	padding: 1rem 2rem;
	font-size: 1.1rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: var(--navy-100);
	font-size: 0.88rem;
	font-weight: 600;
	transition: all 0.2s ease;
}

.chip:hover {
	border-color: var(--orange);
	color: #fff;
	background: rgba(240, 90, 40, 0.15);
}

/* ======================================================================
   4. Header
   ====================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(14, 22, 38, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 8px 30px rgba(8, 13, 26, 0.45);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: #fff;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
}

.site-brand:hover {
	color: #fff;
}

.site-brand__logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex: none;
	box-shadow: 0 2px 12px rgba(240, 90, 40, 0.35);
	transition: transform 0.25s ease;
}

.site-brand:hover .site-brand__logo {
	transform: scale(1.08) rotate(-4deg);
}

.site-brand__text strong {
	color: var(--orange);
	font-weight: 800;
}

.site-brand__text span {
	font-weight: 700;
	color: #fff;
}

.site-nav__list {
	display: flex;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	display: block;
	padding: 0.55rem 0.95rem;
	color: var(--navy-100);
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 999px;
	transition: all 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
}

.nav-toggle__bar {
	width: 24px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ======================================================================
   5. Hero
   ====================================================================== */
.hero {
	position: relative;
	background:
		radial-gradient(1100px 500px at 70% -10%, #1d2c4d 0%, transparent 60%),
		linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
	color: #fff;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero__circuit {
	position: absolute;
	inset: 0;
	background-image: url("assets/img/circuit.svg");
	background-size: 760px auto;
	background-repeat: repeat;
	opacity: 0.35;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 75%);
}

/* Brochure artwork hero background */
.hero__art {
	position: absolute;
	inset: -6% -3%;
	background-size: cover;
	background-position: center 22%;
	background-repeat: no-repeat;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 16, 32, 0.62) 0%, rgba(10, 16, 32, 0.35) 60%, transparent 100%),
		linear-gradient(180deg, rgba(10, 16, 32, 0.55) 0%, rgba(10, 16, 32, 0.25) 35%, rgba(10, 16, 32, 0.65) 78%, var(--navy-950) 100%);
}

.hero__glow {
	position: absolute;
	width: 720px;
	height: 720px;
	left: calc(50% - 360px); /* centered without transform — JS parallax owns transform */
	top: -280px;
	background: radial-gradient(circle, rgba(240, 90, 40, 0.22) 0%, transparent 65%);
}

.hero__skyline {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 220px;
	background-image: url("assets/img/skyline.svg");
	background-repeat: repeat-x;
	background-position: center bottom;
	background-size: auto 100%;
	opacity: 0.5;
}

.hero__inner {
	position: relative;
	padding: clamp(5rem, 12vh, 8.5rem) 0 clamp(9rem, 18vh, 12rem);
	max-width: 820px;
	text-align: center;
	margin-inline: auto;
}

.hero__kicker {
	display: inline-block;
	padding: 0.4rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(240, 90, 40, 0.5);
	background: rgba(240, 90, 40, 0.12);
	color: #ffb39a;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 1.5rem;
}

.hero__title {
	font-size: clamp(2.2rem, 5.2vw, 3.9rem);
	margin-bottom: 1.25rem;
}

.hero__title span {
	display: inline;
	color: var(--orange);
	background: linear-gradient(90deg, #f05a28 0%, #ff9a66 25%, #f05a28 50%, #ff9a66 75%, #f05a28 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: bgip-gradient-slide 7s linear infinite;
}

.hero__lead {
	color: var(--navy-100);
	font-size: clamp(1rem, 1.6vw, 1.18rem);
	max-width: 640px;
	margin: 0 auto 2.25rem;
}

.hero__search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	padding: 0.45rem 0.45rem 0.45rem 1.25rem;
	max-width: 620px;
	margin: 0 auto 1.75rem;
	backdrop-filter: blur(8px);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.hero__search:focus-within {
	border-color: var(--orange);
	background: rgba(255, 255, 255, 0.1);
}

.hero__search .icon {
	color: var(--navy-100);
}

.hero__search input {
	flex: 1;
	background: none;
	border: 0;
	outline: 0;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	min-width: 0;
}

.hero__search input::placeholder {
	color: rgba(219, 227, 240, 0.6);
}

.hero__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
}

.hero__chips-label {
	color: rgba(219, 227, 240, 0.65);
	font-size: 0.88rem;
	font-weight: 600;
}

/* ======================================================================
   6. Stats strip
   ====================================================================== */
.stats {
	position: relative;
	z-index: 2;
	margin-top: -3.5rem;
}

.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.stat {
	background: var(--surface);
	padding: 1.75rem 1.5rem;
	text-align: center;
}

.stat__num {
	display: block;
	font-size: 2rem;
	font-weight: 800;
	color: var(--navy-800);
	letter-spacing: -0.02em;
}

.stat__num small {
	font-size: 0.9rem;
	color: var(--orange);
	font-weight: 800;
}

.stat__label {
	display: block;
	margin-top: 0.35rem;
	color: var(--muted);
	font-size: 0.88rem;
	font-weight: 600;
}

/* ======================================================================
   7. Sections
   ====================================================================== */
.section {
	padding: clamp(4rem, 9vh, 6.5rem) 0;
}

.section--alt {
	background: var(--surface);
}

.section__head {
	max-width: 640px;
	margin: 0 auto 3rem;
	text-align: center;
}

.section__head--row {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	text-align: left;
	flex-wrap: wrap;
}

.section__kicker {
	color: var(--orange);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.82rem;
	margin: 0 0 0.5rem;
}

.section__title {
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	color: var(--navy-800);
	margin-bottom: 0.5rem;
}

.section__lead {
	color: var(--muted);
	margin: 0;
}

/* ======================================================================
   8. Service cards
   ====================================================================== */
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.service-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2rem 1.75rem;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	display: flex;
	flex-direction: column;
}

.service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
	border-color: rgba(240, 90, 40, 0.4);
}

.service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--orange-soft);
	color: var(--orange);
	margin-bottom: 1.25rem;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-card__icon {
	transform: scale(1.12) rotate(-5deg);
	background: linear-gradient(135deg, var(--orange), var(--orange-dark));
	color: #fff;
}

.service-card__icon .icon {
	width: 28px;
	height: 28px;
}

.service-card__title {
	font-size: 1.18rem;
	color: var(--navy-800);
	margin-bottom: 0.5rem;
}

.service-card__title a {
	color: inherit;
}

.service-card__desc {
	color: var(--muted);
	font-size: 0.95rem;
	margin: 0 0 1.25rem;
	flex: 1;
}

.service-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--orange);
	font-weight: 700;
	font-size: 0.9rem;
}

.service-card__more .icon {
	transition: transform 0.2s ease;
}

.service-card:hover .service-card__more .icon {
	transform: translateX(4px);
}

/* ======================================================================
   9. News cards
   ====================================================================== */
.news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

/* Featured layout: big overlay card left, stacked cards right */
.news__grid--featured {
	grid-auto-rows: minmax(0, 1fr);
}

.post-card--featured {
	grid-column: span 2;
	grid-row: span 2;
	position: relative;
	min-height: 480px;
	border: 0;
	background: var(--navy-800);
}

.post-card--featured:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}

.post-card__bg {
	position: absolute;
	inset: 0;
	display: block;
}

.post-card__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.post-card--featured:hover .post-card__bg img {
	transform: scale(1.04);
}

.post-card__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 16, 32, 0.05) 30%, rgba(10, 16, 32, 0.55) 60%, rgba(10, 16, 32, 0.92) 100%);
	pointer-events: none;
}

.post-card__overlay {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 2.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	height: 100%;
	justify-content: flex-end;
}

.post-card__meta--ondark {
	color: rgba(219, 227, 240, 0.85);
	margin-bottom: 0;
}

.post-card__title--featured {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	margin: 0;
}

.post-card__title--featured a {
	color: #fff;
}

.post-card__title--featured a:hover {
	color: #ffb39a;
}

.post-card__excerpt--featured {
	color: rgba(219, 227, 240, 0.85);
	max-width: 560px;
	flex: 0;
	margin: 0;
}

.post-card__more--ondark {
	color: #ffb39a;
}

/* Category badge over the image */
.post-card__media {
	position: relative;
}

.post-card__cat--onimage {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	z-index: 1;
	box-shadow: var(--shadow-sm);
}

.post-card__meta .icon {
	width: 1em;
	height: 1em;
	opacity: 0.7;
	margin-right: 0.2rem;
}

.post-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--navy-800);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.05);
}

.post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--orange);
	background:
		url("assets/img/skyline.svg") center calc(100% + 12px) / auto 90px repeat-x,
		radial-gradient(circle at 70% 20%, rgba(240, 90, 40, 0.25), transparent 55%),
		var(--navy-800);
}

.post-card__placeholder--featured {
	position: absolute;
	inset: 0;
	background-size: auto 160px, auto, auto;
}

.post-card__placeholder .icon {
	width: 44px;
	height: 44px;
	opacity: 0.9;
}

.post-card__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.82rem;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 0.65rem;
}

.post-card__cat {
	background: var(--orange-soft);
	color: var(--orange-dark);
	padding: 0.15rem 0.7rem;
	border-radius: 999px;
	font-weight: 700;
}

.post-card__title {
	font-size: 1.12rem;
	margin-bottom: 0.5rem;
}

.post-card__title a {
	color: var(--navy-800);
}

.post-card__title a:hover {
	color: var(--orange);
}

.post-card__excerpt {
	color: var(--muted);
	font-size: 0.93rem;
	margin: 0 0 1rem;
	flex: 1;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	font-size: 0.9rem;
}

.news__empty {
	text-align: center;
	color: var(--muted);
	padding: 2rem 0;
}

/* ======================================================================
   9b. Partners / collaboration
   ====================================================================== */
.partners__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.partner-card {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2rem 1.75rem;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.partner-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
	border-color: rgba(240, 90, 40, 0.35);
}

.partner-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 96px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 0.9rem 1.4rem;
	margin-bottom: 1.4rem;
}

.partner-card__logo img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
}

.partner-card__name {
	font-size: 1.1rem;
	color: var(--navy-800);
	margin-bottom: 0.5rem;
}

.partner-card__desc {
	color: var(--muted);
	font-size: 0.93rem;
	margin: 0;
}

.partners__quote {
	margin: 3rem auto 0;
	max-width: 760px;
	text-align: center;
	border: 0;
	padding: 0 1rem;
	position: relative;
}

.partners__quote p {
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	font-weight: 700;
	color: var(--navy-800);
	line-height: 1.5;
	margin: 0;
}

.partners__quote::before {
	content: "„";
	display: block;
	font-size: 3.5rem;
	line-height: 0.5;
	color: var(--orange);
	font-weight: 800;
	margin-bottom: 0.75rem;
}

/* ======================================================================
   10. CTA band
   ====================================================================== */
.cta {
	background:
		radial-gradient(800px 400px at 85% 20%, rgba(240, 90, 40, 0.18), transparent 60%),
		linear-gradient(135deg, var(--navy-800), var(--navy-950));
	color: #fff;
	padding: clamp(3.5rem, 8vh, 5.5rem) 0;
}

.cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.5rem;
	flex-wrap: wrap;
}

.cta__text h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin-bottom: 0.5rem;
}

.cta__text p {
	color: var(--navy-100);
	max-width: 520px;
	margin: 0;
}

.cta__actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: flex-start;
}

.cta__meta {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	color: var(--navy-100);
	font-size: 0.9rem;
}

.cta__meta .icon {
	color: var(--orange);
	margin-right: 0.4rem;
}

/* ======================================================================
   11. Page hero (inner pages)
   ====================================================================== */
.page-hero {
	background:
		radial-gradient(900px 380px at 80% -20%, #1d2c4d 0%, transparent 60%),
		linear-gradient(180deg, var(--navy-900), var(--navy-950));
	color: #fff;
	padding: clamp(3.5rem, 8vh, 5rem) 0;
}

.page-hero__title {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	margin: 0;
}

.page-hero__title span {
	color: var(--orange);
}

.page-hero__desc {
	color: var(--navy-100);
	margin: 0.75rem 0 0;
	max-width: 640px;
}

.section__kicker--ondark {
	color: #ffb39a;
}

.service-card__icon--hero {
	background: rgba(240, 90, 40, 0.15);
	color: var(--orange);
	margin-bottom: 1rem;
}

.page-hero--post .post-card__meta {
	color: var(--navy-100);
	margin-bottom: 1rem;
}

/* ======================================================================
   12. Single entry
   ====================================================================== */
.entry__thumb {
	margin: -3rem 0 2rem;
}

.entry__thumb img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

.entry__content {
	padding: 2.5rem 0;
	font-size: 1.05rem;
}

.entry__content h2,
.entry__content h3 {
	color: var(--navy-800);
	margin-top: 2em;
}

.entry__content img {
	border-radius: var(--radius-sm);
}

.entry__content blockquote {
	border-left: 4px solid var(--orange);
	margin: 1.5em 0;
	padding: 0.5em 0 0.5em 1.5em;
	color: var(--muted);
	font-style: italic;
}

.entry__footer {
	border-top: 1px solid var(--line);
	padding: 1.5rem 0 3rem;
}

.entry__tags a {
	display: inline-block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.25rem 0.85rem;
	font-size: 0.85rem;
	font-weight: 600;
	margin: 0 0.35rem 0.5rem 0;
	color: var(--muted);
}

.entry__tags a:hover {
	color: var(--orange);
	border-color: var(--orange);
}

.entry__nav {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 1.5rem;
	font-weight: 700;
}

/* ======================================================================
   13. Forms, pagination
   ====================================================================== */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 480px;
	margin: 1rem 0 2rem;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 0.7rem 1.2rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-family: inherit;
	font-size: 1rem;
	background: var(--surface);
	min-width: 0;
}

.search-form input[type="search"]:focus {
	outline: 2px solid var(--orange);
	outline-offset: 1px;
	border-color: transparent;
}

.pagination {
	margin-top: 3rem;
	text-align: center;
}

.pagination .nav-links {
	display: inline-flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	min-width: 42px;
	justify-content: center;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	font-weight: 700;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--orange);
	border-color: var(--orange);
	color: #fff;
}

/* ======================================================================
   14. Footer
   ====================================================================== */
.site-footer {
	position: relative;
	background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
	color: var(--navy-100);
	padding: 4.5rem 0 0;
	overflow: hidden;
}

.site-footer__skyline {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 140px;
	background-image: url("assets/img/skyline.svg");
	background-repeat: repeat-x;
	background-position: center top;
	background-size: auto 140px;
	opacity: 0.12;
	transform: scaleY(-1);
	pointer-events: none;
}

.site-footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 3rem;
}

.site-brand--footer {
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	margin: 0 0 0.75rem;
}

.site-brand--footer strong {
	color: var(--orange);
}

.site-brand--footer span {
	color: #fff;
	font-weight: 700;
}

.site-footer__tagline {
	max-width: 360px;
	font-size: 0.95rem;
	margin: 0;
}

.footer-widget__title {
	color: #fff;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 1.1rem;
}

.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	font-size: 0.95rem;
}

.footer-contact li {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
}

.footer-contact .icon {
	color: var(--orange);
	margin-top: 0.15em;
}

.footer-contact a {
	color: var(--navy-100);
}

.footer-contact a:hover {
	color: #fff;
}

.footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.footer-nav a {
	color: var(--navy-100);
	font-weight: 600;
	font-size: 0.95rem;
}

.footer-nav a:hover {
	color: var(--orange);
}

.site-footer__bottom {
	position: relative;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.4rem 0;
	font-size: 0.85rem;
	text-align: center;
	color: rgba(219, 227, 240, 0.6);
}

.site-footer__bottom p {
	margin: 0;
}

/* ======================================================================
   15. Animations
   ====================================================================== */

/* --- Scroll reveal (staggered via JS transition-delay) --- */
.will-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.will-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* --- Hero entrance --- */
@keyframes bgip-rise {
	from {
		opacity: 0;
		transform: translateY(26px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.hero__kicker,
.hero__title,
.hero__lead,
.hero__search,
.hero__chips {
	animation: bgip-rise 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__kicker { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.15s; }
.hero__lead { animation-delay: 0.28s; }
.hero__search { animation-delay: 0.4s; }
.hero__chips { animation-delay: 0.52s; }

/* --- Typewriter caret --- */
@keyframes bgip-caret-blink {
	0%, 49% {
		opacity: 1;
	}
	50%, 100% {
		opacity: 0;
	}
}

.hero__title-mark.is-typing::after {
	content: "";
	display: inline-block;
	width: 0.06em;
	height: 0.85em;
	margin-left: 0.08em;
	vertical-align: -0.08em;
	background: var(--orange);
	animation: bgip-caret-blink 1s steps(1) infinite;
	-webkit-text-fill-color: initial;
}

/* --- Hero ambient motion --- */
@keyframes bgip-gradient-slide {
	to {
		background-position: -200% 0;
	}
}

@keyframes bgip-drift {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 760px 0;
	}
}

.hero__circuit {
	animation: bgip-drift 90s linear infinite;
}

@keyframes bgip-glow-pulse {
	0%, 100% {
		opacity: 0.8;
	}
	50% {
		opacity: 1.0;
	}
}

.hero__glow {
	animation: bgip-glow-pulse 7s ease-in-out infinite;
}

@keyframes bgip-skyline-glide {
	0%, 100% {
		background-position-x: 0;
	}
	50% {
		background-position-x: 60px;
	}
}

.hero__skyline {
	animation: bgip-skyline-glide 40s ease-in-out infinite;
}

/* --- Parallax layers get transforms from JS --- */
.hero__circuit,
.hero__glow,
.hero__skyline,
.hero__art {
	will-change: transform;
}

/* --- CTA phone pulse --- */
@keyframes bgip-pulse-ring {
	0% {
		box-shadow: 0 6px 18px rgba(240, 90, 40, 0.35), 0 0 0 0 rgba(240, 90, 40, 0.45);
	}
	70% {
		box-shadow: 0 6px 18px rgba(240, 90, 40, 0.35), 0 0 0 16px rgba(240, 90, 40, 0);
	}
	100% {
		box-shadow: 0 6px 18px rgba(240, 90, 40, 0.35), 0 0 0 0 rgba(240, 90, 40, 0);
	}
}

.btn--pulse {
	animation: bgip-pulse-ring 2.4s ease-out infinite;
}

/* --- Chip micro-interaction --- */
.chip:hover {
	transform: translateY(-2px);
}

/* --- Disable everything via Customizer toggle or OS preference --- */
body.bgip-no-anim *,
body.bgip-no-anim *::before,
body.bgip-no-anim *::after {
	animation: none !important;
	transition: none !important;
}

body.bgip-no-anim .will-reveal {
	opacity: 1;
	transform: none;
}

body.bgip-no-anim .hero__title span {
	-webkit-text-fill-color: var(--orange);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.will-reveal,
	.hero__kicker,
	.hero__title,
	.hero__lead,
	.hero__search,
	.hero__chips {
		opacity: 1;
		transform: none;
		animation: none;
		transition: none;
	}

	.hero__circuit,
	.hero__glow,
	.hero__skyline,
	.btn--pulse,
	.hero__title span {
		animation: none;
	}

	.hero__title span {
		-webkit-text-fill-color: var(--orange);
	}
}

/* ======================================================================
   16. Responsive
   ====================================================================== */
@media (max-width: 1024px) {
	.services__grid,
	.news__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.partners__grid {
		grid-template-columns: 1fr;
		max-width: 560px;
		margin-inline: auto;
	}

	.post-card--featured {
		grid-column: span 2;
		grid-row: auto;
		min-height: 380px;
	}

	.stats__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 760px) {
	.nav-toggle {
		display: flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--navy-900);
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		display: none;
		padding: 0.75rem 1.5rem 1.25rem;
		box-shadow: 0 24px 40px rgba(8, 13, 26, 0.5);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0.15rem;
	}

	.btn--phone span {
		display: none;
	}

	.btn--phone {
		padding: 0.6rem;
		border-radius: 50%;
	}

	.hero__search {
		flex-wrap: wrap;
		border-radius: var(--radius);
		padding: 0.75rem;
	}

	.hero__search input {
		width: 100%;
		padding: 0.4rem 0;
	}

	.hero__search .btn {
		width: 100%;
		justify-content: center;
	}

	.services__grid,
	.news__grid {
		grid-template-columns: 1fr;
	}

	.post-card--featured {
		grid-column: auto;
		min-height: 340px;
	}

	.post-card__overlay {
		padding: 1.5rem;
	}

	.section__head--row {
		flex-direction: column;
		align-items: flex-start;
	}

	.cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 520px) {
	.stats__grid {
		grid-template-columns: 1fr;
	}
}

/* ======================================================================
   17. WordPress core classes
   ====================================================================== */
.alignleft {
	float: left;
	margin: 0.5em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
	margin-top: 0.5em;
}

.sticky {
	position: relative;
}

.bypostauthor {
	display: block;
}
