/*
Theme Name: Gājēdis
Description: Gājēdis tēma – pārgājieni ar trīs kārtu maltīti dabā. Dizains pēc gajedis.lv, latviešu un angļu valodā, ar iebūvētu kontaktformu.
Version: 1.27.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: gajedis
License: GNU General Public License v2 or later
*/

/* ---------- Header: always white so the menu stays readable ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }

.gj-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
/* No white strip between the header and the first photo, or above the footer */
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }
/* Anchors (e.g. #gj-form after sending) land below the sticky header */
html { scroll-padding-top: 96px; }

.gj-header__bar { min-height: 76px; gap: 1.5rem !important; }
.gj-header__logo img { display: block; height: auto; }
nav.gj-nav { flex: 1 1 auto; }
.gj-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	padding-block: .4rem;
	border-bottom: 2px solid transparent;
	transition: border-color .2s;
}
.gj-nav .wp-block-navigation-item__content:hover,
.gj-nav .wp-block-navigation-item__content[aria-current="page"],
.gj-nav .gj-nav__parent-active > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--contrast);
}
/* Dropdown */
.gj-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 14px;
	padding: .5rem !important;
	min-width: 230px !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}
.gj-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .6rem .8rem !important;
	border-bottom: 0;
	border-radius: 8px;
}
.gj-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.gj-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] {
	background: var(--wp--preset--color--surface);
}
.gj-header__cta .wp-block-button__link { padding: .7rem 1.4rem; font-size: .85rem; }
.gj-header__actions { flex: 0 0 auto; }

.gj-langswitch {
	margin: 0;
	display: flex;
	gap: .35rem;
	font-size: .9rem;
	color: var(--wp--preset--color--line);
}
.gj-langswitch a { color: var(--wp--preset--color--muted); text-decoration: none; }
.gj-langswitch a.is-active { color: var(--wp--preset--color--contrast); font-weight: 700; }
/* bigger tap area without moving the letters */
.gj-langswitch { align-items: center; }
.gj-langswitch a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin-inline: -.6rem; }
.gj-langswitch a:hover { color: var(--wp--preset--color--contrast); }

/* Menu icon: 44px tap area */
@media (max-width: 599px) {
	.gj-nav .wp-block-navigation__responsive-container-open { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
}
.gj-nav .wp-block-navigation__responsive-container-close { display: grid; place-items: center; width: 44px; height: 44px; top: 0; right: 0; }

/* Mobile: logo left, then language, booking button and menu icon */
@media (max-width: 600px) {
	.gj-header__bar { gap: .75rem !important; }
	.gj-header__logo img { width: 48px; }
	nav.gj-nav { flex: 0 0 auto; order: 3; }
	.gj-header__actions { margin-left: auto; gap: .9rem !important; }
	.gj-header__cta .wp-block-button__link { padding: .6rem 1rem; font-size: .78rem; min-height: 40px; display: inline-flex; align-items: center; }
}
/* Open phone menu: a calm full-screen list, sub-items listed under their heading */
.gj-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.5rem;
	align-items: center;
	gap: 1.25rem;
}
.gj-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: center;
	gap: 1.4rem;
}
.gj-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: center;
}
.gj-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6rem;
	padding-block: .2rem;
}
.gj-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding: .6rem 0 0 !important;
	min-width: 0 !important;
	gap: .5rem;
	align-items: center;
}
.gj-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.1rem;
	color: var(--wp--preset--color--muted);
	padding: .35rem .8rem !important;
}

/* ---------- Shared ---------- */
main > .wp-block-post-content > :first-child { margin-top: 0; }
.gj-section {
	padding-top: clamp(2.25rem, 5vw, 3.75rem);
	padding-bottom: clamp(2.25rem, 5vw, 3.75rem);
	margin-top: 0 !important;
}
/* headings sit closer to what they introduce */
.gj-section > h2,
.gj-section > .wp-block-heading { margin-bottom: 1.5rem; }
.gj-section > h2 + *,
.gj-section > .wp-block-heading + * { margin-top: 0 !important; }
.gj-section--sand { background: var(--wp--preset--color--surface); }
/* Photo next to text: give the text room to breathe */
.gj-section .wp-block-columns:not(.gj-contact-box) { column-gap: clamp(2.5rem, 6vw, 6rem) !important; }
.gj-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.gj-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; }
.gj-center { text-align: center; }
.gj-center.wp-block-buttons,
.gj-center .wp-block-buttons { justify-content: center; }
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--white);
}

