/*
Theme Name: Georgijevic Modern
Theme URI: https://georgijevic.info/
Description: A GeneratePress child theme that preserves the Georgijevic Developer Team visual identity and legacy content structures.
Author: Georgijevic Developer Team
Template: generatepress
Version: 1.0.17
Text Domain: georgijevic-modern
Requires at least: 6.5
Requires PHP: 7.4
*/

:root {
	--geo-red: #c71f25;
	--geo-red-dark: #97171c;
	--geo-ink: #202326;
	--geo-slate: #4b5157;
	--geo-mist: #f4f5f6;
	--geo-line: #dedfe1;
	--geo-width: 1170px;
}

html {
	scroll-behavior: smooth;
}

body.georgijevic-modern {
	background: #fff;
	color: var(--geo-ink);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.65;
}

.geo-shell {
	width: min(100% - 2rem, var(--geo-width));
	margin-inline: auto;
}

.geo-skip-link {
	position: fixed;
	left: 1rem;
	top: -8rem;
	z-index: 1000;
	padding: .75rem 1rem;
	background: #fff;
	color: var(--geo-ink);
	box-shadow: 0 2px 12px rgb(0 0 0 / .18);
}

.geo-skip-link:focus {
	top: 1rem;
}

.geo-utility {
	background: var(--geo-ink);
	color: #fff;
	font-size: .78rem;
}

.geo-utility .geo-shell,
.geo-header__inner,
.geo-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.geo-utility p {
	margin: .45rem 0;
}

.geo-social,
.geo-social ul {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.geo-social a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.geo-social a:hover,
.geo-social a:focus-visible {
	color: #ffc9ca;
}

.geo-header {
	position: relative;
	z-index: 10;
	background: #e6e7e8;
	border-bottom: 4px solid var(--geo-red);
}

.geo-header__inner {
	min-height: 6.7rem;
}

.geo-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	max-width: 13rem;
}

.geo-brand img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 5.25rem;
	object-fit: contain;
}

.geo-menu-toggle {
	display: none;
	border: 1px solid #bfc2c5;
	border-radius: .2rem;
	padding: .55rem .8rem;
	background: #fff;
	color: var(--geo-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.geo-primary-menu,
.geo-primary-menu .menu,
.geo-primary-menu ul {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.geo-primary-menu li {
	position: relative;
	margin: 0;
}

.geo-primary-menu a {
	display: block;
	padding: 1.05rem .85rem;
	color: #303438;
	font-size: .86rem;
	font-weight: 700;
	letter-spacing: .015em;
	text-decoration: none;
	text-transform: uppercase;
}

.geo-primary-menu .current-menu-item > a,
.geo-primary-menu .current_page_item > a,
.geo-primary-menu a:hover,
.geo-primary-menu a:focus-visible {
	background: var(--geo-red);
	color: #fff;
}

.geo-primary-menu .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	display: none;
	min-width: 13rem;
	background: #fff;
	box-shadow: 0 8px 20px rgb(0 0 0 / .16);
}

.geo-primary-menu li:hover > .sub-menu,
.geo-primary-menu li:focus-within > .sub-menu {
	display: block;
}

.geo-primary-menu .sub-menu a {
	padding: .7rem .85rem;
	text-transform: none;
}

.geo-hero {
	position: relative;
	min-height: clamp(20rem, 38vw, 31rem);
	margin-top: 5px;
	overflow: hidden;
	background: #e7eaec;
}

.home .site-content,
.home .site-main {
	margin-top: 0;
	padding-top: 0;
}

.geo-hero__slide {
	position: absolute;
	inset: 0;
	display: grid;
	align-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .55s ease;
}

.geo-hero__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.geo-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.geo-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(0 0 0 / .58), rgb(0 0 0 / .16) 63%, rgb(0 0 0 / .04));
}

.geo-hero__content {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	max-width: none;
	padding: clamp(3.5rem, 7vw, 5.5rem) clamp(3.5rem, 9vw, 7rem);
	color: #fff;
	text-shadow: 0 2px 8px rgb(0 0 0 / .35);
}

