/**
 * Single Miasta (CPT) - Styles
 *
 * City landing page template: intro, values, products, banner,
 * content blocks, mosaic, features, CTA.
 *
 * @package SigmaDruk
 * @since 1.0.0
 */

/* ==========================================================================
   1. CITY INTRO — Full-width image with content overlay
   ========================================================================== */

.city-intro {
	margin: 40px 50px 0;
	border-radius: var(--r-20);
	overflow: hidden;
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: center;
}

.city-intro-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.city-intro-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Subtle darkening for readability, no heavy gradient */
.city-intro-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
}

.city-intro-content {
	position: relative;
	z-index: 2;
	padding: 100px 100px 50px 50px;
	width: 100%;
	align-self: end;
}

/* Glassmorphism card — dark variant */
.city-intro-glass {
	background: rgba(14, 17, 23, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--r-20);
	padding: 48px 50px;
	max-width: 40%;
}

.city-intro-title {
	font-size: var(--h-l);
	font-weight: 600;
	color: var(--pure-white);
	line-height: var(--h-l-lh);
	margin-bottom: 30px;
	letter-spacing: var(--letter-spacing);
}

.city-intro-desc {
	font-size: var(--b-l);
	line-height: var(--b-m-lh);
	color: var(--lite-grey);
	margin-bottom: 28px;
}

.city-intro-cta { margin-top: 0; }

/* ==========================================================================
   2. VALUE PROPS — 3 columns with dividers
   ========================================================================== */

.city-values {
	padding: 80px 0;
}

.city-values-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.city-value {
	padding: 0 40px;
	position: relative;
}

.city-value + .city-value {
	border-left: 1px solid var(--navy-sky);
}

.city-value-icon {
	width: 48px;
	height: 48px;
	background: var(--ultra-lite-grey);
	border-radius: var(--r-10);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.city-value-icon svg {
	width: 24px;
	height: 24px;
	color: var(--navy);
}

.city-value-title {
	font-size: var(--h-s);
	font-weight: 600;
	color: var(--black);
	margin-bottom: 10px;
	line-height: var(--h-s-lh);
}

.city-value-text {
	font-size: var(--b-m);
	line-height: var(--b-m-lh);
	color: var(--grey);
}

/* ==========================================================================
   3. PRODUCTS SECTION — Intro + grid
   ========================================================================== */

.city-products {
	background: var(--ultra-lite-grey);
	margin: 0 50px;
	border-radius: var(--r-20);
	padding: 60px 0;
}

.city-products .container {
	width: calc(100% - 80px);
}

.city-products-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 50px;
}

.city-products-title {
	font-size: var(--h-l);
	font-weight: 600;
	color: var(--black);
	margin: 0;
	letter-spacing: var(--letter-spacing);
}

.city-products-subtitle {
	font-size: var(--b-m);
	color: var(--mid-grey);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-top: 6px;
}

.city-products-link {
	font-size: var(--b-m);
	color: var(--mid-navy);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap 0.3s;
	padding-bottom: 8px;
	white-space: nowrap;
}

.city-products-link:hover { gap: 12px; color: var(--navy); }
.city-products-link svg { width: 16px; height: 16px; }

.city-products-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}

.city-product-card {
	background: var(--pure-white);
	border-radius: var(--r-15);
	padding: 30px 20px;
	text-align: center;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	cursor: pointer;
}

.city-product-card:hover {
	border-color: var(--lite-grey);
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.city-product-card-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	background: var(--ultra-lite-grey);
	border-radius: var(--r-10);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}

.city-product-card:hover .city-product-card-icon { background: rgba(220,24,61,0.08); }
.city-product-card-icon svg { width: 30px; height: 30px; color: var(--navy); transition: color 0.3s; }
.city-product-card:hover .city-product-card-icon svg { color: var(--red); }

.city-product-card-name {
	font-size: var(--b-15);
	font-weight: 500;
	color: var(--black);
}

/* ==========================================================================
   4. FULL-WIDTH BANNER — Edge-to-edge within margins
   ========================================================================== */

.city-banner {
	margin: 60px 50px 0;
	border-radius: var(--r-20);
	overflow: hidden;
	position: relative;
	height: 380px;
}

