/* Karsemåla — small additions on top of theme.json. Keep this file short. */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Header ---------- */
.qhh-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .qhh-site-header { top: var(--wp-admin--admin-bar--height, 0); }
.qhh-header { border-bottom: 1px solid rgba(31, 27, 24, .08); background: var(--wp--preset--color--paper); }
.qhh-header__inner {
	max-width: 1200px; margin: 0 auto; padding: .9rem clamp(1rem, 4vw, 2.5rem);
	display: flex; align-items: center; gap: 1.5rem;
}
.qhh-header .qhh-brand { margin-right: auto; }
.qhh-nav ul, .qhh-burger ul { list-style: none; margin: 0; padding: 0; }
.qhh-nav ul { display: flex; align-items: center; gap: 1.75rem; }
.qhh-nav a, .qhh-burger a { color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; }
.qhh-nav a:hover, .qhh-nav a[aria-current] { color: var(--wp--preset--color--red); }
.qhh-lang { display: flex; gap: .15rem; font-size: .8rem; font-family: var(--wp--preset--font-family--mono); }
.qhh-lang a { text-decoration: none; color: var(--wp--preset--color--muted); padding: .2rem .35rem; border-radius: 4px; }
.qhh-lang a[aria-current] { color: var(--wp--preset--color--ink); background: var(--wp--preset--color--sand); }
.qhh-lang a:hover { color: var(--wp--preset--color--red); }
.qhh-burger { display: none; position: relative; }
.qhh-burger summary { list-style: none; cursor: pointer; width: 2.5rem; height: 2.5rem; display: grid; place-content: center; gap: 5px; }
.qhh-burger summary::-webkit-details-marker { display: none; }
.qhh-burger summary span { display: block; width: 22px; height: 2px; background: var(--wp--preset--color--ink); transition: transform .2s; }
.qhh-burger[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.qhh-burger[open] summary span:nth-child(2) { opacity: 0; }
.qhh-burger[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.qhh-burger__panel {
	position: fixed; left: 0; right: 0; top: 4.4rem; bottom: 0; background: var(--wp--preset--color--paper);
	padding: 1.5rem clamp(1rem, 4vw, 2.5rem); overflow: auto; border-top: 1px solid rgba(31,27,24,.08);
}
.qhh-burger__panel li { font-size: 1.35rem; margin-bottom: 1rem; }
.qhh-burger__panel .qhh-lang { margin-top: 2rem; font-size: 1rem; }
@media (max-width: 960px) {
	.qhh-nav, .qhh-header__inner > .qhh-lang { display: none; }
	.qhh-burger { display: block; }
}
body:has(.qhh-burger[open]) { overflow: hidden; }
body:has(.qhh-burger[open]) .qhh-mobile-cta { display: none !important; }

/* footer layout */
.qhh-footer { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--sage); padding: var(--wp--preset--spacing--60) clamp(1rem, 4vw, 2.5rem) var(--wp--preset--spacing--50); font-size: .9rem; }
.qhh-footer a { color: #fff; }
.qhh-footer__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
.qhh-footer__legal { max-width: 1200px; margin-left: auto; margin-right: auto; }
.qhh-footer .qhh-lang a { color: var(--wp--preset--color--sage); }
.qhh-footer .qhh-lang a[aria-current] { color: var(--wp--preset--color--ink); }
@media (max-width: 781px) { .qhh-footer__inner { grid-template-columns: 1fr 1fr; } .qhh-footer__col--wide { grid-column: 1 / -1; } }

.qhh-brand { display: inline-flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: var(--wp--preset--color--ink); white-space: nowrap; }
.qhh-brand__name { font-family: var(--wp--preset--font-family--mono); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; color: var(--wp--preset--color--red); }
.qhh-brand__sub { font-size: .78rem; color: var(--wp--preset--color--muted); letter-spacing: .04em; }
.qhh-brand--light .qhh-brand__name { color: var(--wp--preset--color--white); }
.qhh-brand--light .qhh-brand__sub { color: var(--wp--preset--color--sage); }

.qhh-nav-cta > a {
	background: var(--wp--preset--color--red); color: #fff !important; padding: .55rem 1.1rem; border-radius: 999px; display: inline-block;
}
.qhh-nav-cta > a:hover { background: var(--wp--preset--color--red-dark); }

/* ---------- Hero ---------- */
.qhh-hero { min-height: min(88vh, 760px); }
.qhh-hero .wp-block-cover__inner-container { max-width: 1200px; }
.qhh-hero h1 { color: #fff; max-width: 14ch; text-wrap: balance; }
.qhh-hero p { max-width: 38rem; }
.qhh-eyebrow {
	font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem !important;
}
.qhh-hero .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.8); background: transparent; }
.qhh-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.12); }

