/*
Theme Name: Kucavana
Theme URI: https://www.kucavana.es
Author: Kucavana
Description: Tema ligero y orientado al SEO para Kucavana, el blog de viajes en autocaravana en familia.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: kucavana
*/

/* ---------- Tokens ---------- */
@font-face {
	font-family: "Outfit";
	src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #1c2a30;
	--ink-soft: #46565c;
	--muted: #6b777b;
	--sun: #f2b231;
	--sun-deep: #c98a00;
	--sun-soft: #fdf1d6;
	--sand: #faf7f1;
	--paper: #ffffff;
	--line: #e9e3d7;
	--road: #2f4a52;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(28, 42, 48, .06), 0 8px 24px rgba(28, 42, 48, .07);
	--wrap: 1200px;
	--read: 720px;
	--font-head: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--sand);
	color: var(--ink);
	font: 400 1.0625rem/1.7 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
img { display: block; }
a { color: var(--road); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun-deep); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 1.6em 0 .55em;
	font-weight: 650;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }
h4 { font-size: 1.15rem; }
p, ul, ol, figure, blockquote, table { margin: 0 0 1.25em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--sun-soft); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	position: fixed !important; top: 12px; left: 12px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--read { max-width: calc(var(--read) + 40px); }

.btn {
	display: inline-flex; align-items: center; gap: .5em;
	font: 600 1rem/1 var(--font-head);
	padding: .9em 1.4em; border-radius: 999px; border: 0;
	background: var(--sun); color: var(--ink); text-decoration: none; cursor: pointer;
	transition: background .2s, transform .2s;
}
.btn:hover { background: #ffc54d; color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 2px var(--sun); }

.eyebrow {
	display: inline-block; font: 600 .78rem/1 var(--font-head);
	letter-spacing: .09em; text-transform: uppercase; color: var(--sun-deep);
	margin-bottom: .9rem;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid var(--line);
	isolation: isolate;
}
/* The blur lives on a pseudo-element: a backdrop-filter on the header itself would
   trap the fixed mobile menu inside the header box. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__logo { height: 52px; width: auto; border-radius: 6px; }
/* The logo is black line art on a transparent background: give it a white tile on the dark footer. */
.site-footer .brand { background: #fff; padding: 10px 14px; border-radius: 14px; display: inline-flex; }
.site-footer .brand__logo { height: 64px; border-radius: 0; }
.brand__name { font: 700 1.45rem/1 var(--font-head); letter-spacing: -0.02em; }
.brand__name span { color: var(--sun-deep); }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > div > ul,
.primary-nav > ul { display: flex; gap: 4px; }
.primary-nav a {
	display: block; text-decoration: none; color: var(--ink);
	font: 500 .98rem/1.3 var(--font-head);
	padding: 10px 12px; border-radius: var(--radius-sm);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { background: var(--sun-soft); color: var(--ink); }
.primary-nav li { position: relative; }
.primary-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg); opacity: .55;
}
.primary-nav .sub-menu .menu-item-has-children > a::after { transform: translateY(-1px) rotate(-45deg); float: right; margin-top: 8px; }

/* desktop dropdowns */
@media (min-width: 1025px) {
	.primary-nav .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 240px;
		background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
		box-shadow: var(--shadow); padding: 8px;
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .15s, transform .15s, visibility .15s;
	}
	.primary-nav .sub-menu .sub-menu { top: -9px; left: 100%; column-count: 2; column-gap: 4px; width: 460px; }
	.primary-nav .sub-menu .sub-menu li { break-inside: avoid; }
	.primary-nav > ul > li:nth-last-child(-n+3) .sub-menu .sub-menu { left: auto; right: 100%; }
	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu a { font-weight: 450; padding: 8px 12px; }
	/* level 4+ is hidden on desktop to keep menus short */
	.primary-nav .sub-menu .sub-menu .sub-menu { display: none; }
	.primary-nav .sub-menu .sub-menu .menu-item-has-children > a::after { display: none; }
	.submenu-toggle { display: none; }
}