.city-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.city-banner-overlay {
	position: absolute;
	inset: 0;
	background: transparent;
	display: flex;
	align-items: flex-end;
	padding: 50px;
}

.city-banner-glass {
	background: rgba(14, 17, 23, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--r-20);
	padding: 50px;
	max-width: 650px;
}

.city-banner-text {
	font-size: var(--h-m);
	font-weight: 500;
	color: var(--pure-white);
	line-height: var(--h-m-lh);
	max-width: 650px;
}

/* ==========================================================================
   5. CONTENT BLOCKS — Alternating image + text
   ========================================================================== */

.city-content {
	padding: 100px 0;
}

.city-content-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

.city-content--reversed .city-content-inner {
	direction: rtl;
}

.city-content--reversed .city-content-inner > * {
	direction: ltr;
}

.city-content-image {
	border-radius: var(--r-20);
	overflow: hidden;
	aspect-ratio: 4/3;
}

.city-content-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.city-content-title {
	font-size: var(--h-l);
	font-weight: 600;
	color: var(--black);
	margin-bottom: 20px;
	letter-spacing: var(--letter-spacing);
	line-height: var(--h-l-lh);
}

.city-content-text {
	font-size: var(--b-l);
	line-height: var(--b-l-lh);
	color: var(--grey);
	margin-bottom: 30px;
}

/* ==========================================================================
   6. MOSAIC — Within margins, rounded, SEO text integrated
   ========================================================================== */

.city-mosaic {
	margin: 0 50px;
}

.city-mosaic-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 260px 260px;
	gap: 14px;
	border-radius: var(--r-20);
	overflow: hidden;
}

/* Row 1: SEO text spans 2 cols */
.city-mosaic-tile--seo {
	grid-column: 1 / 3;
	background: var(--ultra-lite-grey);
	padding: 40px 50px;
	display: flex;
	align-items: center;
}

.city-mosaic-tile--seo p {
	font-size: var(--b-m);
	line-height: var(--b-m-lh);
	color: var(--grey);
	margin: 0;
}

.city-mosaic-tile--seo a {
	color: var(--mid-navy);
	font-weight: 500;
	transition: color 0.2s;
}

.city-mosaic-tile--seo a:hover { color: var(--navy); }

.city-mosaic-tile {
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.city-mosaic-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.city-mosaic-tile--red {
	background: var(--red);
	color: var(--pure-white);
	flex-direction: column;
	padding: 30px;
}

.city-mosaic-tile--red .mosaic-label {
	font-size: var(--b-m);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 3px;
}

.city-mosaic-tile--red .mosaic-value {
	font-size: clamp(3rem, 2.5rem + 2vw, 5rem);
	font-weight: 700;
	line-height: 1;
}

.city-mosaic-tile--navy {
	background: var(--navy);
	color: var(--pure-white);
	flex-direction: column;
	padding: 30px;
}

.city-mosaic-tile--navy .mosaic-label {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
	text-align: center;
}

.city-mosaic-tile--navy .mosaic-sub {
	font-size: var(--b-m);
	opacity: 0.6;
	margin-top: 8px;
}

/* ==========================================================================
   7. FEATURES — 4 columns with bottom accent
   ========================================================================== */

.city-features {
	padding: 100px 0;
}

.city-features-title {
	font-size: var(--h-l);
	font-weight: 600;
	color: var(--black);
	text-align: center;
	margin-bottom: 60px;
	letter-spacing: var(--letter-spacing);
}

.city-features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

.city-feature {
	padding: 0 35px;
	position: relative;
}

.city-feature + .city-feature {
	border-left: 1px solid var(--navy-sky);
}

.city-feature-number {
	display: block;
	font-size: 4vw;
	font-weight: 700;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px var(--navy-sky);
	text-stroke: 2px var(--navy-sky);
	margin-bottom: 10px;
	user-select: none;
}

.city-feature-title {
	font-size: var(--h-s);
	font-weight: 700;
	color: var(--black);
	margin-bottom: 14px;
	line-height: var(--h-s-lh);
}

.city-feature-text {
	font-size: var(--b-15);
	line-height: 1.6;
	color: var(--deep-grey);
	letter-spacing: var(--letter-spacing);
}

/* ==========================================================================
   8. CTA BANNER — Dark, within margins
   ========================================================================== */

.city-cta {
	margin: 50px;
	background: linear-gradient(135deg, var(--black-navy) 0%, #1a1a2e 100%);
	border-radius: var(--r-20);
	padding: 60px 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	position: relative;
	overflow: hidden;
}

.city-cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--red), var(--red-intense), var(--red));
}

