/*
 * GruzoPerevoz custom styles: blog archive, single article, FAQ accordion,
 * service-card "read more" links.
 *
 * Colour/typography tokens come from the site's Elementor Kit, with the kit's
 * literal values as fallbacks so the design survives the kit being reset.
 */

:root {
	--gp-primary: var(--e-global-color-primary, #4B4AEF);
	--gp-ink: var(--e-global-color-secondary, #323232);
	--gp-muted: var(--e-global-color-text, #323232B3);
	--gp-surface: var(--e-global-color-889ecbc, #F7F7FF);
	--gp-radius: 14px;
	--gp-shadow: 0 4px 20px rgba(50, 50, 50, .08);
	--gp-shadow-hover: 0 10px 28px rgba(50, 50, 50, .14);
}

.gp-wrap {
	max-width: 1170px;
	margin: 0 auto;
	padding: 60px 20px;
}

/* ---------------------------------------------------------------- badges */

.gp-category-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 30px;
	background: var(--gp-primary);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .3px;
	text-decoration: none;
	line-height: 1.4;
}

.gp-category-badge:hover {
	opacity: .85;
}

/* ---------------------------------------------------------- blog header */

.gp-blog-header {
	text-align: center;
	margin-bottom: 44px;
}

.gp-blog-header h1 {
	margin: 0 0 14px;
}

.gp-blog-intro {
	max-width: 640px;
	margin: 0 auto;
	color: var(--gp-muted);
	font-size: 17px;
	line-height: 1.6;
}

.gp-blog-intro p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------ card grid */

.gp-blog-grid {
	display: grid;
	/* auto-fill + minmax keeps a short page (2 posts) from leaving a hole
	   where the third column would be, and still gives 3 columns once there
	   are enough articles to fill them. */
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 32px;
	margin-bottom: 48px;
}

.gp-blog-card {
	background: #fff;
	border-radius: var(--gp-radius);
	overflow: hidden;
	box-shadow: var(--gp-shadow);
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}

.gp-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--gp-shadow-hover);
}

.gp-blog-card-img {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--gp-surface);
}

.gp-blog-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.gp-blog-card:hover .gp-blog-card-img img {
	transform: scale(1.06);
}

.gp-blog-card-img .gp-category-badge {
	position: absolute;
	top: 14px;
	left: 14px;
}

.gp-blog-card-body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gp-blog-card-date {
	font-size: 13px;
	color: var(--gp-muted);
	margin-bottom: 8px;
	display: block;
}

h2.gp-blog-card-title,
.gp-blog-grid h2.gp-blog-card-title {
	font-size: 20px !important;
	line-height: 1.3 !important;
	margin: 0 0 10px;
}

.gp-blog-card-title a {
	color: var(--gp-ink);
	text-decoration: none;
}

.gp-blog-card-title a:hover {
	color: var(--gp-primary);
}

.gp-blog-card-excerpt {
	font-size: 15px;
	line-height: 1.55;
	color: var(--gp-muted);
	margin: 0 0 16px;
	flex: 1;
}

.gp-blog-card-more {
	color: var(--gp-primary);
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
}

.gp-blog-card-more:hover {
	text-decoration: underline;
}

/* ----------------------------------------------------------- pagination */

.gp-blog-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0 0 56px;
	flex-wrap: wrap;
}

.gp-blog-pagination a,
.gp-blog-pagination span {
	min-width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	color: var(--gp-ink);
	background: #fff;
	box-shadow: 0 2px 8px rgba(50, 50, 50, .08);
	padding: 0 6px;
}

.gp-blog-pagination a:hover {
	background: var(--gp-surface);
}

.gp-blog-pagination span.current {
	background: var(--gp-primary);
	color: #fff;
}

/* ------------------------------------------------------- category pills */

.gp-blog-categories {
	text-align: center;
	padding: 36px 20px;
	background: var(--gp-surface);
	border-radius: 16px;
	margin-bottom: 32px;
}