.geo-hero__eyebrow {
	margin: 0 0 .4rem;
	max-width: 52rem;
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.geo-hero__title {
	margin: 0;
	max-width: 56rem;
	font-size: clamp(2rem, 5.4vw, 4.8rem);
	line-height: 1.05;
}

.geo-hero__text {
	margin: 1.15rem 0 0;
	max-width: 52rem;
	font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.geo-hero__control {
	position: absolute;
	bottom: 1.1rem;
	z-index: 2;
	border: 0;
	border-radius: 50%;
	width: 2.5rem;
	height: 2.5rem;
	background: rgb(0 0 0 / .65);
	color: #fff;
	font-size: 1.45rem;
	cursor: pointer;
}

.geo-hero__control:hover,
.geo-hero__control:focus-visible {
	background: var(--geo-red);
}

.geo-hero__control--previous { left: max(1rem, calc((100% - var(--geo-width)) / 2)); }
.geo-hero__control--next { right: max(1rem, calc((100% - var(--geo-width)) / 2)); }

.geo-home-main {
	padding-block: 3.2rem 4rem;
}

.geo-home-intro {
	max-width: 55rem;
	margin-inline: auto;
	text-align: center;
}

.geo-home-intro h1,
.geo-section-title {
	margin: 0;
	color: var(--geo-ink);
	font-size: clamp(1.65rem, 3vw, 2.45rem);
	line-height: 1.18;
}

.geo-home-intro p {
	margin: 1rem 0 0;
	color: var(--geo-slate);
	font-size: 1.08rem;
}

.geo-minesweeper {
	display: block;
	margin-block: 2.6rem;
	padding: 1.05rem 1.3rem;
	background: var(--geo-red);
	color: #fff;
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 700;
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none;
}

.geo-minesweeper:hover,
.geo-minesweeper:focus-visible {
	background: var(--geo-red-dark);
	color: #fff;
}

/* Keeps the CTA label white despite the generic content-link color below. */
.site-main a.geo-minesweeper,
.site-main a.geo-minesweeper:hover,
.site-main a.geo-minesweeper:focus-visible {
	color: #fff;
}

.geo-service-grid,
.geo-link-grid,
.geo-post-grid,
.geo-category-grid,
.geo-footer__widgets {
	display: grid;
	gap: 1.3rem;
}

.geo-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.geo-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.25rem; }
.geo-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.25rem; }
.geo-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25rem; }

.geo-card,
.geo-link-card,
.geo-post-card,
.geo-category-card {
	border: 1px solid var(--geo-line);
	border-radius: .25rem;
	background: #fff;
	box-shadow: 0 5px 16px rgb(0 0 0 / .05);
}

.geo-card {
	border-top: 4px solid var(--geo-red);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.geo-card h2,
.geo-link-card h3,
.geo-category-card h2,
.geo-post-card h3 {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
}

.geo-card p,
.geo-link-card p,
.geo-post-card p,
.geo-category-card li {
	color: var(--geo-slate);
}

.geo-card .geo-button,
.geo-link-card a,
.geo-post-card a,
.geo-category-card a {
	color: var(--geo-red);
	font-weight: 700;
}

.geo-button {
	display: inline-block;
	margin-top: .75rem;
	text-decoration: none;
}

.geo-button:hover,
.geo-button:focus-visible,
.geo-link-card a:hover,
.geo-link-card a:focus-visible,
.geo-post-card a:hover,
.geo-post-card a:focus-visible,
.geo-category-card a:hover,
.geo-category-card a:focus-visible {
	color: var(--geo-red-dark);
	text-decoration-thickness: 2px;
}

.geo-link-section { margin-top: 2.7rem; }

.geo-card__image {
	display: block;
	aspect-ratio: 1;
	background: #f4f5f6;
	overflow: hidden;
}

.geo-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.geo-card__image:hover img,
.geo-card__image:focus-visible img {
	transform: scale(1.035);
}

.geo-card__image:focus-visible,
.geo-link-card__image:focus-visible {
	outline: 3px solid var(--geo-red);
	outline-offset: -3px;
}

.geo-card__body { padding: 1.35rem 1.3rem 1.65rem; }

.geo-link-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.geo-link-card__image {
	display: block;
	aspect-ratio: 1544 / 500;
	background: #e8ebed;
	overflow: hidden;
}

.geo-link-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.geo-link-card__image:hover img,
.geo-link-card__image:focus-visible img {
	transform: scale(1.035);
}

.geo-link-card__body { padding: 1.35rem; }

.geo-category-card { padding: 1.35rem; }

.geo-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.geo-post-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	background: #e8ebed;
	overflow: hidden;
}

