/*
 * Base: reset, typography, layout primitives, buttons, helpers.
 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--zgb-font-body);
	font-size: var(--zgb-fs-base);
	line-height: var(--zgb-lh);
	color: var(--zgb-ink);
	background: var(--zgb-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--zgb-space-4);
	font-family: var(--zgb-font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--zgb-black);
}
h1 { font-size: var(--zgb-fs-h1); }
h2 { font-size: var(--zgb-fs-h2); }
h3 { font-size: var(--zgb-fs-h3); }

p { margin: 0 0 var(--zgb-space-4); }

a { color: var(--zgb-link); text-decoration: none; transition: color var(--zgb-transition); }
a:hover { color: var(--zgb-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--zgb-space-4); padding-left: 1.25rem; }

figure { margin: 0; }

blockquote { margin: 0; }

hr { border: 0; border-top: 1px solid var(--zgb-line); margin: var(--zgb-space-6) 0; }

/* Layout primitives -------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--zgb-container);
	margin-inline: auto;
	padding-inline: var(--zgb-gutter);
}
.container--narrow { max-width: var(--zgb-container-narrow); }

.site-main { display: block; }

section { scroll-margin-top: calc(var(--zgb-header-h) + 1rem); }

/* Section title ------------------------------------------------------ */
.section-title {
	font-size: var(--zgb-fs-h2);
	margin-bottom: var(--zgb-space-5);
}
.section-title--center { text-align: center; }
.section-title--center::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin: var(--zgb-space-3) auto 0;
	background: linear-gradient(90deg, var(--zgb-green), var(--zgb-blue));
	border-radius: var(--zgb-radius-pill);
}

/* ---- Editorial section system ---------------------------------------- */
.zgb-kicker {
	display: inline-block;
	font-family: var(--zgb-font-head);
	font-weight: 600;
	font-size: var(--zgb-fs-kicker);
	text-transform: uppercase;
	letter-spacing: var(--zgb-tracking-kicker);
	color: var(--zgb-blue-dark); /* brand accent, AA on white/cream */
	margin-bottom: var(--zgb-space-3);
}
.zgb-lede {
	font-size: var(--zgb-fs-lede);
	color: var(--zgb-ink-soft);
	max-width: 60ch;
	line-height: 1.55;
}
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--zgb-space-4);
	flex-wrap: wrap;
	margin-bottom: var(--zgb-space-6);
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-title--editorial { text-align: left; margin-bottom: 0; }
.zgb-rule {
	height: 3px;
	width: 64px;
	background: linear-gradient(90deg, var(--zgb-green), var(--zgb-blue));
	border-radius: var(--zgb-radius-pill);
	transform-origin: left center;
}
.zgb-divider { width: 100%; height: 1px; background: var(--zgb-rule); border: 0; margin: 0; }

/* Accent word inside a heading: <em>bite by bite</em> */
.hero__title em, .section-title em { font-style: italic; color: var(--zgb-blue); font-weight: inherit; }

