/* Centolo theme — layout and components beyond theme.json */

:root {
	--centolo-escuma-60: rgba(246, 244, 239, 0.6);
	--centolo-escuma-25: rgba(246, 244, 239, 0.25);
	--centolo-pedra-30: rgba(49, 53, 57, 0.3);
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--ouro);
	outline-offset: 3px;
}

/* Unica One is a unicase face: let headings breathe */
h1, h2, h3, h4 {
	text-wrap: balance;
	overflow-wrap: break-word;
}

.has-abismo-background-color :is(h1, h2, h3, h4),
.has-pedra-background-color :is(h1, h2, h3, h4) {
	color: var(--wp--preset--color--escuma);
}

.has-abismo-background-color a,
.has-pedra-background-color a {
	color: var(--wp--preset--color--escuma);
	text-decoration-color: var(--wp--preset--color--ouro);
	text-underline-offset: 0.2em;
}

.has-abismo-background-color a:hover,
.has-pedra-background-color a:hover {
	color: var(--wp--preset--color--ouro);
}

/* ---------- Header ---------- */

.centolo-header {
	padding-block: 1.1rem;
	position: relative;
	z-index: 20;
}

.centolo-header__bar {
	gap: 2rem;
	min-height: 3.5rem;
}

.centolo-header__logo img {
	height: 3.4rem;
	width: auto;
}

.centolo-header__right {
	gap: 0;
}

.centolo-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.6rem;
}

.centolo-nav__list a {
	display: inline-block;
	color: var(--wp--preset--color--escuma);
	text-decoration: none;
	letter-spacing: 0.03em;
	padding: 0.55rem 0 0.35rem;
	border-bottom: 2px solid transparent;
	transition: border-color 150ms ease;
}

.centolo-nav__list a:hover,
.centolo-nav__list .current-menu-item > a,
.centolo-nav__list .current_page_item > a {
	color: var(--wp--preset--color--escuma);
	border-bottom-color: var(--wp--preset--color--ouro);
}

.centolo-nav__toggle {
	display: none;
}

.centolo-lang ul {
	list-style: none;
	margin: 0 0 0 1.6rem;
	padding: 0 0 0 1.4rem;
	display: flex;
	gap: 0.9rem;
	border-left: 1px solid var(--centolo-escuma-25);
	font-size: 0.875rem;
}

.centolo-lang a {
	color: var(--wp--preset--color--ouro);
	text-decoration: none;
}

.centolo-lang a:hover {
	color: var(--wp--preset--color--escuma);
}

.centolo-lang a[aria-current] {
	color: var(--wp--preset--color--escuma);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--ouro);
	text-underline-offset: 0.35em;
}

@media (max-width: 960px) {
	.centolo-header__right {
		flex-direction: row-reverse;
		gap: 1rem;
	}

	.centolo-lang ul {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.centolo-nav__toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		background: none;
		border: 1px solid var(--centolo-escuma-25);
		color: var(--wp--preset--color--escuma);
		font: inherit;
		font-size: 0.9rem;
		padding: 0.5rem 0.9rem 0.4rem;
		cursor: pointer;
	}

	.centolo-nav__bars {
		width: 1.1rem;
		height: 2px;
		background: currentColor;
		box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
	}

	.centolo-nav__menu {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--wp--preset--color--abismo);
		border-top: 1px solid var(--centolo-escuma-25);
		padding: 1rem var(--wp--preset--spacing--30) 1.5rem;
	}

	.centolo-nav.is-open .centolo-nav__menu {
		display: block;
	}

	.centolo-nav__list {
		flex-direction: column;
		gap: 0.25rem;
	}

	.centolo-nav__list a {
		display: block;
		font-size: 1.25rem;
		padding: 0.6rem 0;
	}
}

/* ---------- Hero ---------- */

.centolo-hero {
	min-height: min(82vh, 46rem);
}

.centolo-hero .wp-block-cover__inner-container,
.centolo-panel .wp-block-cover__inner-container {
	padding: var(--wp--preset--spacing--50) max(var(--wp--preset--spacing--30), calc((100% - 1170px) / 2));
}

.centolo-hero h1 {
	color: var(--wp--preset--color--escuma);
	max-width: 12ch;
	margin-bottom: 0.5rem;
}

.centolo-hero p {
	color: var(--wp--preset--color--escuma);
	max-width: 42ch;
}

.centolo-hero .wp-block-buttons {
	margin-top: 1.75rem;
}

.centolo-hero--short {
	min-height: min(56vh, 32rem);
}

/* ---------- Panels (Restaurante / Cafetería) ---------- */

.centolo-panels {
	gap: 0 !important;
}

.centolo-panel {
	min-height: min(60vh, 34rem);
}

.centolo-panel img,
.centolo-hero img,
.centolo-section .wp-block-image.alignwide img {
	filter: saturate(0.7) contrast(1.05);
}

.centolo-panel h2 {
	color: var(--wp--preset--color--escuma);
	margin-bottom: 0.25rem;
}

.centolo-panel p {
	color: var(--wp--preset--color--escuma);
}

@media (max-width: 781px) {
	.centolo-panel {
		min-height: min(46vh, 22rem);
	}
}

/* ---------- Sections ---------- */

.centolo-section {
	padding-block: var(--wp--preset--spacing--60);
}

.centolo-section h2 {
	margin-bottom: 0.5rem;
}

.centolo-section > .wp-block-separator,
.centolo-section .wp-block-separator {
	margin-block: 1rem 1.75rem;
}

.centolo-lede {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	max-width: 40ch;
}

