/*
Theme Name: IfWeTravel — Departure
Theme URI: https://ifwetravel.com
Author: Digital ID
Author URI: https://digitalid.lt
Description: Minimalistinė, tipografijos vedama tema kelionių affiliate content svetainei. Vienas šriftas (Bricolage Grotesque), du neutralai ir vienas signalinis akcentas — įkvėpta oro uostų išvykimo lentų. Sukurta pagal Custom Web skill'o kūrybinę koncepciją "Departure", su premium judesio sluoksniu (scroll-reveal, glass header, signature easing) ir Travelpayouts kainų automatizacija.
Version: 1.1.8
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ifwetravel
Tags: minimal, travel, affiliate, block-patterns, translation-ready
License: GNU General Public License v2 or later
License URI: LICENSE
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--ink: #121212;
	--paper: #FAFAF7;
	--paper-2: #F0EFEA;
	--amber: #FF8A00;
	--amber-dark: #E67600;
	--fog: #78766E;
	--line: #E4E2DA;

	--font-body: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;

	--container: 1200px;
	--gutter: 120px;
	--gutter-tablet: 48px;
	--gutter-mobile: 24px;

	/* Motion — one signature curve, two duration bands (Custom Web:
	   Design System Blueprint §8). Every transition in this file uses
	   these two tokens; nothing animates on an ad-hoc timing. */
	--ease-signature: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-ui: 0.35s;
	--dur-entrance: 1.1s;

	/* Elevation — ink-toned, low-opacity, three steps + one accent glow
	   reserved for a single hero/CTA moment (Blueprint §6). */
	--shadow-sm: 0 1px 2px rgba(18, 18, 18, 0.06);
	--shadow-md: 0 14px 30px rgba(18, 18, 18, 0.10);
	--shadow-lg: 0 28px 60px rgba(18, 18, 18, 0.16);
	--shadow-glow: 0 0 40px rgba(255, 138, 0, 0.28);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	position: relative;
}

/* Faint paper grain — a cheap inline SVG noise, no image request, kept
   just barely perceptible (2% opacity) so the flat "Departure" surfaces
   pick up a little texture instead of reading as a solid digital fill. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: 0.025;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

a { color: inherit; text-decoration: none; }

button, input, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter-mobile);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--ink);
	color: var(--paper);
	padding: 12px 20px;
}

.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	border: none;
	cursor: pointer;
	padding: 15px 28px;
	transition: background-color var(--dur-ui) var(--ease-signature),
		color var(--dur-ui) var(--ease-signature),
		border-color var(--dur-ui) var(--ease-signature),
		box-shadow var(--dur-ui) var(--ease-signature),
		transform var(--dur-ui) var(--ease-signature);
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--amber); color: var(--ink); box-shadow: var(--shadow-glow); }

.btn-accent { background: var(--amber); color: var(--ink); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--amber-dark); box-shadow: var(--shadow-glow); }

.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--amber); color: var(--amber-dark); }

.btn-outline-light { background: transparent; color: var(--paper); border: 1.5px solid var(--paper); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { border-color: var(--amber); color: var(--amber); }

.btn:active { transform: scale(0.97); }

.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ==========================================================================
   4. Site header / navigation
   ========================================================================== */

.site-header {
	min-height: 88px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--gutter);
	position: sticky;
	top: 0;
	background: var(--paper);
	border-bottom: 1px solid transparent;
	z-index: 100;
	transition: background-color var(--dur-ui) var(--ease-signature),
		border-color var(--dur-ui) var(--ease-signature),
		box-shadow var(--dur-ui) var(--ease-signature);
}

/* Glass state once the page has scrolled past the hero — toggled by
   main.js via IntersectionObserver, not a scroll-position guess. */
.site-header.is-scrolled {
	background: rgba(250, 249, 247, 0.82);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--line);
	box-shadow: var(--shadow-sm);
}

.site-logo {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.site-logo .dot,
.brand-dot { color: var(--amber); }

.primary-nav ul { display: flex; align-items: center; gap: 32px; }
.primary-nav a {
	font-size: 14px;
	font-weight: 500;
	transition: color var(--dur-ui) var(--ease-signature), opacity var(--dur-ui) var(--ease-signature);
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--amber-dark); opacity: 0.75; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switcher { position: relative; }
.lang-switcher-toggle {
	font-size: 13px;
	font-weight: 600;
	border: 1px solid var(--line);
	background: transparent;
	padding: 8px 12px;
	cursor: pointer;
}
.lang-switcher-menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	background: var(--paper);
	border: 1px solid var(--line);
	min-width: 140px;
	padding: 6px;
}
.lang-switcher.is-open .lang-switcher-menu { display: block; }
.lang-switcher-menu a { display: block; padding: 8px 10px; font-size: 13px; }
.lang-switcher-menu a:hover { background: var(--paper-2); }

