/*
Theme Name: Recuits Nuri
Theme URI: https://recuitsnuri.com
Author: Recuits i Formatges Nuri CB
Description: Tema artesà per a Recuits Nuri. Portada, productes, història, obrador i visites editables des de Personalitza.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recuits-nuri
*/

:root {
	--accent: #24402F;
	--cream: #F7F1E3;
	--sand: #F0E7D1;
	--paper: #FBF7EC;
	--brick: #A8502D;
	--brick-dark: #8F4220;
	--ink: #3E3A2D;
	--muted: #5B5442;
	--stitch: #CDBF9E;
	--stitch-card: #BFB08A;
	--kraft-ink: #4B4128;
	--f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--f-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
	--gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 18px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }

.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; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 100000; background: var(--paper);
	color: var(--accent); padding: 12px 18px; font-weight: 700; border-radius: 8px;
}

.wrap { max-width: 1312px; margin: 0 auto; padding: 0 var(--gutter); }
.section-pad { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.section-sand { background: var(--sand); border-top: 2px dashed var(--stitch); border-bottom: 2px dashed var(--stitch); }

/* ---------- Capçalera ---------- */
.site-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px 32px; padding: 16px var(--gutter);
	border-bottom: 2px dashed var(--stitch); background: var(--cream);
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 14px; min-height: 44px; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; justify-content: center; }
.brand:hover { text-decoration: none; }
.brand-name {
	font-family: var(--f-display); font-style: normal; font-weight: 800;
	font-variation-settings: 'SOFT' 100; letter-spacing: -0.01em;
	font-size: 34px; line-height: 1; margin: 0;
}
.brand-logo { width: auto; height: 56px; max-width: 120px; object-fit: contain; flex: none; }
.footer-logo { width: auto; max-width: 280px; max-height: 72px; }
.brand-tag { font-size: 11px; letter-spacing: 0.24em; color: var(--muted); margin: 5px 0 0; text-transform: uppercase; }
.main-nav ul {
	display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; padding: 0;
	list-style: none; font-size: 16px; font-weight: 500; color: var(--accent);
}
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a[aria-current="page"] { border-bottom: 3px solid var(--brick); }
.header-tools { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--accent); }
.lang ul { display: flex; margin: 0; padding: 0; list-style: none; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; }
.lang .current-menu-item > a, .lang .current-lang > a { font-weight: 700; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }

