/*
 * Opravix — homepage design layer.
 *
 * A clean, elegant front page in the spirit of the fixhomeservice site but
 * with Opravix's own palette (navy #212639 + lime green #8ec549) and its own
 * components. All classes are `opx-` prefixed so nothing clashes with the
 * Bootstrap-based bundle.css that styles the rest of the site.
 */

/* Design tokens (--opx-*) live in site.css :root, loaded site-wide. */
.opx {
	color: var(--opx-ink);
	background: var(--opx-white);
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.opx img { max-width: 100%; display: block; }

/* ── Layout primitives ─────────────────────────────────────────────── */
.opx-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
/* Content sections are light so dark text stays readable (the page body
   behind them is dark). Hero / strip / book / cta paint their own dark bg. */
.opx-section { padding: 84px 0; background: var(--opx-white); }
.opx-section--paper { background: var(--opx-paper); }

.opx-head { max-width: 880px; margin: 0 auto 56px; text-align: center; }
.opx-head--split {
	max-width: 100%; display: grid; grid-template-columns: 1.25fr 1fr;
	gap: 48px; align-items: end; text-align: left;
}
.opx-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 2.4px; color: var(--opx-green-d); margin-bottom: 16px;
}
.opx-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--opx-green); border-radius: 2px; }
.opx-eyebrow--light { color: #bfe39a; }
.opx-h2 {
	font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; line-height: 1.08;
	letter-spacing: -0.025em; color: var(--opx-ink); margin: 0;
}
.opx-accent { color: var(--opx-green-d); }
.opx-intro { font-size: 17px; line-height: 1.65; color: var(--opx-soft); }

/* Buttons (.opx-btn*) are defined in site.css. */

/* ── Hero ──────────────────────────────────────────────────────────── */
.opx-hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(120% 120% at 85% 0%, #2c3149 0%, #212639 55%);
}
.opx-hero::before {
	content: ""; position: absolute; top: -160px; right: -120px; width: 520px; height: 520px;
	background: radial-gradient(circle, rgba(142, 197, 73, 0.22), transparent 65%);
	pointer-events: none;
}
.opx-hero__inner {
	position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
	gap: 56px; align-items: center; padding: 96px 0 100px;
}
.opx-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 2.2px; color: #bfe39a; margin-bottom: 22px;
}
.opx-hero__eyebrow .opx-dot {
	width: 9px; height: 9px; border-radius: 50%; background: var(--opx-green);
	box-shadow: 0 0 0 5px rgba(142, 197, 73, 0.2);
}
.opx-hero__title {
	font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; line-height: 1.04;
	letter-spacing: -0.03em; margin: 0 0 22px;
}
.opx-hero__title .opx-accent { color: var(--opx-green); }
.opx-hero__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 0 28px; }
.opx-hero__bullets { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 32px; padding: 0; }
.opx-hero__bullets li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.opx-hero__bullets svg { width: 18px; height: 18px; color: var(--opx-green); flex-shrink: 0; }
.opx-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.opx-hero__media { position: relative; }
.opx-hero__media img {
	width: 100%; border-radius: var(--opx-r-xl); position: relative; z-index: 1;
}
.opx-hero__media::after {
	content: ""; position: absolute; inset: auto -14px -18px 30px; height: 70%;
	background: linear-gradient(135deg, rgba(142, 197, 73, 0.35), transparent);
	border-radius: var(--opx-r-xl); z-index: 0; filter: blur(6px);
}

/* ── Trust strip ───────────────────────────────────────────────────── */
.opx-strip { background: var(--opx-ink-2); border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.opx-strip__inner {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0;
	padding: 20px 0;
}
.opx-strip__item {
	display: inline-flex; align-items: center; gap: 11px; padding: 6px 32px; position: relative;
	color: rgba(255, 255, 255, 0.9); font-size: 15px; font-weight: 700;
}
.opx-strip__item:not(:first-child)::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 1px; height: 20px; background: rgba(255, 255, 255, 0.14);
}
.opx-strip__item svg { width: 18px; height: 18px; color: var(--opx-green); flex-shrink: 0; }
@media (max-width: 680px) {
	.opx-strip__item { padding: 6px 16px; font-size: 13.5px; }
	.opx-strip__item:not(:first-child)::before { display: none; }
}