/* ---------- Fact bar ---------- */
.qhh-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: center; }
.qhh-facts li { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.qhh-facts li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--wp--preset--color--red); flex: none; }

/* ---------- Cards & images ---------- */
.qhh-card { border-radius: 14px; overflow: hidden; background: var(--wp--preset--color--white); height: 100%; }
.qhh-card .wp-block-image { margin: 0; }
.qhh-card .wp-block-image img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.qhh-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.qhh-card h3 a { color: inherit; text-decoration: none; }
.qhh-card h3 a:hover { color: var(--wp--preset--color--red); }
.qhh-ratio-43 img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.qhh-ratio-portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.qhh-benefits { list-style: none; padding: 0; display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.qhh-benefits li { padding-left: 2rem; position: relative; }
.qhh-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wp--preset--color--red); font-weight: 700; }
.qhh-benefits strong { display: block; }

.qhh-price { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--xx-large); line-height: 1.1; margin: .25rem 0 0; }
.qhh-quote { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--x-large); line-height: 1.4; }

.qhh-card--pad { padding: 1.5rem 1.75rem; }
.qhh-card--pad > .wp-block-image { margin: -1.5rem -1.75rem 1.25rem; }
.qhh-card--pad > .wp-block-image img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.qhh-facts--left { justify-content: flex-start; }
.qhh-tight { padding-top: var(--wp--preset--spacing--40) !important; padding-bottom: var(--wp--preset--spacing--40) !important; }
.qhh-intro { padding-bottom: var(--wp--preset--spacing--40) !important; }
.qhh-page-head + .wp-block-post-content { margin-top: 0 !important; }

.qhh-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.qhh-toc a { text-decoration: none; color: var(--wp--preset--color--ink); background: var(--wp--preset--color--white); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; }
.qhh-toc a:hover { color: var(--wp--preset--color--red); }
[id] { scroll-margin-top: 6rem; }

.qhh-steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 1.25rem; }
.qhh-steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.qhh-steps li::before {
	content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
	background: var(--wp--preset--color--red); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.qhh-steps strong { display: block; }

.qhh-faq { border-bottom: 1px solid rgba(31,27,24,.12); padding: 1rem 0; }
.qhh-faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; position: relative; padding-right: 2rem; }
.qhh-faq summary::-webkit-details-marker { display: none; }
.qhh-faq summary::after { content: "+"; position: absolute; right: 0; top: -.1rem; font-size: 1.5rem; color: var(--wp--preset--color--red); }
.qhh-faq[open] summary::after { content: "–"; }
.qhh-faq p { margin: .75rem 0 0; }