/* ---------- Buttons: shrink a little and change tone on hover ---------- */
.wp-element-button,
.wp-block-button__link {
	transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.wp-element-button:hover,
.wp-block-button__link:hover { transform: scale(.96); }
.wp-element-button:active,
.wp-block-button__link:active { transform: scale(.93); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.gj-form__submit:hover { background-color: #4a4a4a !important; color: var(--wp--preset--color--white) !important; }
@media (prefers-reduced-motion: reduce) {
	.wp-element-button:hover, .wp-block-button__link:hover,
	.wp-element-button:active, .wp-block-button__link:active { transform: none; }
	html { scroll-behavior: auto; }
	.gj-reviews { scroll-behavior: auto; }
}

/* ---------- Keyboard focus: one clear ring everywhere ---------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
	border-radius: 4px;
}
:where(.wp-block-button__link, .wp-element-button, .gj-carousel-nav button):focus-visible { border-radius: 300px; outline-offset: 3px; }
/* on photos the ring is white */
:where(.gj-hero, .gj-offers, .gj-photo-band) :focus-visible { outline-color: var(--wp--preset--color--white); }

/* Headings break into even lines */
h1, h2, h3, .gj-statement { text-wrap: balance; }

/* ---------- Hero / photo sections ---------- */
.gj-hero,
.gj-cta {
	position: relative;
	margin-top: 0 !important;
	background-size: cover;
	background-position: center;
	isolation: isolate;
}
.gj-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* a little darker behind the text in the middle, so it stays readable over light parts of the photo */
	background:
		radial-gradient(ellipse 60% 55% at 50% 55%, rgba(0, 0, 0, .28), transparent 75%),
		rgba(0, 0, 0, .38);
}
.gj-hero p { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.gj-hero {
	/* fills the screen under the header; the photo is a parallax layer (assets/js/nav.js) */
	min-height: calc(100svh - 77px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
	color: var(--wp--preset--color--white);
}
.gj-hero--short { min-height: 44svh; padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
/* private adventures page: 20% lower than the usual short header */
.gj-hero--lower { min-height: 35.2svh; padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
/* drinks and musicians pages: a lower photo band (30% less than the usual short header) */
.gj-hero--slim { min-height: 30.8svh; padding-top: clamp(1.75rem, 4vw, 2.75rem); padding-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.admin-bar .gj-hero:not(.gj-hero--short) { min-height: calc(100svh - 77px - 32px); }
/* Home page: half-round bottom edge, like on the old gajedis.lv */
.gj-hero:not(.gj-hero--short) {
	clip-path: ellipse(100% 100% at 50% 0%);
	padding-bottom: calc(var(--wp--preset--spacing--60) + 4rem);
}
/* Narrow screens: the hero is tall and thin, so a wider ellipse keeps the curve gentle */
@media (max-width: 1024px) {
	.gj-hero:not(.gj-hero--short) { clip-path: ellipse(150% 100% at 50% 0%); padding-bottom: calc(var(--wp--preset--spacing--60) + 2.5rem); }
}
@media (max-width: 600px) {
	.gj-hero:not(.gj-hero--short) { clip-path: ellipse(200% 100% at 50% 0%); padding-bottom: calc(var(--wp--preset--spacing--60) + 1.5rem); }
}

/* "Ko mēs piedāvājam?" on a darkened photo */
.gj-offers { min-height: 0; }
.gj-offers::before { background: rgba(0, 0, 0, .62) !important; }
.gj-offers,
.gj-offers h2,
.gj-offers h3,
.gj-offers p { color: var(--wp--preset--color--white) !important; }
.gj-offers .gj-offer__body p { color: rgba(250, 250, 250, .82) !important; }
.gj-offers .gj-offer__num { color: rgba(250, 250, 250, .7) !important; }
.gj-offers .gj-offer { border-top-color: rgba(250, 250, 250, .28); }
.gj-offers .gj-offer:last-child { border-bottom-color: rgba(250, 250, 250, .28); }

/* Darkened photo band (About page) */
.gj-photo-band {
	position: relative;
	isolation: isolate;
	min-height: 55svh;
	margin-top: 0 !important;
	background-size: cover;
	background-position: center;
}
.gj-photo-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, .5);
}
.gj-hero__inner {
	width: 100%;
	max-width: 820px !important;
	margin-inline: auto !important;
	text-align: center;
}
.gj-hero__inner .wp-block-buttons { justify-content: center; }
.gj-hero__logo { margin-inline: auto !important; }
.gj-hero__logo img { width: clamp(140px, 14vw, 190px); height: auto; display: block; margin: 0 auto; }
.gj-hero h1,
.gj-hero h2,
.gj-hero p { color: var(--wp--preset--color--white); }
.gj-hero .gj-eyebrow { color: rgba(250, 250, 250, .85); }
.gj-hero .gj-lead { max-width: 46ch; margin-inline: auto; }
.gj-hero .wp-block-button .wp-block-button__link {
	background: rgba(0, 0, 0, .18);
	color: var(--wp--preset--color--white);
	border: 1.5px solid var(--wp--preset--color--white);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.gj-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	border-color: var(--wp--preset--color--white);
}
.gj-hero .wp-block-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
}

/* Parallax layer created by assets/js/nav.js */
.has-parallax { background-image: none !important; overflow: hidden; }
.gj-parallax {
	position: absolute;
	left: 0;
	right: 0;
	top: -14%;
	bottom: -14%;
	z-index: -2;
	background-size: cover;
	background-repeat: no-repeat;
	will-change: transform;
	pointer-events: none;
	/* WordPress limits children of constrained groups to the text width; the photo must span edge to edge */
	max-width: none !important;
	width: auto !important;
	margin: 0 !important;
}

/* ---------- Steps ("Kā tas notiek") ---------- */
.gj-steps { gap: 1.5rem !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 900px) { .gj-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .gj-steps { grid-template-columns: 1fr !important; } }
.gj-step {
	border-top: 1px solid var(--wp--preset--color--contrast);
	padding-top: 1.25rem;
	text-align: center;
}
.gj-step p { margin: 0; }
.gj-step__num { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.gj-step h3 { margin: .6rem 0 .5rem; }
.gj-step__text { color: var(--wp--preset--color--muted); }

/* ---------- Cards with photos ---------- */
.gj-card { background: var(--wp--preset--color--base); }
.gj-card > .wp-block-image { margin: 0; }
.gj-card > .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* show the lower part of tall food photos (whole plate in view) */
.gj-card > .gj-focus-low img { object-position: 50% 63%; } /* bowl, bread and both glasses in the frame */
.gj-card > .gj-focus-fire img { object-position: 50% 84%; } /* the circle around the fire, with the tree trunks above */
.gj-card__body { padding: 1.75rem; }
.gj-card__body > * { margin-top: 0; }
.gj-card__body h3 { margin-bottom: .5rem; }

/* Photo next to text: cropped top and bottom, in a narrower section */
.gj-rounded img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 58%; }
.gj-section:has(.gj-rounded) > .wp-block-columns { max-width: 1040px !important; margin-inline: auto !important; }
.gj-portrait img {
	/* Cut-out portraits on a transparent background: no frame, the person stands on the page */
	display: block;
	width: 100%;
	max-height: 420px;
	object-fit: contain;
	object-position: center bottom;
}

/* ---------- Features ---------- */
.gj-feature {
	background: var(--wp--preset--color--base);
	padding: 1.75rem;
}
.gj-feature > * { margin-top: 0; }
.gj-feature h3 { margin-bottom: .5rem; }
.gj-feature p { color: var(--wp--preset--color--muted); margin-bottom: 0; }

/* ---------- Logos: calm centred rows, same height for every logo ---------- */
.gj-section-title { margin-bottom: clamp(2rem, 4vw, 3rem) !important; }
.gj-logos {
	max-width: 1080px !important;
	margin-inline: auto !important;
	gap: clamp(1.75rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem) !important;
	align-items: center;
}
.gj-logos .wp-block-image { margin: 0; flex: 0 0 auto; }
.gj-logos img {
	display: block;
	height: clamp(30px, 4vw, 44px);
	width: auto !important;
	max-width: 150px;
	object-fit: contain;
	opacity: .9;
	transition: opacity .2s;
}
.gj-logos img:hover { opacity: 1; }
/* the hand-drawn client logo is tall and thin, so it needs more height to read */
.gj-logos .gj-logo--lg img { height: clamp(64px, 8vw, 92px); max-width: 120px; }

/* ---------- Reviews: a row you can page through (arrows added by assets/js/nav.js) ---------- */
.gj-reviews {
	gap: 1.5rem !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	align-items: stretch !important;
	padding-bottom: .25rem;
}
.gj-reviews::-webkit-scrollbar { display: none; }
.gj-review {
	/* three at a time like on the old site; the arrows page to the rest */
	flex: 0 0 calc((100% - 3rem) / 3);
	scroll-snap-align: start;
	background: var(--wp--preset--color--base);
	padding: 2rem;
	text-align: center;
	box-sizing: border-box;
}
@media (max-width: 960px) { .gj-review { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 600px) { .gj-review { flex-basis: 88%; } }
.gj-review p { margin: 0; }
.gj-carousel-nav { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.gj-carousel-nav button {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: #4a4a4a;
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background .2s, opacity .2s;
}
.gj-carousel-nav button:hover { background: var(--wp--preset--color--black); }
.gj-carousel-nav button:disabled { opacity: .35; cursor: default; }

/* ---------- Social: icons under the heading, then 4 photos (2×2 on phones) ---------- */
.gj-social { margin-top: -.5rem !important; margin-bottom: 1.75rem !important; gap: .25rem !important; }
/* social icons: 44px tap area, icon size unchanged */
.gj-social .wp-social-link a,
.gj-footer__social .wp-social-link a { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; }
/* Home page "Seko mums soctīklos": slightly bigger icons */
.gj-section > .wp-block-social-links.gj-social { font-size: 24px; gap: .5rem !important; }
.gj-insta {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .75rem;
}
@media (max-width: 700px) { .gj-insta { grid-template-columns: repeat(2, 1fr); } }
.gj-insta > * { margin: 0 !important; }
.gj-insta .wp-block-image { margin: 0; }
.gj-insta img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: opacity .3s;
}
.gj-insta a:hover img { opacity: .85; }

/* ---------- Pills ---------- */
.gj-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.gj-pills li {
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 300px;
	padding: .45rem 1.1rem;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Facts ---------- */
.gj-facts { gap: 1rem !important; }
.gj-fact { border-left: 1px solid var(--wp--preset--color--contrast); padding-left: 1rem; }
.gj-fact p { margin: 0; }
.gj-fact__big {
	font-family: var(--wp--preset--font-family--heading);
	/* sized to fit a quarter of the text column ("4–18 km" is the longest) */
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.gj-fact { min-width: 0; }
.gj-fact__label { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- Photo background with form ---------- */
.gj-cta {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
.gj-cta__panel {
	background: rgba(250, 250, 250, .92);
	color: var(--wp--preset--color--contrast);
	padding: clamp(1.5rem, 4vw, 3rem);
	max-width: 640px;
	margin-inline: auto !important;
	text-align: center;
}
.gj-cta__panel h2 { margin-top: 0; }
.gj-cta__panel .gj-form { text-align: left; }
.gj-section .gj-cta__panel { background: var(--wp--preset--color--surface); max-width: none; text-align: left; }

/* ---------- Contact form ---------- */
.gj-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.gj-form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.gj-form__field { display: grid; gap: .35rem; font-size: var(--wp--preset--font-size--small); }
.gj-form__req { color: var(--wp--preset--color--muted); }
.gj-form input[type="text"],
.gj-form input[type="email"],
.gj-form input[type="tel"],
.gj-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	padding: .75rem 1.1rem;
	border: 1px solid var(--wp--preset--color--black);
	border-radius: 24px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
}
.gj-form textarea { resize: vertical; min-height: 8rem; border-radius: 20px; }
.gj-form input:focus,
.gj-form textarea:focus { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: 1px; }
.gj-form__check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--wp--preset--font-size--small); }
.gj-form__check { min-height: 44px; align-items: center; cursor: pointer; }
.gj-form__check input { margin: 0; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--wp--preset--color--black); cursor: pointer; }
.gj-form__submit { min-height: 48px; }
.gj-form__submit { justify-self: start; border: 0; cursor: pointer; }
.gj-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gj-form__status { padding: .9rem 1.1rem; border-radius: 14px; margin: 0; font-weight: 600; }
.gj-form__status.is-success { background: #e6efe3; color: #23421f; }
.gj-form__status.is-error { background: #f6e1d6; color: #8a3a16; }

/* ---------- Contact page ---------- */
.gj-contact-cards { gap: 1.25rem !important; }
.gj-contact-card {
	position: relative;
	background: var(--wp--preset--color--surface);
	padding: 2rem 2rem 1.75rem;
	transition: background .2s;
}
.gj-contact-card:hover { background: #f2f2f2; }
.gj-contact-card::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--black);
	-webkit-mask: var(--gj-icon) center / 20px no-repeat, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: var(--gj-icon) center / 20px no-repeat exclude, linear-gradient(#000 0 0);
}
.gj-contact-card--mail { --gj-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.gj-contact-card--phone { --gj-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.gj-contact-card--social { --gj-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='m8.2 10.8 7.6-4.6M8.2 13.2l7.6 4.6'/%3E%3C/svg%3E"); }
.gj-contact-card p { margin: 0; }
.gj-contact-card__label {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: .35rem !important;
}
.gj-contact-card__value {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}
.gj-contact-card__value a { text-decoration: none; }
/* the whole email / phone card is clickable */
.gj-contact-card__value a::after { content: ""; position: absolute; inset: 0; }
.gj-contact-card .gj-social { margin: .4rem 0 0 -10px !important; }

.gj-form-panel { background: var(--wp--preset--color--base); padding: clamp(1.5rem, 4vw, 2.75rem); }
.gj-form-panel h2 { margin-top: 0; }
.gj-details { background: var(--wp--preset--color--base); padding: clamp(1.5rem, 4vw, 2.25rem); color: var(--wp--preset--color--muted); }
.gj-details p { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--small); line-height: 1.7; }
.gj-details p:last-child { margin-bottom: 0; }

/* ---------- About page ---------- */
.gj-intro__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gj-page-head h1 { margin-top: 0; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.gj-contact-box {
	background: var(--wp--preset--color--base);
	padding: clamp(1.5rem, 4vw, 3rem);
	column-gap: 0 !important;
}
.gj-contact-box > .wp-block-column:first-child { padding-right: clamp(1.5rem, 4vw, 3rem); }
.gj-contact-box > .wp-block-column:last-child {
	border-left: 1px solid var(--wp--preset--color--line);
	padding-left: clamp(1.5rem, 4vw, 3rem);
}
.gj-contact-box h2 { margin-top: 0; }
.gj-contact-box .gj-details { background: none; padding: 0; }
@media (max-width: 781px) {
	.gj-contact-box > .wp-block-column:first-child { padding-right: 0; }
	.gj-contact-box > .wp-block-column:last-child { border-left: 0; border-top: 1px solid var(--wp--preset--color--line); padding-left: 0; padding-top: 1.5rem; }
}
.gj-statement {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--contrast);
}
.gj-statement--big {
	font-size: clamp(1.6rem, 3.2vw, 2.6rem);
	max-width: 28ch;
	margin-inline: auto !important;
}
.gj-muted { color: var(--wp--preset--color--muted); }
/* About intro: statement, text and button one under another on every screen size */
.gj-intro {
	flex-direction: column;
	gap: 1.75rem !important;
	max-width: 880px !important;
	margin-inline: auto !important;
}
.gj-intro > .wp-block-column { flex-basis: auto !important; width: 100%; }

.gj-band-wrap { margin-top: 0 !important; }
.gj-band img {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	object-position: center 35%;
}
@media (max-width: 700px) { .gj-band img { aspect-ratio: 4 / 3; } }

.gj-sticky { position: sticky; top: 7rem; }
.gj-offer {
	gap: clamp(1rem, 3vw, 2rem) !important;
	padding: 1.75rem 0;
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 0 !important;
}
.gj-offer:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.gj-offer__num {
	margin: .2rem 0 0;
	min-width: 2.5rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.gj-offer__body > * { margin-top: 0; }
.gj-offer__body h3 { margin-bottom: .5rem; }
.gj-offer__body p { margin: 0; color: var(--wp--preset--color--muted); }

.gj-team > .gj-person + .gj-person { margin-top: clamp(2rem, 5vw, 3.5rem) !important; }
.gj-person { gap: clamp(2rem, 6vw, 5rem) !important; }
.gj-person h2 { margin-top: 0; }
/* On phones the photo always comes first */
@media (max-width: 781px) {
	.gj-person--flip { flex-direction: column-reverse; }
}

/* ---------- Simple pages (privacy policy) and 404 ---------- */
.gj-page__title { margin-top: clamp(2.5rem, 6vw, 4rem) !important; margin-bottom: 1.5rem; }
.gj-page { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.gj-404 { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.gj-404 h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; }
.gj-404 ul { padding-left: 1.5rem; }
.gj-404 li { margin-bottom: .4rem; }
.gj-404 a { text-decoration: underline; text-underline-offset: 3px; }
.gj-404 .wp-block-button__link { text-decoration: none; padding-inline: 4rem; }
.gj-404__button { margin-top: 2.5rem !important; }
.gj-404__note { margin-top: 2.5rem !important; }

/* ---------- Gallery ---------- */
.gj-gallery.wp-block-gallery { gap: .6rem !important; }

/* ---------- Footer: logo, email + phone, social icons, privacy policy ---------- */
.gj-footer {
	margin-top: 0 !important;
	background: var(--wp--preset--color--surface);
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
}
.gj-footer__row { gap: 1.5rem 2.5rem !important; }
.gj-footer__logo img { display: block; height: auto; }
.gj-footer__contacts { margin: 0; font-size: var(--wp--preset--font-size--small); line-height: 1.8; }
.gj-footer__social { margin: 0 !important; gap: 0 !important; font-size: 18px; }
.gj-footer__privacy { margin: 0; }
.gj-footer a { text-decoration: none; }
.gj-footer a:hover { text-decoration: underline; }
@media (max-width: 700px) {
	.gj-footer__row { flex-direction: column; text-align: center; }
}

/* ---------- Client offer pages ---------- */
.gj-section--tight { padding-top: 0 !important; padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important; }
.gj-hero .gj-hero__title--long { font-size: clamp(1.75rem, 3.6vw, 3rem); max-width: 26ch; margin-inline: auto; }
.gj-dur { font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: .85em; color: var(--wp--preset--color--muted); }
.gj-photo-row { gap: .75rem !important; }
.gj-photo-row .wp-block-image { margin: 0; }
.gj-photo-row img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .gj-photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.gj-stack { margin: 0 0 .75rem !important; }
.gj-stack img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.gj-menu-cards { gap: 1.25rem !important; margin-block: 1.5rem !important; }
.gj-menu-card { background: var(--wp--preset--color--base); padding: 1.75rem; }
.gj-section:not(.gj-section--sand) .gj-menu-card { background: var(--wp--preset--color--surface); }
.gj-menu-card > * { margin-top: 0; }
.gj-menu-card p { margin-bottom: .6rem; }
.gj-menu-card__title { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--large); margin-bottom: 1rem !important; }
.gj-menu-card ol, .gj-menu-card ul { padding-left: 1.25rem; margin: 0; }
.gj-menu-card li { margin-bottom: .5rem; }

.gj-price { background: var(--wp--preset--color--base); padding: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.gj-price > * { margin-top: 0; }
.gj-price__main { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--large); }
.gj-checklist { list-style: none; padding: 0; }
.gj-checklist li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.gj-checklist li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.gj-routes li { margin-bottom: .6rem; }
.gj-pricelist li { margin-bottom: .3rem; }

.gj-notes { gap: 1.25rem !important; margin-bottom: 1.5rem !important; }
.gj-note { background: var(--wp--preset--color--base); padding: 1.5rem 1.75rem; }
.gj-section:not(.gj-section--sand) .gj-note { background: var(--wp--preset--color--surface); }
.gj-note p { margin: 0; }
.gj-section--sand > .gj-note { margin-top: 1.25rem; }

.gj-price-tag { font-weight: 600; margin-top: .75rem !important; }
.gj-listen a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Client offer pages: same layout as the old gajedis.lv pages ---------- */
.gj-offer-top { padding-top: clamp(2.5rem, 6vw, 4rem); }
.gj-offer-top > .gj-offer-title { max-width: var(--wp--style--global--wide-size) !important; }
.gj-offer-title { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: 0; margin-bottom: clamp(1.5rem, 4vw, 2.5rem) !important; }
.gj-offer-cols { gap: clamp(2rem, 5vw, 4.5rem) !important; }
.gj-offer-cols h2 { margin-top: 0; }
/* text-only sections line up with the same left edge as the two-column sections */
.gj-offer-text > * { max-width: var(--wp--style--global--wide-size) !important; }
.gj-offer-text > p, .gj-offer-text > ul, .gj-offer-text > ol { box-sizing: border-box; }
/* keep long text at a readable line length on big screens only (on phones it squeezed the lists off-screen) */
@media (min-width: 1100px) {
	.gj-offer-text > p, .gj-offer-text > ul, .gj-offer-text > ol { padding-right: max(0px, calc(var(--wp--style--global--wide-size) - 900px)); }
}
.gj-offer-narrow > * { max-width: 980px !important; }
.gj-offer-narrow > p, .gj-offer-narrow > ul, .gj-offer-narrow > ol { padding-right: 0; }
/* Drinks page: bigger, italic option headings and more air between the blocks */
.gj-offer-narrow > * + * { margin-block-start: 1.6rem; }
.gj-offer-narrow > h3 {
	font-size: clamp(1.6rem, 2.8vw, 2.25rem);
	font-style: italic;
	font-weight: 600;
	letter-spacing: -0.015em;
	margin-block-start: clamp(3rem, 6vw, 4.5rem) !important;
	margin-block-end: 1.25rem;
}
.gj-offer-narrow > h3 strong { font-weight: inherit; }
.gj-offer-narrow > h3 + * { margin-block-start: 0; }
.gj-offer-text h2, .gj-offer-text h3, .gj-offer-text h4 { margin-top: 2rem; }
.gj-offer-text > h1:first-child, .gj-offer-text > h2:first-child { margin-top: 0; }
.gj-offer-cols ul, .gj-offer-cols ol, .gj-offer-text ul, .gj-offer-text ol { padding-left: 1.4rem; }
.gj-offer-cols li, .gj-offer-text li { margin-bottom: .35rem; }
/* photo collage like the original: staggered photos next to the text */
.gj-collage { display: grid !important; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }
.gj-collage > .wp-block-image { margin: 0 !important; }
.gj-collage > .wp-block-image:nth-child(even) { margin-top: 2.5rem !important; }
.gj-collage > .wp-block-image:only-child { grid-column: 1 / -1; }
.gj-collage img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gj-offer-top .gj-collage > .wp-block-image:first-child { grid-column: 1 / -1; }
.gj-offer-top .gj-collage > .wp-block-image:first-child img { aspect-ratio: 4 / 3; }
.gj-offer-top .gj-collage > .wp-block-image:nth-child(even) { margin-top: 0 !important; }
/* offer pages: photos next to the text, 4:5 frame (on wide screens stretched to the text height, see below) */
.gj-photo { margin: 0 !important; }
.gj-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }
/* photos next to section text: stacked; on wide screens they fill exactly the height of the text next to them */
.gj-photo + .gj-photo { margin-top: .75rem !important; }
/* phones: several photos side by side, two in a row; a third one is left out */
@media (max-width: 781px) {
	.gj-offer-cols > .wp-block-column:has(> .gj-photo + .gj-photo) { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
	.gj-offer-cols > .wp-block-column:has(> .gj-photo + .gj-photo) > .gj-photo { margin: 0 !important; }
	.gj-offer-cols > .wp-block-column:has(> .gj-photo + .gj-photo) > .gj-photo img { aspect-ratio: 4 / 5; }
	.gj-offer-cols > .wp-block-column > .gj-photo:nth-child(n+3) { display: none; }
}
@media (min-width: 782px) {
	.gj-offer-cols > .wp-block-column:has(> .gj-photo) { display: flex; flex-direction: column; gap: .75rem; }
	.gj-offer-cols > .wp-block-column:has(> .gj-photo) > .gj-photo { position: relative; flex: 1 1 0; min-height: 0; margin: 0 !important; }
	.gj-offer-cols > .wp-block-column:has(> .gj-photo) > .gj-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
/* summer page top photo: on phones a low band cropped to the table */
.gj-photo img.wp-image-2099 { aspect-ratio: 8 / 5; object-position: 50% 64%; }
@media (max-width: 781px) {
	.gj-photo img { aspect-ratio: 4 / 3.6; }
}
.gj-offer-contacts h1, .gj-offer-contacts h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1rem; }
.gj-offer-contacts p { margin: 0 0 .35rem; }
.gj-offer-contacts .wp-block-social-links { margin-top: .75rem !important; margin-left: -10px !important; }
@media (max-width: 781px) { .gj-collage > .wp-block-image:nth-child(even) { margin-top: 0 !important; } }
/* Seasonal offer pages: clear sections, a timeline for the day, cards for menu options and routes */
.gj-offer-top ~ .gj-section {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: clamp(3rem, 7vw, 5rem);
	padding-bottom: clamp(3rem, 7vw, 5rem);
}
.gj-offer-top ~ .gj-section h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); margin-bottom: 1.5rem; }
.gj-offer-top ~ .gj-section h2 + * { margin-top: 0 !important; }

.gj-timeline { margin-block: 1.75rem 0 !important; }
.gj-timeline-step { position: relative; padding: 0 0 1.75rem 2.25rem; margin: 0 !important; }
.gj-timeline-step::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5rem;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--wp--preset--color--contrast);
}
.gj-timeline-step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 1.6rem;
	bottom: .1rem;
	width: 1px;
	background: var(--wp--preset--color--line);
}
.gj-timeline-step > * { margin: 0 !important; }
.gj-timeline-step .gj-step-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; margin-bottom: .45rem !important; }
.gj-step-title strong { font-weight: inherit; }

.gj-menu-options { display: grid; gap: 1rem; margin-block: 1.75rem !important; }
.gj-menu-option { background: var(--wp--preset--color--surface); padding: clamp(1.25rem, 3vw, 1.85rem); margin: 0 !important; }
.gj-menu-option > * { margin-top: 0 !important; }
.gj-menu-option .gj-option-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; margin-bottom: .9rem !important; }
.gj-option-title strong { font-weight: inherit; }
.gj-option-title em { font-family: var(--wp--preset--font-family--body); font-size: .7em; font-weight: 400; color: var(--wp--preset--color--muted); }
.gj-menu-option p { margin-bottom: .45rem !important; }
.gj-menu-option p:last-child, .gj-menu-option ol { margin-bottom: 0 !important; }

.gj-request {
	background: var(--wp--preset--color--surface);
	padding: clamp(1.25rem, 3vw, 1.85rem);
	margin-top: 1.5rem !important;
}
.gj-request > * { margin-top: 0 !important; }
.gj-request ul { margin-bottom: 0; }

.gj-route-list {
	list-style: none;
	padding: 0 !important;
	display: grid;
	gap: .75rem;
}
.gj-offer-cols .gj-route-list li,
.gj-offer-text .gj-route-list li {
	background: var(--wp--preset--color--surface);
	padding: 1rem 1.15rem;
	margin: 0;
	line-height: 1.55;
}
/* in the full-width text sections the new boxes line up with the text column */
.gj-offer-text > .gj-menu-options, .gj-offer-text > .gj-request { max-width: var(--wp--style--global--wide-size) !important; box-sizing: border-box; }
@media (min-width: 1100px) {
	.gj-offer-text > .gj-menu-options, .gj-offer-text > .gj-request { margin-right: auto !important; width: calc(var(--wp--style--global--wide-size) - (var(--wp--style--global--wide-size) - 900px)); max-width: 900px !important; margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important; }
}

/* Musicians page: intro, then one card per musician (name, story, price and listen link) */
.gj-music__intro {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	text-align: center;
	max-width: 46rem !important;
	margin-inline: auto !important;
}
.gj-music > h2 {
	text-align: center;
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	margin-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.25rem) !important;
}
.gj-music > h2 + * { margin-top: 0 !important; }
.gj-musicians {
	display: grid;
	gap: 1.25rem;
	max-width: 820px;
	margin-inline: auto !important;
}
.gj-musicians > * { margin: 0 !important; }
.gj-musician {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.gj-musician > * { margin-top: 0; }
.gj-musician h3 {
	font-size: clamp(1.5rem, 2.4vw, 1.9rem);
	font-weight: 600;
	margin-bottom: .9rem;
}
.gj-musician p { margin-bottom: .8rem; }
.gj-musician__meta {
	list-style: none;
	padding: 1rem 0 0;
	margin: auto 0 0 !important;
	border-top: 1px solid var(--wp--preset--color--line);
	display: grid;
	gap: .4rem;
}
.gj-musician p:last-of-type { margin-bottom: 1.5rem; }
.gj-musician__meta a { text-decoration: underline; text-underline-offset: 3px; }
.gj-musician__meta a + a { margin-left: .75rem; }
.gj-music__note { margin-top: 1.25rem; }
.gj-music > p:not(.gj-music__intro) { max-width: 820px !important; margin-inline: auto !important; }
.gj-music .gj-back { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; }

/* Musicians page: two small staggered photos, like the old page */
.gj-offer-music .gj-collage > .wp-block-image:first-child { grid-column: auto; }
.gj-offer-music .gj-collage > .wp-block-image:first-child img { aspect-ratio: 3 / 4; }
.gj-offer-music .gj-collage > .wp-block-image:nth-child(even) { margin-top: 3rem !important; }
.gj-offer-music .gj-collage { max-width: 460px; }

/* ---------- Cursor: the spruce twig from the logo, the logo fork over links (mouse only; text fields keep the text cursor) ---------- */
@media (hover: hover) and (pointer: fine) {
	html { cursor: url("assets/cursor/cursor-twig.svg") 3 3, auto; }
	a, button, summary, label, select, [role="button"],
	input[type="checkbox"], input[type="radio"], input[type="submit"],
	.gj-carousel-nav button, .gj-form__check, .gj-form__check input, .gj-form__submit,
	.wp-block-navigation a, .wp-block-navigation button, .wp-block-social-link a,
	a.wp-element-button, a.wp-block-button__link, button.wp-element-button {
		cursor: url("assets/cursor/cursor-fork.svg") 4 4, pointer;
	}
	.gj-carousel-nav button:disabled { cursor: url("assets/cursor/cursor-twig.svg") 3 3, default; }
}