/* ── Service cards ─────────────────────────────────────────────────── */
.opx-srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.opx-card {
	position: relative; display: flex; flex-direction: column; background: var(--opx-white);
	border: 1px solid var(--opx-line); border-radius: var(--opx-r-lg);
	padding: 30px 28px 32px; box-shadow: var(--opx-sh-1); transition: all var(--opx-t);
	color: inherit; text-decoration: none;
}
.opx-section--paper .opx-card { background: #fff; }
.opx-card:hover { transform: translateY(-4px); box-shadow: var(--opx-sh-3); border-color: #d6e6bf; }
.opx-card__icon {
	width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
	background: var(--opx-green-soft); margin-bottom: 20px;
}
.opx-card__icon img { width: 32px; height: 32px; }
.opx-card__title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--opx-ink); }
.opx-card__text { font-size: 15px; line-height: 1.6; color: var(--opx-soft); margin: 0 0 18px; }
/* Whole-card clickable via a stretched, transparent link. */
.opx-card__stretch { position: absolute; inset: 0; z-index: 1; border-radius: var(--opx-r-lg); }
.opx-card__more {
	margin-top: auto; padding-right: 34px; font-weight: 700; font-size: 14.5px; color: var(--opx-green-d);
}
/* Small, subtle diagonal arrow in the bottom-right corner. */
.opx-card__arrow {
	position: absolute; right: 26px; bottom: 30px; z-index: 2; pointer-events: none;
	width: 20px; height: 20px; color: var(--opx-green-d);
	transition: transform var(--opx-t), color var(--opx-t);
}
.opx-card__arrow svg { width: 20px; height: 20px; }
.opx-card:hover .opx-card__arrow { transform: translate(3px, -3px); color: var(--opx-green); }

/* ── Why / process ─────────────────────────────────────────────────── */
.opx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.opx-col__title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 26px; color: var(--opx-ink); }
.opx-steps { display: flex; flex-direction: column; gap: 22px; }
.opx-step { display: flex; gap: 18px; }
.opx-step__icon {
	flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
	font-size: 22px; background: var(--opx-green-soft); color: var(--opx-green-d);
}
.opx-step__title { font-size: 17px; font-weight: 800; margin: 2px 0 5px; color: var(--opx-ink); }
.opx-step__text { font-size: 14.5px; line-height: 1.6; color: var(--opx-soft); margin: 0; }
.opx-two--process .opx-step__icon { background: #fff; border: 1px solid var(--opx-line); }

/* ── Brands ────────────────────────────────────────────────────────── */
/* Brands block — centered head + a contained logo card with a scrolling
   marquee inside. The card (not a full-bleed band) reads as intentional. */
#znacky .opx-container { text-align: center; }
.opx-brands__intro { max-width: 720px; margin: 16px auto 0; font-size: 16px; line-height: 1.65; color: var(--opx-soft); }

.opx-marquee {
	margin: 48px auto 0; max-width: 1080px; overflow: hidden;
	background: #fff; border: 1px solid var(--opx-line); border-radius: var(--opx-r-lg);
	padding: 30px 0; box-shadow: var(--opx-sh-2);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.opx-marquee__track { display: flex; width: max-content; animation: opx-scroll 42s linear infinite; }
.opx-marquee:hover .opx-marquee__track { animation-play-state: paused; }
.opx-marquee__item { flex: 0 0 auto; display: grid; place-items: center; padding: 0 44px; }
.opx-marquee__item img { max-height: 38px; width: auto; filter: grayscale(1); opacity: 0.62; transition: all var(--opx-t); }
.opx-marquee__item img:hover { filter: none; opacity: 1; }
@keyframes opx-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .opx-marquee__track { animation: none; } }
@media (max-width: 680px) { .opx-marquee { margin-top: 32px; padding: 22px 0; } }

/* ── CTA band ──────────────────────────────────────────────────────── */
.opx-cta { position: relative; overflow: hidden; background: var(--opx-ink); color: #fff; }
.opx-cta::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(80% 140% at 100% 0%, rgba(142, 197, 73, 0.18), transparent 60%);
}
.opx-cta__inner {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 24px; padding: 64px 0;
}
.opx-cta__title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 8px; }
.opx-cta__sub { font-size: 16px; color: rgba(255, 255, 255, 0.8); margin: 0; }
.opx-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.opx-head--split { grid-template-columns: 1fr; gap: 16px; }
	.opx-srv-grid { grid-template-columns: repeat(2, 1fr); }
	.opx-brands__grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
	.opx-hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 76px; }
	.opx-hero__media { max-width: 460px; }
	.opx-two { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
	.opx-section { padding: 60px 0; }
	.opx-container { padding: 0 18px; }
	.opx-srv-grid { grid-template-columns: 1fr; }
	.opx-brands__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px; }
	.opx-cta__inner { padding: 48px 0; }
}