.menu-toggle { display: none; }

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: 620px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
	padding: 96px var(--gutter);
	overflow: hidden;
}

/* Slow-drifting amber mesh behind the hero copy — the one place the
   accent is allowed to spread out, kept faint enough to stay a mood,
   never a surface. Disabled entirely under reduced motion. */
.hero::before {
	content: "";
	position: absolute;
	inset: -20%;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(38% 42% at 82% 18%, rgba(255, 138, 0, 0.10), transparent 70%),
		radial-gradient(30% 34% at 8% 82%, rgba(255, 138, 0, 0.07), transparent 70%);
	animation: hero-mesh-drift 22s var(--ease-signature) infinite alternate;
}

@keyframes hero-mesh-drift {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

.hero > * { position: relative; z-index: 1; }

.hero-route {
	position: absolute;
	right: 80px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.9;
	pointer-events: none;
	z-index: 1;
	transition: transform 0.6s var(--ease-signature);
}

.hero-kicker {
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fog);
	font-weight: 700;
}

.hero-title {
	font-size: clamp(36px, 5vw, 72px);
	max-width: 820px;
}

.hero-subtitle {
	font-size: 17px;
	line-height: 1.6;
	color: var(--fog);
	max-width: 480px;
}

.hero-search {
	display: flex;
	align-items: stretch;
	border: 1.5px solid var(--ink);
	max-width: 640px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.hero-search-field {
	flex: 1;
	min-width: 160px;
	padding: 18px 22px;
	font-size: 14px;
	color: var(--fog);
	border-right: 1px solid var(--line);
	border: none;
	background: transparent;
}

.hero-search-field:last-of-type { border-right: none; }

.hero-search .btn { border-radius: 0; }

/* ==========================================================================
   6. Trust bar
   ========================================================================== */

.trust-bar {
	min-height: 96px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px;
	padding: 24px var(--gutter);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.trust-bar-label { font-size: 12px; color: var(--fog); font-weight: 600; }
.trust-bar-item { font-size: 14px; font-weight: 700; }
.trust-bar-sep { color: var(--line); }

/* ==========================================================================
   7. Section headings
   ========================================================================== */

.section {
	padding: 96px var(--gutter);
}

.section-alt { background: var(--paper-2); }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.section-title { font-size: 32px; }

.section-link { font-size: 14px; font-weight: 600; color: var(--amber-dark); }
.section-link:hover { text-decoration: underline; }

/* ==========================================================================
   8. Card grids (destinations / guides / categories)
   ========================================================================== */

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.card-grid.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
	background: var(--paper);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
	transition: transform var(--dur-ui) var(--ease-signature), box-shadow var(--dur-ui) var(--ease-signature);
}

.card:hover, .card:focus-within {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
	z-index: 2;
}

.card-thumb-link { display: block; overflow: hidden; }

.card-thumb-link .card-thumb { transition: transform 0.6s var(--ease-signature); }
.card:hover .card-thumb-link .card-thumb { transform: scale(1.06); }

.card-index {
	font-size: 13px;
	font-weight: 700;
	color: var(--amber-dark);
}

.card-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.card-coords { font-size: 12px; color: var(--fog); }

.card-title { font-size: 22px; letter-spacing: -0.01em; }

.card-price { font-size: 13px; color: var(--fog); }

.card-excerpt { font-size: 14px; color: var(--fog); line-height: 1.5; }

.card-link { font-size: 13px; font-weight: 600; color: var(--amber-dark); }
.card-link:hover { text-decoration: underline; }

.card-thumb {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 8px;
	background: var(--paper-2);
}

/* Destination cards with a real photo: index + coordinates move onto the
   image itself as translucent chips, with a bottom scrim for legibility,
   instead of sitting in a plain row above the title. */
.card-destination.has-thumb { padding-top: 0; }

.card-destination .card-thumb-link {
	position: relative;
	margin: -32px -32px 20px;
	border-radius: 0;
}

.card-destination .card-thumb-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 14px;
	background: linear-gradient(180deg, rgba(18, 18, 18, 0.32) 0%, rgba(18, 18, 18, 0) 32%, rgba(18, 18, 18, 0) 68%, rgba(18, 18, 18, 0.5) 100%);
	pointer-events: none;
}