.geo-post-card__image-file {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.geo-post-card__image:hover .geo-post-card__image-file,
.geo-post-card__image:focus-visible .geo-post-card__image-file {
	transform: scale(1.035);
}

.geo-post-card__image:focus-visible {
	outline: 3px solid var(--geo-red);
	outline-offset: -3px;
}

.geo-post-card__body { padding: 1.35rem; }

.geo-post-card time {
	display: block;
	margin-top: .6rem;
	color: #6c737a;
	font-size: .85rem;
}

.geo-category-card ul {
	margin: .8rem 0 0;
	padding-left: 1.15rem;
}

.geo-category-card li + li { margin-top: .4rem; }

.geo-home-section { margin-top: 3.5rem; }
.geo-home-section > .geo-section-title { text-align: center; }

.geo-site-main {
	padding-block: 3rem 4rem;
}

.site-content,
.content-area,
.site-main {
	background: transparent;
}

.inside-article,
.separate-containers .inside-article {
	border: 1px solid var(--geo-line);
	box-shadow: 0 5px 16px rgb(0 0 0 / .04);
}

.entry-title a,
.entry-content a,
.widget a,
.site-main a {
	color: var(--geo-red);
}

.entry-title a:hover,
.entry-content a:hover,
.widget a:hover,
.site-main a:hover {
	color: var(--geo-red-dark);
}

.geo-sidebar .widget {
	margin-bottom: 1.3rem;
	padding: 1.2rem;
	border: 1px solid var(--geo-line);
	background: #fff;
}

.geo-footer {
	background: #1f2225;
	color: #e7e7e7;
}

.geo-footer__widgets {
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	padding-block: 3rem;
}

.geo-footer .widget {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.geo-footer .widget-title,
.geo-footer h2,
.geo-footer h3 {
	margin-top: 0;
	color: #fff;
	font-size: 1.05rem;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.geo-footer a { color: #fff; }
.geo-footer a:hover,
.geo-footer a:focus-visible { color: #ffb8ba; }

.geo-footer-games {
	display: grid;
	gap: .45rem;
}

.geo-footer-games a {
	display: block;
	width: fit-content;
}

.geo-footer__bottom {
	min-height: 4rem;
	border-top: 1px solid #41464b;
	font-size: .85rem;
}

.geo-footer__bottom p { margin: 0; }

@media (max-width: 900px) {
	.geo-header__inner { min-height: 5.6rem; }
	.geo-menu-toggle { display: inline-block; }
	.geo-primary-menu {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		padding: .4rem 1rem 1rem;
		background: #e6e7e8;
		box-shadow: 0 10px 18px rgb(0 0 0 / .13);
	}
	.geo-primary-menu.is-open { display: block; }
	.geo-primary-menu,
	.geo-primary-menu .menu,
	.geo-primary-menu ul { align-items: stretch; }
	.geo-primary-menu .menu,
	.geo-primary-menu ul { display: block; }
	.geo-primary-menu a { padding: .7rem .8rem; }
	.geo-primary-menu .sub-menu {
		position: static;
		display: block;
		padding-left: .7rem;
		box-shadow: none;
	}
	.geo-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
	.geo-shell { width: min(100% - 1.25rem, var(--geo-width)); }
	.geo-utility .geo-shell,
	.geo-footer__bottom { align-items: flex-start; flex-direction: column; gap: .3rem; padding-block: .7rem; }
	.geo-utility p { margin: 0; }
	.geo-social { flex-wrap: wrap; }
	.geo-header__inner { min-height: 5rem; }
	.geo-brand { max-width: 10.8rem; }
	.geo-hero { min-height: 27rem; }
	.geo-hero__content { padding-block: 4rem 4.5rem; }
	.geo-hero__slide::after { background: linear-gradient(90deg, rgb(0 0 0 / .68), rgb(0 0 0 / .28)); }
	.geo-hero__control { bottom: .75rem; }
	.geo-service-grid,
	.geo-link-grid,
	.geo-post-grid,
	.geo-category-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