/* ════════════════ Service page + Kontakt info (opx) ════════════════ */
.opx-container--narrow { max-width: 880px; }

/* Faults reuse .opx-card but are static (no link / no arrow). */
.opx-card--static { padding-bottom: 30px; cursor: default; }
.opx-card--static:hover { transform: none; box-shadow: var(--opx-sh-1); border-color: var(--opx-line); }

/* Appliance types grid. */
.opx-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.opx-type { background: #fff; border: 1px solid var(--opx-line); border-radius: var(--opx-r); padding: 24px; box-shadow: var(--opx-sh-1); }
.opx-type__title { font-size: 17px; font-weight: 800; margin: 0 0 8px; color: var(--opx-ink); }
.opx-type__text { font-size: 14.5px; line-height: 1.6; color: var(--opx-soft); margin: 0; }

/* Error-code accordion (native <details>). */
.opx-acc { display: flex; flex-direction: column; gap: 12px; }
.opx-acc__item { background: #fff; border: 1px solid var(--opx-line); border-radius: var(--opx-r); box-shadow: var(--opx-sh-1); overflow: hidden; }
.opx-acc__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--opx-ink); list-style: none; }
.opx-acc__head::-webkit-details-marker { display: none; }
.opx-acc__head svg { width: 20px; height: 20px; color: var(--opx-green-d); flex-shrink: 0; }
.opx-acc__title { flex: 1; }
.opx-acc__chev { width: 9px; height: 9px; border-right: 2px solid var(--opx-soft); border-bottom: 2px solid var(--opx-soft); transform: rotate(45deg); transition: transform var(--opx-t); flex-shrink: 0; }
.opx-acc__item[open] .opx-acc__chev { transform: rotate(-135deg); }
.opx-acc__body { padding: 0 22px 20px; }
.opx-acc__list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.opx-acc__list li { font-size: 14.5px; line-height: 1.55; color: var(--opx-soft); }
.opx-acc__list strong { color: var(--opx-ink); }
.opx-acc__cta { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--opx-green-d); }
.opx-acc__cta svg { width: 15px; height: 15px; }

