/*
Theme Name: Sabores da Rielle
Theme URI: https://saboresdarielle.pt
Author: Sabores da Rielle
Description: Tema WordPress para o restaurante Sabores da Rielle (Lisboa). Cardápio digital com categorias, pratos, preços, selos e contacto direto pelo WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sdr
Tags: restaurant, food, menu, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
	--bg: #100e0d;
	--bg-soft: #171413;
	--surface: #1d1918;
	--surface-2: #241e1c;
	--line: rgba(201, 164, 94, 0.18);
	--gold: #c9a45e;
	--gold-soft: #e6cb96;
	--cream: #f5ede2;
	--muted: #b7a99a;
	--wine: #5c1b26;
	--radius: 18px;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--header-h: 72px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5rem;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--cream);
}

p {
	margin: 0 0 1rem;
}

ul {
	margin: 0;
	padding: 0;
}

address {
	font-style: normal;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.container {
	width: min(1120px, 100% - 2.5rem);
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100;
	padding: 0.7rem 1rem;
	border-radius: 8px;
	background: var(--gold);
	color: #1a1512;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 1rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Botões ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.9rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--cream);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
		color 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: linear-gradient(135deg, var(--gold), var(--gold-soft));
	color: #1a1512;
}

.btn-primary:hover {
	background: linear-gradient(135deg, var(--gold-soft), #f0d9a8);
}

.btn-outline {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
	border-color: var(--gold);
	color: var(--gold-soft);
}

/* ---------- Cabeçalho ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(16, 14, 13, 0.85);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-h);
	padding-inline: clamp(0.875rem, 3vw, 2rem);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	color: var(--cream);
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	border: 1px solid var(--gold);
	border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, rgba(201, 164, 94, 0.28),
			transparent 70%);
	color: var(--gold-soft);
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.brand-text {
	display: flex;
	flex-direction: column;
	font-family: var(--font-display);
	font-size: 1.15rem;
	line-height: 1.1;
}

.brand-text strong {
	font-weight: 600;
}

.brand-text em {
	color: var(--gold-soft);
	font-size: 0.95rem;
	font-style: italic;
}

.custom-logo {
	width: auto;
	max-height: 48px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.nav-links {
	display: flex;
	gap: 1.5rem;
	list-style: none;
}

.nav-links a {
	color: var(--muted);
	font-size: 0.92rem;
	transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
	color: var(--cream);
}

.header-cta {
	padding: 0.65rem 1.15rem;
	font-size: 0.85rem;
}

body.admin-bar .site-header {
	top: 32px;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.75rem, 6vw, 4.5rem);
	border-bottom: 1px solid var(--line);
}

.hero::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto;
	height: 120%;
	background: radial-gradient(60% 60% at 20% 20%, rgba(92, 27, 38, 0.55),
			transparent 70%),
		radial-gradient(50% 50% at 85% 10%, rgba(201, 164, 94, 0.18),
			transparent 70%);
	pointer-events: none;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(245, 237, 226, 0.06) 1px,
			transparent 1px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5),
			transparent 70%);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.eyebrow {
	margin-bottom: 1.1rem;
	color: var(--gold);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.hero__title {
	margin-bottom: 1.25rem;
	font-size: clamp(2.6rem, 8vw, 5rem);
	letter-spacing: -0.02em;
}

.hero__title em {
	color: var(--gold-soft);
	font-style: italic;
}

.hero__lead {
	max-width: 56ch;
	margin-bottom: 2rem;
	color: var(--muted);
	font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-bottom: 2rem;
}

.hero__meta {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.hero__meta svg {
	flex: none;
	color: var(--gold);
}

/* ---------- Navegação de categorias ---------- */

.category-nav {
	position: sticky;
	top: var(--header-h);
	z-index: 40;
	background: rgba(16, 14, 13, 0.92);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

body.admin-bar .category-nav {
	top: calc(var(--header-h) + 32px);
}

.category-nav__list {
	display: flex;
	gap: 0.4rem;
	padding: 0.7rem 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.category-nav__list::-webkit-scrollbar {
	display: none;
}

.category-nav__list a {
	display: block;
	padding: 0.55rem 1rem;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.9rem;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-nav__list a:hover {
	background: rgba(255, 255, 255, 0.04);
	color: var(--cream);
}

.category-nav__list a.is-active {
	background: var(--gold);
	border-color: var(--gold);
	color: #1a1512;
}

/* ---------- Cardápio ---------- */

.menu-section {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0;
	scroll-margin-top: calc(var(--header-h) + 70px);
}

.menu-section:nth-of-type(even) {
	background: var(--bg-soft);
}

.section-head {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.section-head h2 {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--line), transparent);
}

.menu-list {
	display: grid;
	gap: 1rem;
}

.menu-item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.25rem 1.25rem;
	padding: 1.15rem 1.35rem;
	background: linear-gradient(180deg, var(--surface), var(--bg-soft));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-item:hover {
	border-color: rgba(201, 164, 94, 0.45);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
	transform: translateY(-2px);
}

.menu-item.has-thumb {
	grid-template-columns: 96px 1fr auto;
}

.menu-item__media {
	grid-row: 1 / span 2;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--surface-2);
}

.menu-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.menu-item:hover .menu-item__media img {
	transform: scale(1.05);
}

.menu-item__body {
	min-width: 0;
}

.menu-item__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.menu-item__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
}