/* ---------- Split hero (home) ---------- */

.centolo-split {
	min-height: min(78vh, 44rem);
	margin-top: 0;
}

.centolo-split__text {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) max(var(--wp--preset--spacing--30), calc((100vw - 1170px) / 2));
}

.centolo-split__title {
	font-size: clamp(3.6rem, 9vw, 8.5rem);
	line-height: 0.88;
	max-width: 9ch;
	margin: 0 0 1.25rem;
}

.centolo-split__lede {
	max-width: 30ch;
	margin: 0;
}

.centolo-split__text .wp-block-buttons {
	margin-top: 1.75rem;
}

.centolo-split__addr {
	margin: 2.5rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--centolo-escuma-25);
	max-width: 30ch;
}

.centolo-split__media {
	position: relative;
	min-height: 24rem;
}

.centolo-split__img {
	position: absolute;
	inset: 0;
	margin: 0;
}

.centolo-split__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 50%;
	filter: saturate(0.85) contrast(1.04);
}

@media (max-width: 781px) {
	.centolo-split__media {
		order: -1;
		min-height: 56vw;
	}

	.centolo-split__text {
		padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
	}
}

/* ---------- Menu board (cartas) ---------- */

.centolo-menu {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--ouro);
	max-width: 46rem;
}

.centolo-menu li {
	border-bottom: 1px solid var(--wp--preset--color--ouro);
}

.centolo-menu a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.1rem 0 0.9rem;
	text-decoration: none;
	color: inherit;
}

.centolo-menu__name {
	font-family: var(--wp--preset--font-family--unica);
	font-size: clamp(2rem, 4.5vw, 3rem);
	line-height: 1;
}

.centolo-menu__meta {
	font-size: 0.9375rem;
	text-align: right;
	flex-shrink: 0;
	opacity: 0.8;
}

.centolo-menu a:hover .centolo-menu__name,
.centolo-menu a:focus-visible .centolo-menu__name {
	color: var(--wp--preset--color--centolo);
}

@media (max-width: 600px) {
	.centolo-menu a {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}
}

/* ---------- Contact ---------- */

.centolo-contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 2rem;
	margin-block: 2rem 3rem;
}

.centolo-contact h3 {
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--large);
}

.centolo-contact p {
	margin: 0;
}

.centolo-map iframe {
	width: 100%;
	aspect-ratio: 16 / 7;
	min-height: 18rem;
	height: auto;
	display: block;
	border: 0;
	filter: grayscale(1) contrast(1.05);
}

.centolo-reservas iframe {
	width: 100%;
	display: block;
	border: 0;
}

/* ---------- Contact Form 7 ---------- */

.wpcf7 {
	max-width: 42rem;
}

.wpcf7 label {
	display: block;
	font-size: 0.9375rem;
}

.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], textarea, select) {
	width: 100%;
	font: inherit;
	padding: 0.7rem 0.8rem 0.55rem;
	border: 1px solid var(--centolo-pedra-30);
	background: var(--wp--preset--color--escuma);
	color: var(--wp--preset--color--pedra);
	border-radius: 0;
}

.wpcf7 input[type="file"] {
	font: inherit;
	font-size: 0.9375rem;
}

.wpcf7 :is(input[type="submit"], button) {
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.06em;
	background: var(--wp--preset--color--abismo);
	color: var(--wp--preset--color--escuma);
	border: 0;
	padding: 0.9rem 1.6rem 0.75rem;
	cursor: pointer;
}

.wpcf7 :is(input[type="submit"], button):hover {
	background: var(--wp--preset--color--ouro);
	color: var(--wp--preset--color--abismo);
}

.wpcf7-spinner {
	display: none;
}

/* ---------- Legal / long text ---------- */

.centolo-legal {
	max-width: 70ch;
}

/* ---------- Footer ---------- */

.centolo-footer {
	padding-block: var(--wp--preset--spacing--50) 1.5rem;
	margin-top: 0;
}

.centolo-footer__grid {
	gap: 2rem;
}

.centolo-footer__title {
	font-family: var(--wp--preset--font-family--unica);
	font-size: var(--wp--preset--font-size--large);
	margin: 0 0 0.5rem;
}

.centolo-footer__title a {
	text-decoration: none;
}

.centolo-footer p {
	margin: 0;
	line-height: 1.8;
}

.centolo-footer__copy {
	margin-top: 2.5rem;
	color: var(--centolo-escuma-60);
}

/* ---------- Mobile call / book / directions bar ---------- */

.centolo-cta {
	display: none;
}

@media (max-width: 700px) {
	body {
		padding-bottom: 3.6rem;
	}

	.centolo-cta {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 40;
		display: grid;
		grid-template-columns: 1fr 1.2fr 1fr;
		background: var(--wp--preset--color--pedra);
		box-shadow: 0 -1px 0 var(--centolo-escuma-25);
	}

	.centolo-cta a {
		display: block;
		padding: 1rem 0.5rem 0.8rem;
		text-align: center;
		text-decoration: none;
		font-weight: 600;
		font-size: 0.9rem;
		letter-spacing: 0.03em;
		color: var(--wp--preset--color--escuma);
	}

	.centolo-cta__book {
		background: var(--wp--preset--color--centolo);
	}
}

/* ---------- Motion ---------- */

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

/* Full-bleed blocks butt against the header and each other */
.wp-block-post-content > .centolo-split,
.wp-block-post-content > .centolo-hero,
.wp-block-post-content > .centolo-panels {
	margin-block-start: 0;
}
