/* Heyri "About Us (Factory & Products)" page template — scoped to the .ab-* classes only. */

/* ---------- Hero ---------- */
.ab-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 460px;
	padding: 90px 0;
	background-color: #0f3d1c;
	background-position: center;
	background-size: cover;
}
.ab-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 46, 22, .82) 0%, rgba(11, 46, 22, .55) 55%, rgba(11, 46, 22, .25) 100%);
}
.ab-hero-inner { position: relative; z-index: 2; }
.ab-hero-title {
	margin: 0 0 18px;
	max-width: 720px;
	font-family: var(--font-title);
	font-size: clamp(32px, 4.4vw, 52px);
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
}
.ab-hero-lead {
	margin: 0 0 30px;
	max-width: 640px;
	font-size: 17px;
	line-height: 1.7;
	color: #eaf5ea;
}
.ab-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.ab-btn {
	display: inline-block;
	padding: 13px 30px;
	border-radius: var(--radius);
	font-family: var(--font-title);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	text-align: center;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ab-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ab-btn-solid { background: var(--lime-grad); color: #fff; }
.ab-btn-solid:hover { color: #fff; box-shadow: var(--shadow-md); }
.ab-btn-line { border: 2px solid #fff; color: #fff; }
.ab-btn-line:hover { background: #fff; color: var(--lime-dark); }

/* ---------- Shared ---------- */
.ab-h2 {
	margin: 0 0 18px;
	font-family: var(--font-title);
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.3;
	font-weight: 700;
	color: var(--ink);
}
.ab-lead {
	margin: 0 auto 40px;
	max-width: 760px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--body);
}
.ab-center { text-align: center; }
.ab-split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: 56px;
}
.ab-split-text p {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.85;
	color: var(--body);
}
.ab-split-text .ab-btn { margin-top: 12px; }
.ab-split-media { margin: 0; }
.ab-split-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

/* ---------- Intro ---------- */
.ab-intro { padding: 84px 0; }

/* ---------- Stats ---------- */
.ab-stats { padding: 0 0 84px; }
.ab-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding: 40px 32px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.ab-stat { text-align: center; }
.ab-stat-num {
	display: block;
	margin-bottom: 8px;
	font-family: var(--font-title);
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 800;
	line-height: 1.15;
	color: var(--lime-dark);
}
.ab-stat-label {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: var(--body);
}

/* ---------- Workshop photos ---------- */
.ab-workshop { padding: 0 0 84px; }
.ab-photo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.ab-photo {
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}
.ab-photo img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform .35s ease;
}
.ab-photo:hover img { transform: scale(1.05); }
.ab-photo figcaption {
	padding: 14px 16px;
	font-family: var(--font-title);
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
	text-align: center;
}

/* ---------- Material lines ---------- */
.ab-materials { padding: 0 0 84px; }
.ab-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ab-card {
	display: block;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}
.ab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ab-card-media { display: block; background: var(--cream); }
.ab-card-media img {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: cover;
}
.ab-card-title {
	display: block;
	padding: 16px 18px 4px;
	font-family: var(--font-title);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
}
.ab-card:hover .ab-card-title { color: var(--lime-dark); }
.ab-card-meta {
	display: block;
	padding: 0 18px 18px;
	font-size: 13px;
	color: var(--body);
}

/* ---------- Latest products ---------- */
.ab-products { padding: 0 0 84px; }
.ab-prod-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-bottom: 40px;
}
.ab-prod {
	display: block;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}
.ab-prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ab-prod-media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	background: var(--cream);
}
.ab-prod-media img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}
.ab-prod-title {
	display: block;
	padding: 14px 16px 18px;
	min-height: 76px;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--ink);
}
.ab-prod:hover .ab-prod-title { color: var(--lime-dark); }
.ab-more { text-align: center; }

/* ---------- Why ---------- */
.ab-why { padding: 0 0 84px; }
.ab-why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ab-why-item {
	padding: 28px 26px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.ab-why-title {
	margin: 0 0 10px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--lime);
	font-family: var(--font-title);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
}
.ab-why-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.75;
	color: var(--body);
}

/* ---------- Certificates ---------- */
.ab-certs { padding: 0 0 84px; }
.ab-cert-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.ab-cert {
	margin: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}
.ab-cert img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	object-position: top center;
	padding: 12px;
}
.ab-cert figcaption {
	padding: 0 14px 16px;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--ink);
	text-align: center;
}

/* ---------- Visits ---------- */
.ab-visits { padding: 0 0 84px; }
.ab-visits .ab-split { direction: ltr; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ab-split { grid-template-columns: 1fr; gap: 32px; }
	.ab-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.ab-photo-grid,
	.ab-card-grid,
	.ab-why-grid { grid-template-columns: repeat(2, 1fr); }
	.ab-prod-grid,
	.ab-cert-grid { grid-template-columns: repeat(2, 1fr); }
	.ab-visits .ab-split-media { order: 0; }
	.ab-visits .ab-split-text { order: 1; }
}

@media (max-width: 560px) {
	.ab-hero { min-height: 0; padding: 64px 0; }
	.ab-stats-grid,
	.ab-photo-grid,
	.ab-card-grid,
	.ab-why-grid,
	.ab-prod-grid,
	.ab-cert-grid { grid-template-columns: 1fr; }
	.ab-hero-actions .ab-btn { width: 100%; }
	.ab-cert img { height: 200px; }
}
