/* Zeytin theme: base, layout, header, footer. Section styles live in the Zeytin Core plugin. */
:root {
	--zy-red: #932a2a;
	--zy-red-dark: #6e1e1e;
	--zy-green: #8cbb3c;
	--zy-green-dark: #4f6f1f;
	--zy-ink: #211919;
	--zy-ink-soft: #5a4f4a;
	--zy-cream: #f7f2ea;
	--zy-stone: #d8cbb3;
	--zy-stone-light: #ece4d6;
	--zy-brass: #b08a4e;
	--zy-white: #fff;
	--zy-font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--zy-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--zy-gutter: 16px;
	--zy-max: 1280px;
	--zy-header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--zy-header-h) + 12px); }
body { margin: 0; background: var(--zy-cream); color: var(--zy-ink); font: 400 1rem/1.6 var(--zy-font-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--zy-font-head); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; color: var(--zy-ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { text-wrap: pretty; }
a { color: var(--zy-red); text-underline-offset: .15em; }
a:hover { color: var(--zy-red-dark); }
:focus-visible { outline: 3px solid var(--zy-green-dark); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.zy-skip { position: absolute; left: 8px; top: -100px; z-index: 1000; padding: .75rem 1rem; background: var(--zy-ink); color: var(--zy-white); border-radius: 8px; }
.zy-skip:focus { top: 8px; color: var(--zy-white); }

.zy-container { width: 100%; max-width: calc(var(--zy-max) + 2 * var(--zy-gutter)); margin: 0 auto; padding: 0 var(--zy-gutter); }
.zy-page { padding-top: 2rem; padding-bottom: 3rem; }
.zy-page__head h1 { margin: 0 0 1rem; }
.zy-content > *:first-child { margin-top: 0; }

/* Buttons used by the theme (plugin defines the full set). */
.zy-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.375rem; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--zy-font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.zy-btn--primary { background: var(--zy-red); color: var(--zy-white); }
.zy-btn--primary:hover { background: var(--zy-red-dark); color: var(--zy-white); }
.zy-btn--secondary { color: var(--zy-red); border-color: var(--zy-red); }
.zy-btn--secondary:hover { background: var(--zy-red); color: var(--zy-white); }
.zy-btn--ghost { background: var(--zy-white); color: var(--zy-ink); border-color: var(--zy-stone); }
.zy-btn--light { background: var(--zy-white); color: var(--zy-red); }
.zy-btn--light-outline { color: var(--zy-white); border-color: rgba(255, 255, 255, .7); }
.zy-btn--light-outline:hover { color: var(--zy-white); background: rgba(255, 255, 255, .1); }
.zy-btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .9375rem; }
.zy-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Top bar + header ---------- */
.zy-topbar { background: var(--zy-red-dark); color: rgba(255, 255, 255, .88); font-size: .8125rem; }
.zy-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: calc(var(--zy-max) + 2 * var(--zy-gutter)); margin: 0 auto; padding: .4rem var(--zy-gutter); min-height: 34px; }
.zy-topbar .zy-status { color: rgba(255, 255, 255, .92); font-size: .8125rem; }
.zy-topbar .zy-status.is-open { color: #c9ec9c; }
.zy-topbar .zy-status__dot { width: 8px; height: 8px; }
.zy-topbar .zy-status.is-closed .zy-status__dot { background: #f0b3a8; }
.zy-topbar__addr { display: none; }
.zy-topbar__phone { display: inline-flex; align-items: center; gap: .35rem; color: var(--zy-white); font-weight: 600; text-decoration: none; white-space: nowrap; }
.zy-topbar__phone:hover { color: var(--zy-white); text-decoration: underline; }
.zy-topbar__phone .zy-icon { width: 14px; height: 14px; }

/* The frosted background sits on a pseudo-element: a backdrop-filter on the header itself would trap the
   fixed-position mobile menu inside the header box (that made the menu unusable on phones). */
.zy-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(147, 42, 42, .14); transition: box-shadow .2s; }
.zy-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(247, 242, 234, .96); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.zy-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: linear-gradient(90deg, var(--zy-red) 0 33.3%, var(--zy-green) 33.3% 66.6%, var(--zy-red) 66.6%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.zy-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(33, 25, 25, .55); }
.zy-header__inner { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .75rem; max-width: calc(var(--zy-max) + 2 * var(--zy-gutter)); margin: 0 auto; padding: .4rem var(--zy-gutter); min-height: var(--zy-header-h); }
.zy-header__logo { display: block; justify-self: center; line-height: 0; }
.zy-header__logo img { width: 104px; height: auto; display: block; transition: width .2s; }
.zy-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.zy-header__btn { display: none; }
.admin-bar .zy-header { top: 46px; }

.zy-burger { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin-left: -10px; border: 0; background: none; cursor: pointer; color: var(--zy-ink); }
.zy-burger__lines, .zy-burger__lines::before, .zy-burger__lines::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.zy-burger__lines { position: relative; }
.zy-burger__lines::before, .zy-burger__lines::after { content: ""; position: absolute; left: 0; }
.zy-burger__lines::before { top: -7px; }
.zy-burger__lines::after { top: 7px; width: 16px; }
.zy-burger[aria-expanded="true"] .zy-burger__lines { background: transparent; }
.zy-burger[aria-expanded="true"] .zy-burger__lines::before { transform: translateY(7px) rotate(45deg); }
.zy-burger[aria-expanded="true"] .zy-burger__lines::after { width: 24px; transform: translateY(-7px) rotate(-45deg); }

.zy-nav { position: fixed; inset: var(--zy-nav-top, var(--zy-header-h)) 0 0; z-index: 60; display: none; flex-direction: column; gap: 1.75rem; padding: 1.5rem var(--zy-gutter) 7rem; background: var(--zy-cream) url(../img/pattern-red.svg) repeat; overflow-y: auto; }
.zy-nav.is-open { display: flex; }
.zy-nav__list { list-style: none; margin: 0; padding: 0; }
.zy-nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--zy-stone); font: 600 1.625rem/1.2 var(--zy-font-head); color: var(--zy-ink); text-decoration: none; }
.zy-nav__list .current-menu-item > a { color: var(--zy-red); }
.zy-nav__extra { display: grid; gap: .75rem; }
.zy-nav__phone { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 600; color: var(--zy-ink); text-decoration: none; padding: .5rem; }
.zy-nav__phone .zy-icon { color: var(--zy-red); }
body.zy-nav-open { overflow: hidden; }