/* Section background cadence */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--cream { background: var(--zgb-cream); }
.section--cream-deep { background: var(--zgb-cream-deep); }
.section--dark { background: var(--zgb-bg-deep); color: var(--zgb-cream); }
.section--dark .section-title,
.section--dark .section-title a { color: #fff; }
.section--dark .zgb-kicker { color: var(--zgb-green-soft); }
.section--dark .zgb-lede { color: color-mix(in srgb, var(--zgb-cream) 80%, transparent); }
/* Dark-section links use the light brand tint — but NOT inside light cards
   on the dark band (e.g. testimonial cards keep their own link color). */
.section--dark a:not(.testimonial a):not(.btn) { color: var(--zgb-blue-soft); }
.section--dark a:not(.testimonial a):not(.btn):hover { color: #fff; }

/* Menu-aligned numerals */
.tour-card__meta, .tour-infobox__value, .timeline__time, .tour-card__price { font-variant-numeric: tabular-nums; }

/* Buttons ------------------------------------------------------------ */
.btn {
	display: inline-block;
	padding: 0.7em 1.5em;
	font-family: var(--zgb-font-head);
	font-weight: 600;
	font-size: var(--zgb-fs-base);
	line-height: 1.2;
	border-radius: var(--zgb-radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--zgb-transition), background var(--zgb-transition), color var(--zgb-transition);
	text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Blue = primary action (white on #2993c0 wants a darker shade for AA → blue-dark);
   green stays for nav/active/focus identity. */
.btn--primary { background: var(--zgb-blue-dark); color: #fff; box-shadow: var(--zgb-shadow-warm); }
.btn--primary:hover { background: var(--zgb-green-dark); color: #fff; box-shadow: var(--zgb-glow-warm); }
.btn--ghost { background: transparent; color: var(--zgb-blue-dark); border-color: var(--zgb-blue); }
.btn--ghost:hover { background: var(--zgb-blue); color: #fff; }
.btn--ghost-cream { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost-cream:hover { background: #fff; color: var(--zgb-blue-dark); border-color: #fff; }
.btn--cream { background: #fff; color: var(--zgb-blue-dark); }
.btn--cream:hover { background: var(--zgb-cream); color: var(--zgb-blue-dark); }

/* Sections rhythm ---------------------------------------------------- */
/* Sections that don't carry the .section class own their rhythm here;
   everything else is governed by .section (responsive clamp) above. */
.related-tours { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bg-alt { background: var(--zgb-bg-alt); }

/* Star rating -------------------------------------------------------- */
.zgb-stars { display: inline-flex; gap: 1px; line-height: 1; color: var(--zgb-gold); font-size: 1rem; }
.zgb-star.is-empty { color: var(--zgb-line); }
.zgb-star.is-half { position: relative; color: var(--zgb-line); }
.zgb-star.is-half::before { content: "★"; position: absolute; left: 0; width: 50%; overflow: hidden; color: var(--zgb-gold); }

/* Accessibility helpers --------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: #fff; color: var(--zgb-ink); padding: 0.75rem 1rem;
	border-radius: 0 0 var(--zgb-radius-sm) 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--zgb-blue);
	outline-offset: 2px;
}

/* Breadcrumbs -------------------------------------------------------- */
.breadcrumbs {
	font-size: var(--zgb-fs-sm);
	color: var(--zgb-muted);
	padding-block: var(--zgb-space-4);
}
.breadcrumbs .sep { margin: 0 0.4em; color: var(--zgb-line); }

/* Generic entry content ---------------------------------------------- */
.entry-content { font-size: 1.05rem; }
.entry-content img { border-radius: var(--zgb-radius-sm); margin-block: var(--zgb-space-4); }
.entry-content h2 { margin-top: var(--zgb-space-6); }

/* Empty states ------------------------------------------------------- */
.content-none { text-align: center; padding-block: var(--zgb-space-10); }

/* Pagination --------------------------------------------------------- */
.pagination, .nav-links, .navigation .nav-links {
	display: flex; gap: var(--zgb-space-2); flex-wrap: wrap;
	justify-content: center; align-items: center;
	margin-top: var(--zgb-space-10);
}
.pagination .page-numbers, .nav-links .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 46px; height: 46px; padding: 0 0.85rem;
	border: 1px solid var(--zgb-line); border-radius: var(--zgb-radius-pill);
	color: var(--zgb-ink); font-family: var(--zgb-font-head); font-weight: 600;
	font-variant-numeric: tabular-nums; background: #fff;
	cursor: pointer;
	transition: background var(--zgb-dur-fast) var(--zgb-ease-out),
	            color var(--zgb-dur-fast), border-color var(--zgb-dur-fast),
	            transform var(--zgb-dur-fast), box-shadow var(--zgb-dur-fast);
}
/* Only real links get hover affordance; current/dots are not clickable */
a.page-numbers:hover {
	border-color: var(--zgb-blue); color: var(--zgb-blue-dark);
	transform: translateY(-2px); box-shadow: var(--zgb-shadow-soft);
}
a.page-numbers:active { transform: translateY(0); }
.pagination .current, .nav-links .current {
	background: linear-gradient(135deg, var(--zgb-green), var(--zgb-blue));
	color: #fff; border-color: transparent;
	box-shadow: var(--zgb-shadow-warm); cursor: default;
}
.page-numbers.dots { border-color: transparent; background: transparent; cursor: default; min-width: auto; }
/* Prev/Next arrows read as pill buttons */
.page-numbers.prev, .page-numbers.next { padding: 0 1.1rem; }

/* Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