.header-actions { display: flex; align-items: center; gap: 6px; }
.primary-nav + .header-actions { margin-left: 8px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border-radius: 999px; border: 0; background: transparent; color: var(--ink);
	cursor: pointer; text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--sun-soft); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--sun); color: var(--ink);
	font: 700 .7rem/18px var(--font-head); text-align: center;
}
.menu-toggle { display: none; }

.header-search { border-top: 1px solid var(--line); background: var(--paper); padding: 16px 0; }
.header-search[hidden] { display: none; }

/* mobile nav */
@media (max-width: 1024px) {
	.menu-toggle { display: inline-grid; }
	.header-actions { margin-left: auto; }
	.primary-nav {
		position: fixed; inset: 68px 0 0 0; margin: 0;
		background: var(--paper); overflow-y: auto; padding: 12px 20px 40px;
		transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
	}
	.admin-bar .primary-nav { top: 114px; }
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.primary-nav > div > ul, .primary-nav > ul { flex-direction: column; gap: 0; }
	.primary-nav li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.primary-nav li > a { flex: 1; padding: 14px 4px; font-size: 1.08rem; }
	.primary-nav .sub-menu { display: none; width: 100%; padding-left: 14px; }
	.primary-nav .sub-menu li:last-child { border-bottom: 0; }
	.primary-nav .sub-menu a { font-size: 1rem; padding: 11px 4px; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.submenu-toggle {
		width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--ink);
		display: grid; place-items: center; border-radius: var(--radius-sm);
	}
	.submenu-toggle::before {
		content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: rotate(45deg); transition: transform .2s;
	}
	.is-open > .submenu-toggle::before { transform: rotate(-135deg); }
}

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 14px 18px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(20, 30, 34, .25) 0%, rgba(20, 30, 34, .55) 55%, rgba(20, 30, 34, .82) 100%);
}
.hero__inner { padding: clamp(96px, 16vw, 180px) 0 clamp(48px, 7vw, 80px); max-width: 780px; }
.hero h1 { color: #fff; margin: 0 0 .4em; text-wrap: balance; }
.hero .eyebrow { color: var(--sun); }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .9); max-width: 620px; margin-bottom: 1.6em; }
.hero .search-form { margin: 0; max-width: 560px; }
.hero .search-form input[type="search"] { border: 0; padding: 16px 22px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
	display: inline-block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
	font: 500 .92rem/1.2 var(--font-head);
	background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.chip:hover { background: var(--sun-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--sun); }
.hero .chip { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .chip:hover { background: var(--sun); color: var(--ink); box-shadow: none; }

.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; flex-direction: column; text-align: center; }
.trust strong { font: 700 1.6rem/1.1 var(--font-head); color: var(--ink); }
.trust span { font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--white { background: var(--paper); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: .4em 0 0; color: var(--muted); max-width: 560px; }
.link-more { font: 600 1rem/1 var(--font-head); text-decoration: none; color: var(--ink); white-space: nowrap; }
.link-more::after { content: " →"; color: var(--sun-deep); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .grid--4 { grid-template-columns: 1fr; gap: 22px; } }

.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--paper); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(28, 42, 48, .06), 0 16px 36px rgba(28, 42, 48, .12); }
.card__media { aspect-ratio: 3 / 2; background: var(--sun-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font: 600 .75rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--sun-deep); text-decoration: none; position: relative; z-index: 2; }
.card__title { font-size: 1.18rem; margin: 0; line-height: 1.3; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.55; }
.card__meta { margin-top: auto; padding-top: 6px; font-size: .85rem; color: var(--muted); }