.city-cta-title {
	font-size: var(--h-l);
	font-weight: 600;
	color: var(--pure-white);
	margin-bottom: 8px;
	letter-spacing: var(--letter-spacing);
}

.city-cta-desc {
	font-size: var(--b-l);
	color: rgba(255,255,255,0.6);
}

.city-cta-buttons {
	display: flex;
	gap: 16px;
	flex-shrink: 0;
}

/* ==========================================================================
   BUTTON VARIANT — Outline White
   ========================================================================== */

.btn-white {
	background: transparent;
	color: var(--pure-white);
	border: 1px solid rgba(255,255,255,0.25);
}

.btn-white:hover {
	border-color: rgba(255,255,255,0.5);
	background: rgba(255,255,255,0.05);
	color: var(--pure-white);
	transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE — 1536px
   ========================================================================== */

@media (max-width: 1536px) {
	.city-intro { margin: 40px 20px 0; }
	.city-products { margin: 0 20px; }
	.city-banner { margin: 60px 20px 0; }
	.city-mosaic { margin: 0 20px; }
	.city-cta { margin: 0 20px 80px; }
}

/* ==========================================================================
   RESPONSIVE — 1366px
   ========================================================================== */

@media (max-width: 1366px) {
	.city-features-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
	.city-feature + .city-feature { border-left: none; }
	.city-feature:nth-child(2) { border-left: 1px solid var(--navy-sky); }
	.city-feature:nth-child(4) { border-left: 1px solid var(--navy-sky); }
}

/* ==========================================================================
   RESPONSIVE — 1024px
   ========================================================================== */

@media (max-width: 1024px) {
	.city-intro-glass { max-width: 60%; }
	.city-values-grid { grid-template-columns: 1fr; gap: 40px; }
	.city-value + .city-value { border-left: none; border-top: 1px solid var(--navy-sky); padding-top: 40px; }
	.city-products-grid { grid-template-columns: repeat(3, 1fr); }
	.city-content-inner { grid-template-columns: 1fr; gap: 40px; }
	.city-content--reversed .city-content-inner { direction: ltr; }
	.city-mosaic-grid { grid-template-columns: 1fr 1fr; }
	.city-cta { flex-direction: column; text-align: center; padding: 50px 40px; }
	.city-cta-buttons { justify-content: center; }
}

/* ==========================================================================
   RESPONSIVE — 768px
   ========================================================================== */

@media (max-width: 768px) {
	.city-intro { margin: 20px 0 0; border-radius: 0; min-height: 400px; }
	.city-intro-content { padding: 40px 20px; }
	.city-intro-glass { max-width: 100%; padding: 30px; }
	.city-mosaic-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
	.city-mosaic-tile--seo { grid-column: 1; }
	.city-products { margin: 0; border-radius: 0; }
	.city-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.city-banner { margin: 40px 0 0; border-radius: 0; height: 280px; }
	.city-content { padding: 60px 0; }
	.city-mosaic { margin: 0; }
	.city-mosaic-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
	.city-mosaic-tile { min-height: 200px; }
	.city-features-grid { grid-template-columns: 1fr; gap: 40px; }
	.city-feature + .city-feature { border-left: none; border-top: 1px solid var(--navy-sky); padding-top: 30px; }
	.city-cta { margin: 0 0 60px; border-radius: 0; padding: 40px 20px; }
}

/* ==========================================================================
   RESPONSIVE — 480px
   ========================================================================== */

@media (max-width: 480px) {
	.city-intro-content { padding: 30px 15px; }
	.city-product-card { padding: 20px 12px; }
	.city-cta-buttons { flex-direction: column; width: 100%; }
	.city-cta-buttons .btn { justify-content: center; }
	.city-feature-number { font-size: 48px; }
}

/* ==========================================================================
   RESPONSIVE — 359px
   ========================================================================== */

@media (max-width: 359px) {
	.city-products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
