/* Casa Roni Cosy – base: tokens, type, layout, buttons, labels. Colours and fonts come from theme.json presets. */
:root {
	--cr-night: var(--wp--preset--color--night);
	--cr-deep: var(--wp--preset--color--deep);
	--cr-deeper: var(--wp--preset--color--deeper);
	--cr-teal: var(--wp--preset--color--teal);
	--cr-gold: var(--wp--preset--color--gold);
	--cr-gold-dark: var(--wp--preset--color--gold-dark);
	--cr-gold-light: var(--wp--preset--color--gold-light);
	--cr-cream: var(--wp--preset--color--cream);
	--cr-paper: var(--wp--preset--color--paper);
	--cr-text: var(--wp--preset--color--ink-light);
	--cr-muted: var(--wp--preset--color--muted);
	--cr-ink: var(--wp--preset--color--ink);
	--cr-serif: var(--wp--preset--font-family--serif);
	--cr-sans: var(--wp--preset--font-family--sans);
	--cr-gutter: clamp(18px, 5vw, 48px);
	--cr-max: 1180px;
	--cr-band: clamp(60px, 9vw, 104px);
	--cr-line: rgba(212, 180, 106, 0.4);
	--cr-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
	/* Parent variables still used by the inherited consent.css (cookie banner). */
	--cr-radius: 2px;
	--cr-font-serif: var(--cr-serif);
	--cr-font-sans: var(--cr-sans);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; font-size: clamp(15px, 1.4vw, 16.5px); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* casaroni_icon() SVGs take the text colour (the parent sets this in its base.css, which this file replaces). */
.cr-icon { display: block; flex: 0 0 auto; fill: currentColor; }
:focus-visible { outline: 2px solid var(--cr-accent, var(--cr-gold)); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Visually hidden; the skip link shows top-left when focused (clip-path, so core's :focus reset applies). */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; word-wrap: normal !important; }
.screen-reader-text:focus,
:root .skip-link.screen-reader-text:focus { /* beats core's grey .skip-link:focus style */
	top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; padding: 15px 20px; clip-path: none;
	background: var(--cr-night); color: var(--cr-paper); font-family: var(--cr-sans); font-size: 14px; letter-spacing: 0.06em; text-decoration: none;
	outline: 2px solid var(--cr-gold); outline-offset: 2px;
}
.cr-wrap { max-width: calc(var(--cr-max) + 2 * var(--cr-gutter)); margin-inline: auto; padding-inline: var(--cr-gutter); }

/* Small gold capitals above a heading ("Our kitchen"). */
.cr-label { margin: 0; font-family: var(--cr-sans); font-weight: 300; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cr-accent, var(--cr-gold)); }
.cr-heading { margin: 0.5em 0 0.6em; font-family: var(--cr-serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; color: var(--cr-head, var(--cr-paper)); }

/* Buttons: outline by default, filled gold for the main action. Booking triggers look like filled buttons. */
.cr-btn,
.cr-widget-trigger {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
	padding: 12px 22px 10px; border: 1px solid var(--cr-gold); border-radius: 2px; background: transparent;
	color: var(--cr-btn-text, var(--cr-paper)); font-family: var(--cr-sans); font-size: 11.5px; letter-spacing: 0.18em;
	text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}
.cr-btn:hover, .cr-btn:focus-visible { background: var(--cr-gold); color: var(--cr-deep); }
.cr-btn--fill, .cr-widget-trigger { background: var(--cr-gold); color: var(--cr-deep); }
.cr-btn--fill:hover, .cr-btn--fill:focus-visible,
.cr-widget-trigger:hover, .cr-widget-trigger:focus-visible { background: transparent; color: var(--cr-accent, var(--cr-gold)); }
.cr-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

/* Text link in gold capitals. A booking trigger can be a text link too (class cr-link).
   At least 24 px tall so it is an easy tap target; the underline stays just under the text. */
.cr-link,
.cr-link.cr-widget-trigger {
	display: inline-flex; align-items: flex-end; min-height: 24px; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none;
	color: var(--cr-accent, var(--cr-gold)); font-family: var(--cr-sans); font-size: 11.5px; letter-spacing: 0.16em;
	text-transform: uppercase; text-decoration: none;
}
.cr-link:hover, .cr-link:focus-visible { background: none; color: var(--cr-head, var(--cr-paper)); }

/* Favourite Table overlay (vendor markup). The container only hosts the fixed overlay. */
.ft_bookingwidget_content { width: min(700px, calc(100vw - 16px)) !important; height: min(580px, calc(100dvh - 32px)) !important; }
.ft_bookingwidget_content iframe { width: 100%; height: calc(100% - 30px); }
#ft_bookingwidget_close { width: min(699px, calc(100vw - 17px)) !important; }
/* header.js moves each shell to <body>; the z-index keeps the overlay above the sticky header (50). */
.cr-widget-shell { position: absolute; z-index: 10000; margin: 0; }

/* ---------- Bands (page sections) ----------------------------------------------------------
 * Each band sets its tone through variables; children read --cr-head/--cr-accent/--cr-fg.
 * Inside .cr-home the tones cycle night → teal → cream automatically, so hidden sections
 * never leave two bands of the same colour next to each other.
 */
.cr-band,
.cr-tone-night { --cr-bg: var(--cr-night); --cr-fg: var(--cr-text); --cr-head: var(--cr-paper); --cr-accent: var(--cr-gold); --cr-btn-text: var(--cr-paper); }
.cr-tone-teal { --cr-bg: var(--cr-teal); --cr-fg: #f3ecdf; --cr-head: var(--cr-paper); --cr-accent: var(--cr-gold-light); --cr-btn-text: var(--cr-paper); }
.cr-tone-cream { --cr-bg: var(--cr-cream); --cr-fg: var(--cr-ink); --cr-head: var(--cr-ink); --cr-accent: var(--cr-gold-dark); --cr-btn-text: var(--cr-ink); }
.cr-home > section.cr-band:nth-of-type(3n + 2) { --cr-bg: var(--cr-teal); --cr-fg: #f3ecdf; --cr-accent: var(--cr-gold-light); }
.cr-home > section.cr-band:nth-of-type(3n) { --cr-bg: var(--cr-cream); --cr-fg: var(--cr-ink); --cr-head: var(--cr-ink); --cr-accent: var(--cr-gold-dark); --cr-btn-text: var(--cr-ink); }

.cr-band { position: relative; padding-block: var(--cr-band); background: var(--cr-bg); color: var(--cr-fg); text-align: center; }
.cr-band .cr-btn:not(.cr-btn--fill):not(:hover):not(:focus-visible) { border-color: var(--cr-accent); }
.cr-band__text { max-width: 460px; margin: 0 auto; line-height: 1.85; }
.cr-more { margin: 28px 0 0; }

/* Brush edge: a strip in the band's own colour above it, cut by the painted stroke. */
.cr-band::before,
.is-style-brush-edge::before {
	content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px; background: inherit; pointer-events: none;
	-webkit-mask: url(../images/brush.svg) 0 0 / 100% 100% no-repeat; mask: url(../images/brush.svg) 0 0 / 100% 100% no-repeat;
}
.is-style-brush-edge { position: relative; }

/* Line drawings, coloured with the accent. */
.cr-sprig {
	display: block; width: 46px; height: 20px; margin: 0 auto 12px; background: var(--cr-accent, var(--cr-gold));
	-webkit-mask: url(../images/sprig.svg) center / contain no-repeat; mask: url(../images/sprig.svg) center / contain no-repeat;
}
/* Torn-edge photo. */
.cr-torn { -webkit-mask: url(../images/torn.svg) center / 100% 100% no-repeat; mask: url(../images/torn.svg) center / 100% 100% no-repeat; }

/* Opening status pill (text swapped by status.js). */
.cr-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cr-sans); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.cr-status__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cr-gold); }
.cr-status[data-state="open"] .cr-status__dot { background: #7fbf8e; box-shadow: 0 0 0 3px rgba(127, 191, 142, 0.2); }
.cr-status[data-state="closed"] .cr-status__dot { background: #c98b7a; }

/* ---------- Motion -------------------------------------------------------------------------- */
.js-motion .cr-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js-motion .cr-reveal.is-in { opacity: 1; transform: none; }
.js-motion:not(.js-motion-ready) .cr-reveal { animation: cr-failsafe 0s 2.5s forwards; }
@keyframes cr-failsafe { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.js-motion .cr-reveal { opacity: 1; transform: none; transition: none; animation: none; }
}