.card--feature { grid-column: span 2; grid-row: span 2; }
.card--feature .card__media { aspect-ratio: auto; flex: 1; min-height: 280px; }
.card--feature .card__body { flex: 0 0 auto; }
.card--feature .card__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
@media (max-width: 1024px) { .card--feature { grid-column: span 2; grid-row: auto; } .card--feature .card__media { aspect-ratio: 16 / 10; flex: none; min-height: 0; } }
@media (max-width: 640px) { .card--feature { grid-column: auto; } }

/* destination tiles */
.tile {
	position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
	color: #fff; text-decoration: none; isolation: isolate; background: var(--road);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(15, 24, 28, .85)); }
.tile:hover img { transform: scale(1.05); }
.tile:hover { color: #fff; }
.tile__body { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.tile__name { font: 700 1.45rem/1.1 var(--font-head); display: block; }
.tile__count { font-size: .9rem; opacity: .85; }

/* guide list */
.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.guides li a {
	display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: var(--radius);
	text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
}
.guides li a:hover { border-color: var(--sun); }
.guides img, .guides__ph { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.guides__ph { display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-deep); }
.guides__ph svg { width: 34px; height: 34px; }
.guides strong { font: 600 1.05rem/1.3 var(--font-head); }
@media (max-width: 760px) { .guides { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__media img { border-radius: calc(var(--radius) * 1.5); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; box-shadow: var(--shadow); }
.about h2 { margin-top: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* newsletter */
.newsletter {
	background: var(--ink); color: #fff; border-radius: calc(var(--radius) * 1.5);
	padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.newsletter h2 { color: #fff; margin: 0 0 .3em; }
.newsletter p { color: rgba(255, 255, 255, .8); margin: 0; }
.newsletter input[type="email"], .newsletter input[type="text"] {
	width: 100%; font: inherit; padding: 14px 18px; border-radius: 999px; border: 0; margin-bottom: 10px;
}
.newsletter input[type="submit"], .newsletter button {
	font: 600 1rem/1 var(--font-head); padding: 15px 24px; border-radius: 999px; border: 0;
	background: var(--sun); color: var(--ink); cursor: pointer;
}
.newsletter a:not(.btn) { color: var(--sun); }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }

/* Partner (affiliate) block on the home page */
.section--tight { padding-top: 0; }
.partner {
	display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 4vw, 40px); align-items: center;
	padding: clamp(24px, 4vw, 36px); border-radius: calc(var(--radius) * 1.5);
	background: var(--sun-soft); border: 1px solid #f6e2b3;
}
.partner__logo { background: var(--paper); border-radius: var(--radius); padding: 22px; display: grid; place-items: center; box-shadow: var(--shadow); }
.partner__logo img { width: 100%; max-width: 150px; height: auto; }
.partner h2 { margin: 0 0 .4em; }
.partner p { color: var(--ink-soft); }
.partner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 1.2em 0 .6em; }
.partner__note { font-size: .82rem; color: var(--muted); margin: 0; }
@media (max-width: 700px) { .partner { grid-template-columns: 1fr; } .partner__logo { max-width: 180px; } }

/* ---------- About page ---------- */
.hero--about .hero__inner { padding: clamp(80px, 12vw, 150px) 0 clamp(40px, 6vw, 64px); }
.hero--about .breadcrumbs, .hero--about .breadcrumbs a { color: rgba(255, 255, 255, .8); }
.about--reverse { grid-template-columns: 6fr 5fr; }
@media (max-width: 860px) { .about--reverse { grid-template-columns: 1fr; } .about--reverse .about__media { order: -1; } }

.yt-lite {
	position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
	background: var(--ink); border-radius: calc(var(--radius) * 1.5); overflow: hidden; box-shadow: var(--shadow);
}
.yt-lite img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s, opacity .3s; }
.yt-lite:hover img { transform: scale(1.03); opacity: .9; }
.yt-lite__play {
	position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
	border-radius: 50%; background: var(--sun); box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.yt-lite__play::after {
	content: ""; position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -7px;
	border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--ink);
}
.yt-lite__label {
	position: absolute; left: 16px; bottom: 14px; padding: 7px 12px; border-radius: 999px;
	background: rgba(20, 30, 34, .75); color: #fff; font: 600 .9rem/1.2 var(--font-head);
}
.yt-lite iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }

.crew { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: stretch; }
.crew__photo { margin: 0; }
.crew__photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: calc(var(--radius) * 1.5); }
.crew__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.crew__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.crew__card h3 { margin: 12px 0 6px; }
.crew__card p { margin: 0; color: var(--ink-soft); font-size: .97rem; line-height: 1.6; }
.crew__avatar {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	background: var(--sun-soft); color: var(--sun-deep); font: 700 1.3rem/1 var(--font-head);
}
@media (max-width: 960px) { .crew { grid-template-columns: 1fr; } .crew__photo img { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .crew__cards { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sun-soft); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .88rem; line-height: 1.35;
	background: linear-gradient(180deg, transparent, rgba(15, 24, 28, .85)); pointer-events: none;
}
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery__item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; } }

.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partners a {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; height: 100%;
	padding: 22px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s;
}
.partners a:hover { border-color: var(--sun); transform: translateY(-2px); color: var(--ink); }
.partners__logo { display: grid; place-items: center; height: 96px; width: 100%; margin-bottom: 8px; }
.partners__logo img { max-height: 96px; max-width: 160px; width: auto; height: auto; object-fit: contain; }
.partners__text { font: 700 1.25rem/1.2 var(--font-head); color: var(--road); }
.partners strong { font: 600 1.02rem/1.3 var(--font-head); }
.partners span:last-child { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .partners { grid-template-columns: 1fr; } }

.fest {
	display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin-top: 28px;
	padding: 28px; background: var(--sun-soft); border-radius: calc(var(--radius) * 1.5);
}
.fest__logo img { width: 100%; height: auto; border-radius: var(--radius); background: #fff; }
.fest h3 { margin: 0 0 .4em; }
@media (max-width: 640px) { .fest { grid-template-columns: 1fr; } .fest__logo { max-width: 180px; } }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn--light:hover { background: #fff; color: var(--ink); }

/* ---------- Archive header ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); }
.page-hero h1 { margin: .2em 0 .3em; }
.page-hero__desc { color: var(--ink-soft); max-width: 720px; font-size: 1.08rem; }
.page-hero__desc p:last-child { margin-bottom: 0; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* breadcrumbs */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--sun-deep); }
.breadcrumbs .breadcrumb_last, .breadcrumbs [aria-current] { color: var(--ink-soft); }

/* pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--line); font: 600 .95rem/1 var(--font-head);
}
.pagination .page-numbers.current { background: var(--sun); box-shadow: none; }
.pagination a.page-numbers:hover { box-shadow: inset 0 0 0 1px var(--sun); }

/* ---------- Single ---------- */
.entry-header { padding: clamp(28px, 5vw, 56px) 0 24px; }
.entry-header h1 { margin: .35em 0 .4em; text-wrap: balance; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--muted); font-size: .92rem; }
.entry-meta a { color: var(--ink-soft); text-decoration: none; }
.entry-meta__author { display: flex; align-items: center; gap: 10px; }
.entry-meta__author img { width: 36px; height: 36px; border-radius: 50%; }
.entry-cat { display: inline-block; font: 600 .78rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--sun-deep); text-decoration: none; }