.card-index-chip,
.card-coords-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.card-index-chip {
	background: rgba(255, 138, 0, 0.92);
	color: var(--ink);
	font-weight: 700;
}

.card-coords-chip {
	background: rgba(18, 18, 18, 0.45);
	color: var(--paper);
	font-weight: 500;
	letter-spacing: 0.01em;
}

.card-link-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.card-link-arrow {
	display: inline-block;
	transition: transform var(--dur-ui) var(--ease-signature);
}

.card-link-cta:hover .card-link-arrow { transform: translateX(4px); }

/* Visitor-aware personalization (assets/js/geo.js): a quiet flash when a
   card's price is swapped from the sitewide default to a live quote for
   the visitor's own nearest airport, and a dismissible corner banner
   offering to switch to the visitor's language when a translation of
   the current page exists. */
.card-price-amount.price-live {
	animation: ifwPriceFlash 900ms var(--ease-signature);
}

@keyframes ifwPriceFlash {
	0% { opacity: 0.3; }
	100% { opacity: 1; }
}

.ifw-lang-banner {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	max-width: 320px;
	background: var(--ink);
	color: var(--paper);
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity var(--dur-ui) var(--ease-signature), transform var(--dur-ui) var(--ease-signature);
}

.ifw-lang-banner.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ifw-lang-banner p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
}

.ifw-lang-banner-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ifw-lang-banner-switch {
	background: var(--amber);
	color: var(--ink);
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 13px;
}

.ifw-lang-banner-switch:hover { background: var(--amber-dark); }

.ifw-lang-banner-dismiss {
	background: none;
	border: none;
	color: rgba(250, 250, 247, 0.65);
	font-size: 13px;
	cursor: pointer;
	padding: 8px 4px;
}

.ifw-lang-banner-dismiss:hover { color: var(--paper); }

@media (max-width: 480px) {
	.ifw-lang-banner {
		left: 16px;
		right: 16px;
		max-width: none;
	}
}

/* ==========================================================================
   9. Newsletter
   ========================================================================== */

.newsletter {
	min-height: 260px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: 64px var(--gutter);
	background: var(--ink);
	color: var(--paper);
	text-align: center;
}

.newsletter-title { font-size: 30px; }
.newsletter-subtitle { font-size: 15px; color: #B3B0A8; max-width: 420px; }

.newsletter-form {
	display: flex;
	gap: 0;
	border: 1.5px solid var(--paper);
	max-width: 440px;
	width: 100%;
	flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
	flex: 1;
	min-width: 180px;
	padding: 14px 18px;
	font-size: 14px;
	color: var(--paper);
	background: transparent;
	border: none;
}

.newsletter-form input[type="email"]::placeholder { color: #B3B0A8; }

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: 72px var(--gutter) 40px;
	background: var(--ink);
	color: #918E85;
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 300px; }
.footer-brand .site-logo { color: var(--paper); }
.footer-desc { font-size: 13px; line-height: 1.6; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5F5C54;
	font-weight: 700;
}
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--amber); }

.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 220px; font-size: 12px; }
.footer-langs span, .footer-langs a { border: 1px solid #33312A; padding: 5px 10px; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #33312A;
	padding-top: 24px;
	font-size: 12px;
	color: #5F5C54;
}

/* ==========================================================================
   11. Single / page content
   ========================================================================== */

.content-area { padding: 72px var(--gutter); max-width: 800px; margin: 0 auto; }
.content-area h1 { font-size: 40px; margin-bottom: 16px; }
.content-area .entry-meta { font-size: 13px; color: var(--fog); margin-bottom: 32px; }
.content-area .entry-content { font-size: 17px; line-height: 1.7; }
.content-area .entry-content h2 { font-size: 26px; margin: 40px 0 16px; }
.content-area .entry-content h3 { font-size: 20px; margin: 32px 0 12px; }
.content-area .entry-content p { margin: 0 0 20px; }
.content-area .entry-content a { color: var(--amber-dark); text-decoration: underline; }
.content-area .entry-content img { margin: 24px 0; }

/* ==========================================================================
   12. Destination single template — the practical-info page behind
   each "Kryptys" card: hero photo, quick-facts bar, activities/stay
   sections, closing booking CTA (single-destination.php).
   ========================================================================== */