.menu-item__title a:hover {
	color: var(--gold-soft);
}

.menu-item__desc {
	margin: 0.35rem 0 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.menu-item__price {
	align-self: start;
	margin: 0;
	padding-top: 0.1rem;
	color: var(--gold-soft);
	font-family: var(--font-display);
	font-size: 1.15rem;
	white-space: nowrap;
}

.pill {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--gold-soft);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.menu-empty,
.menu-notice {
	padding: 2.5rem 1.5rem;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	text-align: center;
}

/* ---------- Contactos ---------- */

.contact {
	padding: clamp(3rem, 7vw, 5.5rem) 0;
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
}

.contact__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 2.5rem;
	align-items: start;
}

.contact__title {
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.contact__lead {
	color: var(--muted);
	max-width: 48ch;
}

.contact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.75rem;
}

.contact-card {
	padding: 1.75rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.contact-card h3 {
	font-size: 1.3rem;
}

.contact-card p {
	margin-bottom: 1rem;
	color: var(--muted);
}

.contact-card strong {
	color: var(--cream);
	font-weight: 500;
}

.contact-card a {
	color: var(--gold-soft);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.contact-card a:hover {
	border-color: var(--gold);
}

/* ---------- Rodapé ---------- */

.site-footer {
	padding: 3rem 0 2rem;
	border-top: 1px solid var(--line);
	background: var(--bg);
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
}

.footer__lead {
	max-width: 34ch;
	color: var(--muted);
	font-size: 0.95rem;
}

.footer__title {
	margin-bottom: 1rem;
	color: var(--gold-soft);
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.footer__col address,
.footer__col p {
	margin-bottom: 0.75rem;
	color: var(--muted);
	font-size: 0.95rem;
}

.footer__link {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--muted);
	font-size: 0.95rem;
	transition: color 0.2s ease;
}

.footer__link:hover {
	color: var(--gold-soft);
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.85rem;
}

.footer__bottom p {
	margin: 0;
}

/* ---------- WhatsApp flutuante ---------- */

.whatsapp-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.85rem 1.15rem;
	border-radius: 999px;
	background: #1faa59;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
	background: #25c268;
	transform: translateY(-2px);
}

.whatsapp-float svg {
	flex: none;
}

/* ---------- Páginas internas ---------- */

.single-cardapio,
.archive,
.search .site-main,
.error404 .site-main {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.single__card {
	max-width: 720px;
	margin-inline: auto;
	padding: 2rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.single__card h1 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.single__thumb {
	margin-bottom: 1.5rem;
	border-radius: var(--radius);
	overflow: hidden;
}

.single__price {
	margin: 1.25rem 0;
	color: var(--gold-soft);
	font-family: var(--font-display);
	font-size: 1.5rem;
}

.single__back {
	display: inline-flex;
	margin-top: 1rem;
}

.entry-content a {
	color: var(--gold-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.page-hero {
	padding: clamp(3rem, 7vw, 5rem) 0 2rem;
	border-bottom: 1px solid var(--line);
}

.page-hero h1 {
	font-size: clamp(2rem, 5vw, 3rem);
}

.pagination {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 2.5rem;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--muted);
}

.pagination .current {
	background: var(--gold);
	border-color: var(--gold);
	color: #1a1512;
}

/* ---------- Títulos de arquivo ---------- */

.archive__title {
	margin-bottom: 1.75rem;
	font-size: clamp(1.7rem, 4vw, 2.4rem);
}

/* ---------- Media como link ---------- */

.menu-item__media {
	display: block;
}

.menu-item__media img {
	display: block;
}

/* ---------- Ajustes ---------- */

.menu-section > .container > .menu-empty {
	margin-top: 0;
}

/* ---------- Responsivo ---------- */

@media (max-width: 860px) {
	.footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer__brand {
		grid-column: 1 / -1;
	}

	.contact__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.nav-links {
		display: none;
	}

	.header-cta span {
		display: none;
	}

	.header-cta {
		padding: 0.65rem;
	}

	.menu-item,
	.menu-item.has-thumb {
		grid-template-columns: 1fr;
	}

	.menu-item__media {
		grid-row: auto;
		width: 100%;
		height: auto;
		max-height: 220px;
	}

	.menu-item__price {
		align-self: end;
	}

	.footer__grid {
		grid-template-columns: 1fr;
	}

	.whatsapp-float span {
		display: none;
	}

	.whatsapp-float {
		padding: 0.9rem;
	}

	.single__card {
		padding: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}