.entry-figure { margin: 0 auto 36px; max-width: 1040px; padding: 0 20px; }
.entry-figure img { width: 100%; border-radius: calc(var(--radius) * 1.3); aspect-ratio: 16 / 9; object-fit: cover; }

.entry-content { font-size: 1.11rem; line-height: 1.75; }
.entry-content > * { max-width: var(--read); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.9em; padding-top: .2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--sun-deep); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin-top: 1.8em; margin-bottom: 1.8em; }
.entry-content figcaption, .wp-caption-text { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .6em; }
.entry-content blockquote, .entry-content .wp-block-quote {
	border-left: 4px solid var(--sun); background: var(--paper); padding: 18px 24px;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.08rem; color: var(--ink-soft);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .96rem; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--sun-soft); font-family: var(--font-head); }
/* Only plain text links get the theme link style: plugin and block buttons keep their own colours. */
.entry-content :where(a:not([class])) { color: var(--road); text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.entry-content :where(a:not([class])):hover { color: var(--sun-deep); }
.entry-content iframe { display: block; width: 100%; margin-left: auto; margin-right: auto; border: 0; border-radius: var(--radius-sm); }
/* Embedded maps keep a usable height on every screen. */
.entry-content iframe[src*="google.com/maps"],
.entry-content iframe[src*="openstreetmap"],
.entry-content iframe[src*="wikiloc"] { height: auto; aspect-ratio: 4 / 3; min-height: 360px; }

/* Block buttons in brand colours (only when the editor did not choose colours). */
.entry-content .wp-block-button__link {
	font: 600 1rem/1.3 var(--font-head); padding: .9em 1.5em; border-radius: 999px; text-decoration: none;
	transition: transform .2s, filter .2s;
}
.entry-content .wp-block-button__link:not(.has-background) { background: var(--sun); }
.entry-content .wp-block-button__link:not(.has-text-color) { color: var(--ink); }
.entry-content .wp-block-button__link.has-background:not(.has-text-color) { color: #fff; }
.entry-content .wp-block-button__link:hover { transform: translateY(-1px); filter: brightness(1.05); }
.entry-content .is-style-outline .wp-block-button__link:not(.has-background) { background: transparent; box-shadow: inset 0 0 0 2px var(--sun); }
.entry-content .wp-block-image img, .entry-content .wp-caption img { margin: 0 auto; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
@media (max-width: 640px) { .alignleft, .alignright { float: none; margin: 1em auto; } }
.wp-caption { max-width: 100%; }

/* Easy Table of Contents */
.entry-content #ez-toc-container {
	background: var(--paper) !important; border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important; padding: 18px 22px !important; box-shadow: none !important;
	width: auto !important; display: block !important;
}
.entry-content #ez-toc-container .ez-toc-title { font-family: var(--font-head); font-weight: 650; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }

.author-box {
	display: flex; gap: 20px; align-items: flex-start; margin: 48px 0 0; padding: 24px;
	background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.author-box h2 { font-size: 1.15rem; margin: 0 0 .3em; }
.author-box p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.share { display: flex; align-items: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; font: 600 .95rem/1 var(--font-head); }
.share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.share a:hover { background: var(--sun-soft); }
.share svg { width: 18px; height: 18px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.post-nav a { display: block; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font: 600 1rem/1.35 var(--font-head); }
.post-nav a:hover { border-color: var(--sun); }
.post-nav span { display: block; font: 500 .8rem/1 var(--font-body); color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }

/* comments */
.comments-area { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 40px); }
.comment-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.comment-meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.reply a { font: 600 .9rem/1 var(--font-head); text-decoration: none; }
.comment-respond { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.comment-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sand);
}
.comment-form .submit { font: 600 1rem/1 var(--font-head); padding: 14px 24px; border-radius: 999px; border: 0; background: var(--sun); color: var(--ink); cursor: pointer; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.comment-form-cookies-consent label { font-weight: 400; }

/* page */
.page-content { padding-bottom: clamp(48px, 7vw, 88px); }
.page-full .entry-content > * { max-width: none; }

/* 404 / empty */
.empty { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.empty p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); margin-top: 0; padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .96rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55em; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand__name span { color: var(--sun); }
.social { display: flex; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--sun); color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WooCommerce (minimal) ---------- */
.woocommerce-content { padding: 40px 0 80px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: var(--sun) !important; color: var(--ink) !important; border-radius: 999px !important; font-family: var(--font-head); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