/* ---------- Botons i enllaços ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
	border-radius: 999px; font-weight: 700; font-size: 17px; line-height: 1.2;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn-primary { background: var(--accent); color: var(--cream); }
.btn-light { border: 2px solid var(--cream); color: var(--cream); padding: 0 26px; }
.link-dash {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
	font-weight: 700; font-size: 17px; color: var(--accent); border-bottom: 2px dashed var(--brick);
}

/* ---------- Textos ---------- */
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brick-dark); }
.eyebrow.light { color: #E3D6B2; }
.title {
	margin: 0 0 14px; font-family: var(--f-display); font-weight: 700;
	font-size: clamp(32px, 4vw, 48px); line-height: 1.08; color: var(--accent);
}
.title.light { color: var(--cream); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; }
.lead-text { margin: 0; font-size: 18px; line-height: 1.55; }
.body-text { margin: 0 0 18px; max-width: 34em; font-size: 18px; line-height: 1.65; }
.hand-eyebrow {
	margin: 0 0 18px; font-family: var(--f-hand); font-weight: 600; font-size: 30px; line-height: 1.1;
	color: var(--brick); transform: rotate(-2deg); transform-origin: left center;
}
.hand-note {
	margin: 22px 0 0; text-align: right; font-family: var(--f-hand); font-weight: 600;
	font-size: 32px; line-height: 1.1; color: var(--cream); transform: rotate(-3deg);
}

/* ---------- Portada ---------- */
.hero {
	display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px;
	max-width: 1312px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter);
}
.hero-text, .hero-art { flex: 1 1 420px; min-width: 0; }
.hero h1 {
	margin: 0 0 24px; font-family: var(--f-display); font-weight: 800;
	font-size: clamp(42px, 6.2vw, 80px); line-height: 1.03; letter-spacing: -0.01em; color: var(--accent);
}
.hero h1 em { font-style: italic; color: var(--brick); }
.hero-lead { margin: 0 0 32px; max-width: 30em; font-size: 21px; line-height: 1.55; }
.hero-art { position: relative; }
.arch {
	position: relative; height: clamp(360px, 44vw, 560px); border-radius: 999px 999px 18px 18px;
	overflow: hidden; background: linear-gradient(165deg, #F0E4C8 0%, #E2CFA5 55%, #D3BB8B 100%);
}
.arch img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.arch-inner {
	position: absolute; top: 14px; right: 14px; bottom: 14px; left: 14px;
	border: 2px dashed rgba(36, 64, 47, 0.45); border-radius: 999px 999px 8px 8px; z-index: 1;
}
.has-img .arch-inner { border-color: rgba(247, 241, 227, 0.85); }
.photo-label {
	position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 2;
	max-width: calc(100% - 64px); text-align: center; background: var(--cream); color: var(--kraft-ink);
	font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
	padding: 8px 14px; border-radius: 999px;
}
.stamp { position: absolute; left: -10px; bottom: -30px; transform: rotate(-10deg); z-index: 3; }

/* ---------- Productes ---------- */
.section-head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 20px 48px; margin-bottom: 40px;
}
.section-head .lead { max-width: 560px; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 44px 28px; }
.card { display: flex; flex-direction: column; color: inherit; }
a.card-photo:hover { text-decoration: none; opacity: 0.92; }
.card-photo {
	position: relative; height: 260px; border-radius: 2px; overflow: hidden;
	display: flex; align-items: flex-end; justify-content: center; padding: 12px;
}
.card-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.badge {
	position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--brick-dark); color: var(--paper);
	font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding: 6px 12px; border-radius: 999px;
}
.tag {
	position: relative; z-index: 2; background: var(--paper); color: var(--kraft-ink);
	font-size: 11px; font-weight: 700; letter-spacing: 0.14em; padding: 5px 10px; border-radius: 999px;
}
.card-body { padding: 20px 8px 0; text-align: center; }
.card-body h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--accent); }
.card-body p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.card-body .price { margin-top: 6px; font-family: var(--f-display); font-size: 18px; color: var(--ink); }
.card-more {
	display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.card-buy {
	display: flex; align-items: center; justify-content: center; min-height: 44px; max-width: 180px; margin: 4px auto 0;
	padding: 6px 8px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
	font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.card-buy:hover { background: var(--ink); color: var(--cream); text-decoration: none; }
.card-cta {
	justify-content: center; align-items: center; text-align: center; gap: 18px; min-height: 260px; padding: 28px;
	border: 1px solid var(--ink); color: var(--ink);
}
.card-cta:hover { text-decoration: none; background: var(--paper); }
.card-cta .card-title { font-family: var(--f-display); font-weight: 500; font-size: 26px; line-height: 1.2; }
.card-cta .circle {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border: 1px solid var(--ink); border-radius: 999px;
}

/* ---------- Valors ---------- */
.values {
	display: flex; flex-wrap: wrap; gap: 36px 48px; max-width: 1312px; margin: 0 auto;
	padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.value { flex: 1 1 260px; display: flex; align-items: flex-start; gap: 18px; }
.value-icon {
	flex: none; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px;
	border: 2px dashed var(--brick); border-radius: 999px; color: var(--accent);
}
.value h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 600; font-size: 21px; line-height: 1.2; color: var(--accent); }
.value p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Història ---------- */
.story {
	display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; max-width: 1312px; margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(56px, 8vw, 104px);
}
.story-photo, .story-text { flex: 1 1 380px; min-width: 0; }
.story-photo { padding: 24px; }
.polaroid {
	position: relative; background: var(--paper); padding: 14px 14px 64px;
	box-shadow: 0 10px 30px rgba(36, 64, 47, 0.18); transform: rotate(-2.5deg);
}
.tape {
	position: absolute; top: -16px; left: 50%; width: 112px; height: 32px; margin-left: -56px;
	background: rgba(168, 80, 45, 0.3); transform: rotate(4deg); z-index: 2;
}
.polaroid-photo {
	position: relative; height: clamp(300px, 34vw, 440px); overflow: hidden;
	background: linear-gradient(160deg, #CFC2A6 0%, #A9997A 100%);
}
.polaroid-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.polaroid-cap {
	position: absolute; left: 24px; bottom: 14px; margin: 0; font-family: var(--f-hand);
	font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--kraft-ink);
}

/* ---------- Obrador ---------- */
.obrador { background: var(--accent); color: var(--cream); }
.scallop {
	height: 14px; background-image: radial-gradient(circle at 12px 0, var(--cream) 0, var(--cream) 12px, transparent 12.5px);
	background-size: 24px 14px; background-repeat: repeat-x;
}
.obrador-inner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; max-width: 1312px; margin: 0 auto;
	padding: clamp(48px, 7vw, 88px) var(--gutter);
}
.obrador-text, .obrador-art { flex: 1 1 380px; min-width: 0; }
.lead-light { margin: 0 0 32px; max-width: 32em; font-size: 18px; line-height: 1.65; color: #EFE6D0; }
.obrador-photo {
	position: relative; height: clamp(260px, 30vw, 380px); border-radius: 16px; overflow: hidden;
	background: linear-gradient(150deg, #D9C79C 0%, #B9C19A 100%);
}
.obrador-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.obrador-photo .frame-dash {
	position: absolute; top: 12px; right: 12px; bottom: 12px; left: 12px; z-index: 1;
	border: 2px dashed rgba(36, 64, 47, 0.45); border-radius: 8px;
}
.obrador-photo.has-img .frame-dash { border-color: rgba(247, 241, 227, 0.85); }
.obrador-photo .photo-label { bottom: 28px; max-width: calc(100% - 56px); }

/* ---------- Contacte ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 36px; }
.contact-item { flex: 1 1 220px; }
.contact-item .label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-item .value-text { margin: 0; font-size: 18px; line-height: 1.5; }
.contact-item .phone { font-family: var(--f-display); font-weight: 600; font-size: 22px; color: var(--accent); }
.contact-item a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Visites ---------- */
.info-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px;
	max-width: 1312px; margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
}
.info { background: var(--paper); border: 2px dashed var(--stitch-card); border-radius: 14px; padding: 24px; }
.info-icon {
	display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px;
	border: 2px dashed var(--brick); border-radius: 999px; color: var(--accent);
}
.info h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.info p { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--accent); }
.cta-band { background: var(--accent); color: var(--cream); }
.cta-inner { max-width: 1312px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.cta-inner > div { flex: 1 1 360px; }
.cta-inner .title { margin-bottom: 12px; }
.cta-inner p { margin: 0; font-size: 18px; line-height: 1.6; color: #EFE6D0; }

/* ---------- Pàgines i entrades ---------- */
.page-wrap { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter); }
.page-wrap.wide { max-width: 1312px; }
.page-title { margin: 0 0 24px; font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; color: var(--accent); }
.entry > * { max-width: 100%; }
.entry p, .entry ul, .entry ol { margin: 0 0 18px; line-height: 1.7; }
.entry h2, .entry h3 { font-family: var(--f-display); font-weight: 600; color: var(--accent); line-height: 1.2; margin: 36px 0 12px; }
.entry a { color: var(--brick-dark); text-decoration: underline; }
.entry img { border-radius: 8px; }
.entry blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px dashed var(--brick); font-family: var(--f-display); font-style: italic; }
.product-single { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.product-single .product-photo { flex: 1 1 360px; min-width: 0; position: relative; min-height: 320px; border-radius: 14px; overflow: hidden; border: 2px dashed var(--stitch-card); padding: 10px; background: var(--paper); }
.product-single .product-photo img { border-radius: 8px; width: 100%; }
.product-single .product-info { flex: 1 1 360px; min-width: 0; }
.post-list article { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 2px dashed var(--stitch); }
.post-list h2 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 600; font-size: 28px; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px; font-weight: 700; }

/* ---------- Peu ---------- */
.site-footer { background: var(--accent); color: var(--cream); }
.footer-top {
	display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 48px;
	max-width: 1312px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--gutter) 28px;
}
.site-footer .brand-name { color: var(--cream); }
.site-footer .brand-tag { color: #E3D6B2; font-size: 12px; margin-top: 8px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; max-width: 420px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.footer-contact .phone-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; font-weight: 700; }
.social {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border: 1.5px solid var(--cream); border-radius: 999px;
}
.footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
	max-width: 1312px; margin: 0 auto; padding: 16px var(--gutter) 28px;
	border-top: 1.5px dashed rgba(247, 241, 227, 0.35); font-size: 14px; color: #E3D6B2;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 600px) {
	.brand-name { font-size: 30px; }
	.stamp { left: -4px; bottom: -36px; }
	.stamp svg { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