.gp-blog-categories h2 {
	margin: 0 0 16px;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--gp-ink);
}

.gp-category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.gp-category-pill {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 18px;
	border-radius: 30px;
	background: #fff;
	color: var(--gp-ink) !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(50, 50, 50, .08);
	transition: background .2s ease, color .2s ease;
}

.gp-category-pill:hover,
.gp-category-pill.is-current {
	background: var(--gp-primary);
	color: #fff !important;
}

.gp-blog-description {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	color: var(--gp-muted);
	font-size: 15px;
	line-height: 1.65;
}

.gp-blog-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--gp-muted);
}

/* -------------------------------------------------------- single article */

.gp-article-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: -8px 0 20px;
}

.gp-article-date {
	font-size: 14px;
	color: var(--gp-muted);
}

.gp-article-hero {
	margin: 0 0 28px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(50, 50, 50, .1);
}

.gp-article-hero img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	display: block;
}

.gp-article-wrap {
	max-width: 820px;
}

.gp-article-wrap h1 {
	margin-bottom: 6px;
}

.gp-article-body {
	max-width: 100%;
}

.gp-article-body a {
	color: var(--gp-primary);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(75, 74, 239, .35);
}

.gp-article-body a:hover {
	text-decoration-color: currentColor;
}

.gp-article-body h2 {
	margin-top: 40px;
}

.gp-article-body ul,
.gp-article-body ol {
	padding-left: 22px;
}

.gp-article-body li {
	margin-bottom: 6px;
}

/* --------------------------------------------------------- FAQ accordion */

/* Standalone /faq/ pages: the theme template gives them no container, so the
   heading needs one here or it sits flush against the viewport edge. */
.gp-faq-page {
	max-width: 860px;
	margin: 0 auto;
	padding: 60px 20px 20px;
}

.gp-faq-page > h1 {
	text-align: center;
	margin: 0 0 16px;
}

.gp-faq-page .gp-faq {
	margin-top: 40px;
	padding: 0;
}

.gp-faq {
	max-width: 820px;
	margin: 60px auto;
	padding: 0 20px;
}

.gp-faq h2 {
	text-align: center;
	margin-bottom: 28px;
}

.gp-faq-intro {
	max-width: 640px;
	margin: 0 auto 32px;
	text-align: center;
	color: var(--gp-muted);
	font-size: 17px;
	line-height: 1.6;
}

.gp-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gp-faq-item {
	background: #fff;
	border-radius: 12px;
	padding: 4px 22px;
	box-shadow: 0 2px 12px rgba(50, 50, 50, .07);
}

.gp-faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 34px 18px 0;
	font-weight: 600;
	font-size: 16px;
	color: var(--gp-ink);
	position: relative;
}

.gp-faq-item summary::-webkit-details-marker {
	display: none;
}

.gp-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 400;
	color: var(--gp-primary);
	line-height: 1;
}

.gp-faq-item[open] summary::after {
	content: "−";
}

/* Keyboard users need to see which question has focus - the default outline
   is suppressed by the theme's reset on summary elements. */
.gp-faq-item summary:focus-visible {
	outline: 2px solid var(--gp-primary);
	outline-offset: 3px;
	border-radius: 6px;
}

.gp-faq-answer {
	padding: 0 0 20px;
	color: var(--gp-muted);
	font-size: 15px;
	line-height: 1.6;
}

.gp-faq-answer p {
	margin: 0;
}

/* --------------------------------------------- service card "read more" */

.card-read-more {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
	color: var(--gp-primary);
	text-decoration: none;
}

.card-read-more:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {

	.gp-blog-card,
	.gp-blog-card-img img,
	.gp-category-pill {
		transition: none;
	}

	.gp-blog-card:hover {
		transform: none;
	}

	.gp-blog-card:hover .gp-blog-card-img img {
		transform: none;
	}
}