/* Kontakt info cards (light). */
.opx-kinfo__title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 22px; color: var(--opx-ink); }
.opx-kinfo__cards { display: flex; flex-direction: column; gap: 12px; }
.opx-kcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--opx-line); border-radius: var(--opx-r); box-shadow: var(--opx-sh-1); text-decoration: none; transition: all var(--opx-t); }
.opx-kcard:not(.opx-kcard--static):hover { transform: translateY(-2px); box-shadow: var(--opx-sh-2); border-color: #d6e6bf; }
.opx-kcard__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--opx-green-soft); color: var(--opx-green-d); flex-shrink: 0; }
.opx-kcard__icon svg { width: 20px; height: 20px; }
.opx-kcard__meta { display: flex; flex-direction: column; }
.opx-kcard__label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--opx-soft); }
.opx-kcard__value { font-size: 16px; font-weight: 700; color: var(--opx-ink); line-height: 1.35; }
.opx-kinfo__billing { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--opx-line); }
.opx-kinfo__billing h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--opx-soft); margin: 0 0 8px; }
.opx-kinfo__billing p { font-size: 15px; line-height: 1.7; color: var(--opx-ink); margin: 0; }

@media (max-width: 900px) { .opx-types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .opx-types { grid-template-columns: 1fr; } }

/* ════════════════ Why-us cards + Process steps ════════════════ */
.opx-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.opx-why__card {
	position: relative; border-radius: var(--opx-r-lg); overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-start;
	background: linear-gradient(155deg, #2c3149 0%, #1a1f30 100%); background-size: cover; background-position: center;
	box-shadow: var(--opx-sh-2);
}
.opx-why__card::after { content: ""; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(142, 197, 73, 0.28), transparent 70%); pointer-events: none; }
/* Photo variant: image fills the card, text sits in a bottom gradient. */
.opx-why__card--photo { min-height: 340px; justify-content: flex-end; }
.opx-why__card--photo::after { display: none; }
.opx-why__overlay { display: none; }
.opx-why__card--photo .opx-why__overlay { display: block; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 24, 37, 0.95) 0%, rgba(20, 24, 37, 0.55) 48%, rgba(20, 24, 37, 0.1) 100%); }
.opx-why__content { position: relative; padding: 32px; color: #fff; }
.opx-why__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(142, 197, 73, 0.16); font-size: 26px; margin-bottom: 22px; }
.opx-why__card--photo .opx-why__icon { display: none; }
.opx-why__badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50rem; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 16px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.opx-why__num { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--opx-green); margin-bottom: 8px; }
.opx-why__title { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 9px; line-height: 1.2; }
.opx-why__text { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); margin: 0; }

.opx-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.opx-process__step { position: relative; background: #fff; border: 1px solid var(--opx-line); border-radius: var(--opx-r-lg); padding: 30px 26px; box-shadow: var(--opx-sh-1); }
.opx-process__num { position: absolute; top: 20px; right: 26px; font-size: 32px; font-weight: 800; color: #e8efe0; line-height: 1; }
.opx-process__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: var(--opx-green-soft); margin-bottom: 18px; }
.opx-process__title { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--opx-ink); }
.opx-process__text { font-size: 14.5px; line-height: 1.6; color: var(--opx-soft); margin: 0; }

/* ════════════════ Brand tiles (styled text) + prose ════════════════ */
.opx-brands-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.opx-brand-tile {
	display: grid; place-items: center; min-height: 84px; padding: 20px 12px; text-align: center;
	background: #fff; border: 1px solid var(--opx-line); border-radius: var(--opx-r);
	font-size: 19px; color: var(--opx-ink); text-decoration: none; transition: all var(--opx-t);
}
.opx-brand-tile:hover { background: var(--opx-ink); color: #fff; transform: translateY(-2px); box-shadow: var(--opx-sh-2); }

.opx-prose { font-size: 16px; line-height: 1.7; color: var(--opx-ink); }
.opx-prose h2 { font-size: 26px; font-weight: 800; margin: 28px 0 12px; }
.opx-prose h3 { font-size: 20px; font-weight: 800; margin: 22px 0 10px; }
.opx-prose p { margin: 0 0 16px; color: var(--opx-soft); }
.opx-prose a { color: var(--opx-green-d); font-weight: 600; }
.opx-prose ul, .opx-prose ol { margin: 0 0 16px 20px; color: var(--opx-soft); }
