/* Additions made after the port.
   assets/css/style.css is a verbatim copy of the static build and stays
   untouched; new component variants live here instead. */

/* Portrait product photos (memorial candles) in .cat cards.
   .cat__media crops to 4:3, which cuts the lid and base off a tall candle.
   Mirrors what .prod__media--tall already does for the .prod rows. */
.cat__media--tall img,
.cat__media--icon.cat__media--tall {
	aspect-ratio: 3 / 4;
}

.cat__media--tall img {
	object-position: center;
}

/* A second hero card (memorial candles) stacked under the "Machinery" card.
   It reuses .hero__card for size, layout and glass styling; this modifier
   only moves it from bottom:-11% to just below the first card. On small
   phones style.css already turns every .hero__card static, so it falls into
   place there without help. */
/* Same height as the card above: from 431px up its description wraps to
   three lines and this one to two, so reserve three (line-height 1.35 from
   .hero__card-v). Below that both wrap to two and need no help. */
@media (min-width: 431px) {
	.hero__card--stack .hero__card-v {
		min-height: calc(3 * 1.35em);
	}

	.hero__card--stack {
		top: calc(111% + 12px);
		bottom: auto;
	}
}

@media (min-width: 431px) and (max-width: 1023px) {
	.hero__card--stack {
		top: calc(100% + 34px + 12px);
	}

	/* The single-column hero only reserves bottom room for one card;
	   add the second card's height plus its gap so it clears the ticker. */
	.hero__inner {
		padding-bottom: calc(clamp(76px, 14vw, 120px) + 150px);
	}
}

/* FAQ accordion (page "Συχνές ερωτήσεις"). Sits inside .legal for width and type. */
.faq-group + .faq-group { margin-top: clamp(36px, 4vw, 56px); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: baseline; gap: 1em;
	padding: 1.05em 0; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; flex: none; font-weight: 600; color: var(--primary-ink);
	transition: transform .25s var(--ease-out);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: var(--r-xs); }
.faq__a { padding: 0 0 1.2em; color: var(--color-muted); }

/* Touch devices: the material cards revealed their hex badge on :hover
   (opacity 0 → 1). iOS Safari treats that as hover-revealed content and
   swallows the first tap, so the card link needed a second tap. Keep the
   badge in its resting state where there is no real hover. */
@media (hover: none) {
	.mat-card__link:hover .mat-card__hex { opacity: 0; transform: translateY(-6px) scale(.8); }
}

/* Company video: the theme's hexagon play button over a self-hosted <video>.
   A soft hexagon halo pulses behind the icon until the video is started. */
.video video.video__frame { object-fit: cover; background: var(--ink); }
.video__iconwrap { position: relative; display: grid; place-items: center; }
.video__ring {
	position: absolute; inset: 0;
	background: var(--color-primary);
	clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
	opacity: .45;
	animation: eltek-video-pulse 2.4s var(--ease-out) infinite;
}
@keyframes eltek-video-pulse {
	0%   { transform: scale(1);    opacity: .45; }
	70%  { transform: scale(1.55); opacity: 0; }
	100% { transform: scale(1.55); opacity: 0; }
}
.video__play .video__label {
	padding: .5em 1.1em;
	border-radius: var(--r-pill);
	background: rgba(43,41,43,.45);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: reduce) {
	.video__ring { animation: none; opacity: 0; }
}

/* Company video: custom control bar (assets/js/video.js) in the site's style,
   instead of the browser's own controls. */
.video__bar {
	position: absolute; left: clamp(10px, 2vw, 18px); right: clamp(10px, 2vw, 18px); bottom: clamp(10px, 2vw, 18px);
	z-index: 2;
	display: flex; align-items: center; gap: clamp(4px, 1vw, 10px);
	padding: 6px clamp(8px, 1.4vw, 14px);
	border-radius: var(--r-pill);
	background: rgba(43,41,43,.55);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	color: #fff;
	transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
}
.video.is-idle .video__bar { opacity: 0; transform: translateY(6px); pointer-events: none; }
.video.is-idle { cursor: none; }
.video.is-started video { cursor: pointer; }

.video__btn {
	flex: none; width: 38px; height: 38px;
	display: grid; place-items: center;
	border-radius: 50%;
	color: inherit; background: transparent;
	transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.video__btn svg { width: 20px; height: 20px; fill: currentColor; }
.video__btn:hover { background: rgba(255,255,255,.14); color: var(--color-secondary); }
.video__btn:focus-visible,
.video__track:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.video__track {
	position: relative; flex: 1 1 auto; height: 6px;
	border-radius: var(--r-pill);
	background: rgba(255,255,255,.28);
	cursor: pointer; touch-action: none;
}
.video__track::before { content: ""; position: absolute; inset: -12px 0; } /* larger hit area */
.video__fill {
	position: absolute; inset: 0 auto 0 0; width: 0;
	border-radius: inherit;
	background: var(--color-primary);
}
.video__fill::after {
	content: ""; position: absolute; right: -6px; top: 50%;
	width: 12px; height: 12px; margin-top: -6px;
	border-radius: 50%; background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.video__time {
	flex: none; font-size: .8rem; font-weight: 600;
	font-variant-numeric: tabular-nums; letter-spacing: .01em;
	opacity: .9; padding-inline: 2px;
}
@media (max-width: 420px) { .video__time { display: none; } }

.video:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; background: #000; }
.video:fullscreen video.video__frame { object-fit: contain; background: #000; }

/* Footer credit next to the copyright: same hover as the legal links. */
.site-footer__bottom p a { transition: color var(--t-fast) var(--ease-out); }
.site-footer__bottom p a:hover { color: var(--color-secondary); }