.zy-lang { display: flex; list-style: none; margin: 0; padding: 2px; border: 1px solid var(--zy-stone); border-radius: 999px; background: var(--zy-white); }
.zy-lang a { display: grid; place-items: center; min-width: 38px; min-height: 34px; padding: 0 .55rem; border-radius: 999px; font-size: .8125rem; font-weight: 700; letter-spacing: .03em; color: var(--zy-ink-soft); text-decoration: none; }
.zy-lang a:hover { color: var(--zy-red); }
.zy-lang a.is-current { background: var(--zy-red); color: var(--zy-white); }

/* ---------- Footer ---------- */
.zy-footer { position: relative; background: var(--zy-ink); color: rgba(255, 255, 255, .82); margin-top: 0; border-top: 6px solid var(--zy-red); }
.zy-footer::before { content: ""; position: absolute; inset: 0; background: url(../img/pattern-light.svg) repeat; opacity: .5; pointer-events: none; }
.zy-footer > * { position: relative; }
.zy-footer__inner { display: grid; gap: 2rem; max-width: calc(var(--zy-max) + 2 * var(--zy-gutter)); margin: 0 auto; padding: 3rem var(--zy-gutter) 2rem; }
.zy-footer h2 { font: 600 .8125rem/1.3 var(--zy-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--zy-brass); margin: 0 0 1rem; }
.zy-footer a { color: var(--zy-white); }
.zy-footer address { font-style: normal; line-height: 1.7; }
.zy-footer__brand img { width: 140px; margin-bottom: .75rem; }
.zy-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.zy-footer__links a { text-decoration: none; }
.zy-footer__links a:hover { text-decoration: underline; color: var(--zy-white); }
.zy-footer__hours { margin: 0 0 1rem; display: grid; gap: .1rem; font-size: .9375rem; }
.zy-footer__hours dt { font-weight: 600; color: var(--zy-white); margin-top: .5rem; }
.zy-footer__hours dd { margin: 0; }
.zy-footer .zy-status { color: rgba(255, 255, 255, .8); }
.zy-footer .zy-status.is-open { color: #b9e08a; }
.zy-footer__pay { font-size: .875rem; }
.zy-footer__social { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.zy-footer__social a { color: inherit; font-weight: 600; }
.zy-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; max-width: calc(var(--zy-max) + 2 * var(--zy-gutter)); margin: 0 auto; padding: 1.25rem var(--zy-gutter) 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; }
.zy-footer__legal p { margin: 0; }

/* Content defaults for editor-made pages */
.zy-content > p, .zy-content > ul, .zy-content > ol, .zy-content > h2, .zy-content > h3 { max-width: 44rem; }
.zy-content table { border-collapse: collapse; }
.zy-404 { text-align: left; padding-top: 4rem; padding-bottom: 5rem; }

@media (min-width: 783px) {
	.admin-bar .zy-header { top: 32px; }
}

@media (min-width: 720px) {
	.zy-topbar__inner { justify-content: center; gap: 2rem; }
	.zy-topbar__addr { display: inline; }
}
@media (min-width: 960px) {
	:root { --zy-gutter: clamp(32px, 4vw, 64px); --zy-header-h: 92px; }
	.zy-header__inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.5rem; padding-top: .5rem; padding-bottom: .5rem; }
	.zy-header__logo img { width: 150px; }
	.zy-header.is-scrolled .zy-header__logo img { width: 124px; }
	.zy-header.is-scrolled::after { opacity: 1; }
	.zy-burger { display: none; }
	.zy-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 0; padding: 0; background: none; overflow: visible; min-width: 0; }
	.zy-nav__list { display: flex; gap: .125rem; }
	.zy-nav__list .menu-item-home { display: none; } /* the centred logo is the home link */
	.zy-nav__list a { position: relative; padding: .6rem .8rem; border: 0; font: 600 .9375rem/1.2 var(--zy-font-body); letter-spacing: .01em; white-space: nowrap; }
	.zy-nav__list a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--zy-red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
	.zy-nav__list a:hover::after, .zy-nav__list .current-menu-item > a::after { transform: scaleX(1); }
	.zy-nav__list a:hover { color: var(--zy-red); }
	.zy-nav__extra { display: none; }
	.zy-header__btn { display: inline-flex; white-space: nowrap; }
	.zy-header__actions { gap: .625rem; }
	.zy-page { padding-top: 3rem; }
	.zy-footer__inner { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 3rem; padding-top: 4.5rem; }
}
@media (min-width: 960px) and (max-width: 1199px) {
	.zy-nav__list a { padding: .6rem .5rem; font-size: .875rem; }
	.zy-nav__list a::after { left: .5rem; right: .5rem; }
	.zy-header__actions .zy-btn--secondary { display: none; }
}
@media (min-width: 1440px) {
	:root { --zy-max: 1360px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
.zy-footer .zy-btn--light, .zy-footer .zy-btn--light:hover { color: var(--zy-red); }
@media (max-width: 719px) {
	.zy-topbar .zy-status { min-width: 0; }
	.zy-topbar .zy-status__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
