/*
 * Opravix — site-wide design layer (loaded on every page).
 *
 * Holds the shared design tokens (so the footer + booking form can use them
 * outside the homepage `.opx` wrapper), the reusable booking-form section,
 * and the redesigned footer. Homepage-only components live in home.css.
 */

:root {
	--opx-ink: #212639;
	--opx-ink-2: #2b3048;
	--opx-ink-3: #181c2b;
	--opx-green: #8ec549;
	--opx-green-d: #6fa531;
	--opx-green-soft: #e8f3db;
	--opx-paper: #f5f8f1;
	--opx-line: #e4e8de;
	--opx-soft: #5c6175;
	--opx-white: #ffffff;

	--opx-sh-1: 0 1px 2px rgba(33, 38, 57, 0.06);
	--opx-sh-2: 0 10px 30px rgba(33, 38, 57, 0.08);
	--opx-sh-3: 0 24px 60px rgba(33, 38, 57, 0.14);

	--opx-r: 16px;
	--opx-r-lg: 26px;
	--opx-r-xl: 36px;
	--opx-pill: 999px;
	--opx-t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kill horizontal page scroll from any full-bleed element. `clip` (unlike
   hidden/auto) does NOT create a scroll container, so the sticky header
   keeps working. */
html, body { overflow-x: clip; }

/* Single light theme — a soft near-white page background (not stark white,
   not dark). Loaded after bundle.css so it wins over the Bootstrap default. */
body { background-color: #f5f7f2; }

/* Shared layout container — defined here (site-wide) because the header,
   footer and booking section use it on EVERY page, not just the homepage. */
.opx-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 680px) { .opx-container { padding: 0 18px; } }

/* ── Shared buttons (also usable outside .opx) ─────────────────────── */
.opx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 28px; font-size: 15px; font-weight: 700; line-height: 1;
	border-radius: var(--opx-pill); transition: all var(--opx-t); cursor: pointer;
	border: 1.6px solid transparent; letter-spacing: -0.005em; text-decoration: none;
}
.opx-btn svg { width: 16px; height: 16px; }
.opx-btn--primary { background: var(--opx-green); color: #14210a; }
.opx-btn--primary:hover { background: var(--opx-green-d); color: #fff; transform: translateY(-1px); }
.opx-btn--ghost { background: transparent; color: var(--opx-ink); border-color: rgba(33, 38, 57, 0.2); }
.opx-btn--ghost:hover { border-color: var(--opx-ink); }
.opx-btn--light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.opx-btn--light:hover { background: rgba(255, 255, 255, 0.2); }
.opx-btn--xl { padding: 18px 34px; font-size: 16px; }

/* ── Booking section — CTA text + form in one block (home + services) ─ */
.opx-book { position: relative; overflow: hidden; background: var(--opx-ink); color: #fff; padding: 88px 0; }
.opx-book::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(70% 130% at 100% 0%, rgba(142, 197, 73, 0.18), transparent 55%);
}
/* Light variant (e.g. Kontakt) — same grid/sizing, light background. */
.opx-book--light { background: var(--opx-paper); color: var(--opx-ink); }
.opx-book--light::before { display: none; }
.opx-book__grid {
	position: relative; display: grid; grid-template-columns: 1fr 1.05fr;
	gap: 56px; align-items: center;
}
.opx-book__eyebrow {
	display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 2.4px; color: #bfe39a; margin-bottom: 16px;
}
.opx-book__eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--opx-green); border-radius: 2px; }
.opx-book__title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; }
.opx-book__title .opx-accent { color: var(--opx-green); }
.opx-book__sub { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.8); margin: 0 0 24px; max-width: 460px; }
.opx-book__bullets { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.opx-book__bullets li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.opx-book__bullets svg { width: 20px; height: 20px; color: var(--opx-green); flex-shrink: 0; }

/* Rectangular contact blocks (phone + e-mail) inside the booking intro. */
.opx-book__contacts { display: flex; flex-wrap: wrap; gap: 14px; }
.opx-contact {
	display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-width: 220px;
	background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px; transition: all var(--opx-t); text-decoration: none;
}
.opx-contact:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(142, 197, 73, 0.55); transform: translateY(-2px); }
.opx-contact__icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(142, 197, 73, 0.16); color: var(--opx-green); flex-shrink: 0; }
.opx-contact__icon svg { width: 20px; height: 20px; }
.opx-contact__meta { display: flex; flex-direction: column; line-height: 1.25; }
.opx-contact__label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255, 255, 255, 0.55); }
.opx-contact__value { font-size: 16px; font-weight: 800; color: #fff; }
.opx-book__card {
	background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--opx-r-xl); padding: 30px; box-shadow: var(--opx-sh-3);
}
.opx-book__card .row { --bs-gutter-y: 0.75rem; }
.opx-book__card-eyebrow { display: block; font-size: 13px; font-weight: 700; color: #bfe39a; margin-bottom: 18px; }
@media (max-width: 900px) { .opx-book__grid { grid-template-columns: 1fr; gap: 36px; } }

/* CF7 form styled for the dark booking card (independent of Bootstrap theme) */
.opx-bookform .wpcf7-form .row,
.opx-bookform .wpcf7-form > .row { margin: 0; }
.opx-bookform .form-label {
	display: block; color: rgba(255, 255, 255, 0.62); font-weight: 700; font-size: 11.5px;
	letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px;
}
.opx-bookform .form-label .req { color: var(--opx-green); }
.opx-bookform .form-control,
.opx-bookform .form-select {
	background-color: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.13);
	color: #fff; border-radius: 12px; padding: .68rem 1.05rem;
}
.opx-bookform textarea.form-control { border-radius: 12px; min-height: 96px; }
.opx-bookform .form-control::placeholder { color: rgba(255, 255, 255, 0.45); }
.opx-bookform .form-select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238ec549' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3e%3cpath d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 15px 15px; padding-right: 2.6rem;
}
.opx-bookform .form-select option { background: var(--opx-ink); color: #fff; }
.opx-bookform .form-control:focus,
.opx-bookform .form-select:focus {
	background-color: rgba(255, 255, 255, 0.1); border-color: var(--opx-green);
	box-shadow: 0 0 0 0.2rem rgba(142, 197, 73, 0.2); color: #fff;
}
.opx-bookform .form-check-label, .opx-bookform .form-check-label a { color: rgba(255, 255, 255, 0.8); }
.opx-bookform .form-check-input { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); border-radius: .35rem; }
.opx-bookform .form-check-input:checked { background-color: var(--opx-green); border-color: var(--opx-green); }
.opx-bookform .opx-submit,
.opx-bookform .wpcf7-submit,
.opx-bookform input[type="submit"] {
	width: 100%; margin-top: 4px; background: #fff; color: var(--opx-ink); border: none; cursor: pointer;
	font-weight: 800; border-radius: 50rem; padding: 1rem 2rem; font-size: 16px; transition: all var(--opx-t);
}
.opx-bookform .opx-submit:hover,
.opx-bookform .wpcf7-submit:hover { background: var(--opx-green); color: #14210a; transform: translateY(-1px); }
.opx-bookform .wpcf7-not-valid-tip { color: #ffb3a7; font-size: .85rem; margin-top: 4px; }
.opx-bookform .wpcf7-response-output { border-radius: 1rem; margin: 1rem 0 0; padding: .75rem 1.25rem; color: #fff; }
/* Keep the label↔input gap tight (CF7 autop is off, but reset any stray <p>). */
.opx-bookform .wpcf7-form p { margin: 0; }
.opx-bookform .wpcf7-form-control-wrap { display: block; }
/* iOS Safari zooms the page when a focused input is < 16px — force 16px on mobile. */
@media (max-width: 768px) {
	.opx-bookform .form-control,
	.opx-bookform .form-select,
	.opx-bookform textarea.form-control { font-size: 16px; }
}
.opx-book__fallback { color: rgba(255, 255, 255, 0.85); text-align: center; }
.opx-book__fallback a { color: var(--opx-green); font-weight: 700; }

/* ── Booking form — LIGHT variant (v2, for light sections like Kontakt) ─ */
.opx-book__card--light {
	background: #fff; border: 1px solid var(--opx-line); box-shadow: var(--opx-sh-2); backdrop-filter: none;
}
.opx-bookform--light .form-label { color: var(--opx-soft); }
.opx-bookform--light .form-label .req { color: var(--opx-green-d); }
.opx-bookform--light .form-control,
.opx-bookform--light .form-select {
	background-color: #fff; border: 1.5px solid #dde2d6; color: var(--opx-ink);
}
.opx-bookform--light .form-control::placeholder { color: #9aa0ac; }
.opx-bookform--light .form-select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236fa531' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3e%3cpath d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 15px 15px; padding-right: 2.6rem;
}
.opx-bookform--light .form-select option { background: #fff; color: var(--opx-ink); }
.opx-bookform--light .form-control:focus,
.opx-bookform--light .form-select:focus {
	background-color: #fff; border-color: var(--opx-green); box-shadow: 0 0 0 0.2rem rgba(142, 197, 73, 0.18); color: var(--opx-ink);
}
.opx-bookform--light .form-check-label { color: var(--opx-soft); }
.opx-bookform--light .form-check-label a { color: var(--opx-green-d); }
.opx-bookform--light .form-check-input { background-color: #fff; border-color: #cdd3c5; }
.opx-bookform--light .form-check-input:checked { background-color: var(--opx-green); border-color: var(--opx-green); }
.opx-bookform--light .opx-submit,
.opx-bookform--light .wpcf7-submit,
.opx-bookform--light input[type="submit"] { background: var(--opx-ink); color: #fff; }
.opx-bookform--light .opx-submit:hover,
.opx-bookform--light .wpcf7-submit:hover,
.opx-bookform--light input[type="submit"]:hover { background: var(--opx-green); color: #14210a; }
.opx-bookform--light .wpcf7-response-output { color: var(--opx-ink); }

/* ── Header ────────────────────────────────────────────────────────── */
.opx-header {
	position: sticky; top: 0; z-index: 1030;
	/* Solid background so the header looks identical on every page,
	   regardless of the content behind it (dark hero vs light page). */
	background: var(--opx-ink-3);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: box-shadow var(--opx-t);
}
.opx-header.is-scrolled { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3); }
.opx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.opx-header a { text-decoration: none; }
.opx-header__brand { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.01em; line-height: 1; }
.opx-header__brand b { color: var(--opx-green); }
.opx-header__nav { display: flex; align-items: center; gap: 30px; }
.opx-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.opx-menu li { position: relative; }
.opx-menu a { position: relative; display: inline-block; color: rgba(255, 255, 255, 0.78); font-weight: 600; font-size: 15px; padding: 8px 0; transition: color var(--opx-t); }
.opx-menu a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--opx-green); border-radius: 2px; transition: width var(--opx-t); }
.opx-menu a:hover { color: #fff; }
.opx-menu a:hover::after { width: 100%; }
.opx-menu .current-menu-item > a, .opx-menu .current_page_item > a, .opx-menu .current-menu-parent > a { color: #fff; }
.opx-menu .current-menu-item > a::after, .opx-menu .current_page_item > a::after, .opx-menu .current-menu-parent > a::after { width: 100%; }
.opx-header__cta {
	padding: 11px 22px; font-size: 14.5px; font-weight: 700; box-shadow: none;
	background: var(--opx-green); color: #14210a; border: none; border-radius: 6px;
	display: inline-flex; align-items: center; gap: 8px;
}
.opx-header__cta svg { width: 15px; height: 15px; transition: transform var(--opx-t); }
.opx-header__cta:hover { background: var(--opx-green-d); color: #fff; transform: none; }
.opx-header__cta:hover svg { transform: translateX(3px); }
.opx-header__actions { display: flex; align-items: center; gap: 12px; }
.opx-header__call, .opx-header__call-label { display: none; }

.opx-header__toggle {
	display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
	width: 44px; height: 44px; background: none; border: none; padding: 0; cursor: pointer; position: relative; z-index: 1041;
}
.opx-header__toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform var(--opx-t), opacity var(--opx-t); }

@media (max-width: 900px) {
	.opx-header__toggle { display: flex; }

	/* Full-screen overlay menu (slides in from the right, below the bar). */
	.opx-header__nav {
		position: fixed; top: 74px; left: 0; right: 0; bottom: 0; z-index: 1038;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--opx-ink-3); padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
		overflow-y: auto; transform: translateX(100%); opacity: 0; visibility: hidden;
		transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.3s;
	}
	.opx-header.is-open .opx-header__nav { transform: none; opacity: 1; visibility: visible; }

	.opx-menu { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
	.opx-menu li { position: relative; }
	.opx-menu a {
		display: flex; align-items: center; justify-content: space-between;
		padding: 18px 22px; font-size: 18px; font-weight: 700; color: #fff;
		background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
	}
	.opx-menu a::after { content: ""; position: static; background: none; width: 9px; height: 9px; border-top: 2px solid var(--opx-green); border-right: 2px solid var(--opx-green); transform: rotate(45deg); margin-left: 12px; }
	.opx-menu .current-menu-item > a, .opx-menu .current_page_item > a { border-color: rgba(142, 197, 73, 0.5); color: var(--opx-green); }

	.opx-header__actions { margin-top: auto; padding-top: 26px; flex-direction: column; align-items: stretch; gap: 12px; }
	.opx-header__call-label { display: block; text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
	.opx-header__call-label strong { color: #fff; }
	.opx-header__call { display: inline-flex; width: 100%; }
	.opx-header__cta { width: 100%; padding: 16px 22px; font-size: 16px; }

	.opx-header.is-open .opx-header__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.opx-header.is-open .opx-header__toggle span:nth-child(2) { opacity: 0; }
	.opx-header.is-open .opx-header__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* Lock page scroll while the mobile menu overlay is open. */
html.opx-noscroll, html.opx-noscroll body { overflow: hidden; }

/* ── Back-to-top button ────────────────────────────────────────────── */
.opx-totop {
	position: fixed; right: 24px; bottom: 24px; z-index: 1040;
	width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
	background: var(--opx-green); color: #14210a; border: none; cursor: pointer;
	box-shadow: 0 8px 24px rgba(33, 38, 57, 0.28);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity var(--opx-t), transform var(--opx-t), background var(--opx-t), visibility var(--opx-t);
}
.opx-totop svg { width: 20px; height: 20px; }
.opx-totop:hover { background: var(--opx-green-d); color: #fff; transform: translateY(-2px); }
.opx-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 560px) { .opx-totop { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ── Footer ────────────────────────────────────────────────────────── */
.opx-footer { background: var(--opx-ink-3); color: rgba(255, 255, 255, 0.72); }
.opx-footer__container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.opx-footer__top {
	display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 48px;
	padding: 72px 0 48px; align-items: start;
}
.opx-footer__logo { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.opx-footer__logo b { color: var(--opx-green); }
.opx-footer__tag { margin: 16px 0 22px; font-size: 15px; line-height: 1.65; max-width: 340px; }
.opx-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.opx-footer__contact a, .opx-footer__contact span { display: inline-flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.opx-footer__contact a:hover { color: #fff; }
.opx-footer__contact svg { width: 18px; height: 18px; color: var(--opx-green); flex-shrink: 0; }
.opx-footer__col h3 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 16px; letter-spacing: 0.01em; }
.opx-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.opx-footer__col a { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; }
.opx-footer__col a:hover { color: var(--opx-green); }
.opx-footer__bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
	padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; text-align: center;
}
.opx-footer__bottom a { color: rgba(255, 255, 255, 0.75); }
.opx-footer__bottom a:hover { color: var(--opx-green); }
.opx-footer__toggles { display: inline-flex; gap: 6px; }
.opx-footer__toggles .btn { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; background: rgba(255, 255, 255, 0.05); }

@media (max-width: 900px) {
	.opx-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
	.opx-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.opx-footer__top { grid-template-columns: 1fr; padding: 52px 0 36px; }
	.opx-footer__bottom { flex-direction: column; align-items: flex-start; }
	.opx-book { padding: 56px 0; }
	.opx-book__card { padding: 24px; }
}