.wp-block-post-content ul.wp-block-list { padding-left: 1.2rem; }
.wp-block-post-content ul.wp-block-list li { margin-bottom: .35rem; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.qhh-booking .wpbs-container { max-width: 100%; }

/* ---------- Footer ---------- */
.qhh-footer__title { font-family: var(--wp--preset--font-family--mono) !important; font-size: .8rem !important; text-transform: uppercase; letter-spacing: .12em; color: #fff !important; margin-bottom: .5rem; }
.qhh-footer__legal { border-top: 1px solid rgba(220,232,223,.2); padding-top: 1.5rem; margin-top: var(--wp--preset--spacing--50) !important; opacity: .85; }

/* ---------- Mobile booking button ---------- */
.qhh-mobile-cta { display: none; }
@media (max-width: 781px) {
	.qhh-mobile-cta {
		display: block; position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
		background: var(--wp--preset--color--red); color: #fff; text-align: center; font-weight: 600; text-decoration: none;
		padding: .9rem 1rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
	}
	.page-id-1573 .qhh-mobile-cta { display: none; }
	body { padding-bottom: 5rem; }

}

/* ---------- Content placeholders (must be resolved before launch) ---------- */
mark.qhh-todo { background: #FFE58A; color: #3a2d00; padding: 0 .25em; border-radius: 3px; font-size: .9em; }

/* ---------- WP Booking System: match the brand ---------- */
.wpbs-main-wrapper { font-family: var(--wp--preset--font-family--body) !important; }
.wpbs-form-container .wpbs-form-submit-button button,
.wpbs-form-container button[type="submit"] {
	background: var(--wp--preset--color--red) !important; color: #fff !important; border-radius: 999px !important; border: 0 !important; padding: .8rem 1.6rem !important; font-weight: 600 !important;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.qhh-burger__panel .qhh-nav-cta { margin-top: 1.5rem; }
.qhh-burger__panel .qhh-nav-cta > a { padding: .8rem 1.6rem; }

/* ---------- Tables (facts, distances) ---------- */
.qhh-table table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--wp--preset--color--white); border-radius: 10px; overflow: hidden; }
.qhh-table th, .qhh-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--wp--preset--color--sand); text-align: left; vertical-align: top; }
.qhh-table thead th { background: var(--wp--preset--color--forest); color: #fff; font-weight: 600; }
.qhh-table--facts th[scope="row"] { width: 40%; font-weight: 600; color: var(--wp--preset--color--muted); }
.qhh-table tr:last-child td, .qhh-table tr:last-child th { border-bottom: 0; }

/* ---------- Cookie consent ---------- */
.qhh-consent {
	position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100; max-width: 40rem; margin: 0 auto;
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 1.1rem 1.25rem; font-size: .92rem;
}
.qhh-consent[hidden] { display: none; }
.qhh-consent p { margin: 0 0 .9rem; }
.qhh-consent__btns { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.qhh-consent button { font: inherit; font-weight: 600; border-radius: 999px; padding: .6rem 1.3rem; cursor: pointer; border: 1px solid var(--wp--preset--color--ink); background: transparent; color: var(--wp--preset--color--ink); }
.qhh-consent .qhh-consent__yes { background: var(--wp--preset--color--red); border-color: var(--wp--preset--color--red); color: #fff; }
.qhh-consent-open .qhh-mobile-cta { display: none !important; }

/* ---------- Breadcrumbs & related ---------- */
.qhh-crumbs { font-size: .85rem; color: var(--wp--preset--color--muted); margin-bottom: .5rem; }
.qhh-crumbs a { color: var(--wp--preset--color--muted); }
.qhh-related { background: var(--wp--preset--color--sand); padding: var(--wp--preset--spacing--50) clamp(1rem, 4vw, 2.5rem); }
.qhh-related__inner { max-width: 1200px; margin: 0 auto; }
.qhh-related h2 { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 1.25rem; }
.qhh-related__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.qhh-related__card { display: flex; flex-direction: column; gap: .35rem; background: var(--wp--preset--color--white); border-radius: 12px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--wp--preset--color--ink); }
.qhh-related__card strong { color: var(--wp--preset--color--red); font-family: var(--wp--preset--font-family--serif); font-size: 1.15rem; font-weight: 500; }
.qhh-related__card span { font-size: .9rem; color: var(--wp--preset--color--muted); }
.qhh-related__card:hover strong { text-decoration: underline; }