.destination-hero { position: relative; }

.destination-hero-media { position: relative; }

.destination-hero-img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.destination-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 18, 18, 0.55) 0%, rgba(18, 18, 18, 0.05) 45%, rgba(18, 18, 18, 0) 70%);
}

.destination-hero-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px var(--gutter);
	color: var(--paper);
}

.destination-back {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	opacity: 0.85;
	margin-bottom: 16px;
}
.destination-back:hover { opacity: 1; }

.destination-title { font-size: 44px; color: var(--paper); margin-bottom: 12px; }

.destination-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }

.destination-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	background: rgba(250, 250, 247, 0.16);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* When a destination has no featured image, the hero still needs
   room to breathe — dark ink background instead of an empty scrim. */
.destination-hero:not(.has-thumb) {
	background: var(--ink);
}
.destination-hero:not(.has-thumb) .destination-hero-content {
	position: static;
	padding: 64px var(--gutter) 40px;
}

.destination-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	max-width: var(--container);
	margin: -1px auto 0;
	position: relative;
	z-index: 2;
}

.fact-card {
	background: var(--paper);
	padding: 28px var(--gutter-mobile);
}

.fact-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fog);
	margin-bottom: 8px;
}

.fact-value { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.fact-value-sm { font-size: 18px; font-weight: 700; }

.fact-card-price .card-link-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--amber-dark);
}
.fact-card-price .card-link-cta:hover .card-link-arrow { transform: translateX(4px); }

.destination-body {
	max-width: 800px;
	margin: 0 auto;
	padding: 56px var(--gutter);
}

.destination-section + .destination-section { margin-top: 48px; }
.destination-body .entry-content + .destination-section { margin-top: 8px; }

.destination-section h2 { font-size: 24px; margin-bottom: 20px; }

.destination-list { display: grid; gap: 12px; }

.destination-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
	line-height: 1.5;
}

.destination-list-mark {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--amber);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	margin-top: 1px;
}

.destination-list-stay li { display: block; }
.destination-list-stay li span { color: var(--fog); }
.destination-list-stay { margin-bottom: 24px; }

.destination-cta {
	background: var(--ink);
	color: var(--paper);
	padding: 56px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.destination-cta-kicker {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--amber);
	margin-bottom: 8px;
}

.destination-cta h2 { font-size: 26px; color: var(--paper); font-weight: 700; }
.destination-cta h2 .card-price-amount { color: var(--amber); font-weight: 800; }

/* ==========================================================================
   13. Motion — scroll reveal, footer link states
   ========================================================================== */

/* Scroll-entrance system: elements start faded/offset and are flipped to
   .is-in by main.js via IntersectionObserver as they enter the viewport.
   Fade + a small translateY only (24–40px) — never a slide from off-
   screen — staggered per sibling so groups arrive in sequence, not all
   at once (Design System Blueprint §8). */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity var(--dur-entrance) var(--ease-signature),
		transform var(--dur-entrance) var(--ease-signature);
}

.reveal.is-in { opacity: 1; transform: translateY(0); }

.card-grid .reveal:nth-child(1) { transition-delay: 0s; }
.card-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.card-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.card-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.footer-col a,
.footer-langs a,
.card-link,
.section-link {
	transition: opacity var(--dur-ui) var(--ease-signature), color var(--dur-ui) var(--ease-signature);
}
.footer-col a:hover,
.footer-langs a:hover { opacity: 0.7; }

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	:root { --gutter: var(--gutter-tablet); }
	.card-grid, .card-grid.card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-route { display: none; }
}

@media (max-width: 782px) {
	:root { --gutter: var(--gutter-mobile); }

	.primary-nav { display: none; }

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border: 1px solid var(--line);
		background: transparent;
		cursor: pointer;
	}

	.site-header.is-menu-open .primary-nav {
		display: flex;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		padding: 16px var(--gutter-mobile) 24px;
	}

	.site-header.is-menu-open .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }

	.card-grid, .card-grid.card-grid-4 { grid-template-columns: 1fr; }

	.section { padding: 64px var(--gutter); }

	.footer-top { flex-direction: column; gap: 32px; }

	.destination-title { font-size: 32px; }
	.destination-facts { grid-template-columns: 1fr; }
	.destination-cta { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   15. Reduced motion — every animation above is decorative, none of it
   carries information, so it all switches off cleanly here.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.reveal { opacity: 1; transform: none; }
	.hero::before { animation: none; }
}
