/*
Theme Name: CaterYzi
Theme URI: https://cateryzi.com
Description: CaterYzi tema (Twenty Twenty-Five vaikinė). Spalvos, šriftai ir formos perimti iš app.cateryzi.com dizaino sistemos (src/styles/design-tokens.css).
Author: CaterYzi
Template: twentytwentyfive
Version: 1.6.0
Requires at least: 6.5
Text Domain: cateryzi
*/

/* ---- Header ---------------------------------------------------------- */
.cy-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .cy-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .cy-header-wrap { top: 0; } }
.cy-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.cy-logo {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1;
  color: var(--wp--preset--color--ink); text-decoration: none; white-space: nowrap;
}
.cy-logo b { font-weight: 800; }
.cy-logo:hover { color: var(--wp--preset--color--ink); }
.cy-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--ink-muted); }
.cy-header .wp-block-navigation a:hover { color: var(--wp--preset--color--ink); }
.cy-header .wp-block-navigation .wp-block-navigation__submenu-container {
  border: 1px solid var(--wp--preset--color--line) !important;
  border-radius: 12px; padding: 0.5rem 0;
  box-shadow: 0 2px 4px hsl(24 30% 20% / 0.06), 0 12px 32px -10px hsl(24 30% 20% / 0.16);
  min-width: 240px;
}
.cy-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 0.45rem 1rem; }
.cy-lang a { font-weight: 600; }
@media (max-width: 1100px) {
  .cy-header .wp-block-navigation__responsive-container-open { display: flex !important; }
  .cy-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
}
@media (max-width: 480px) { .cy-header-cta { display: none; } }

/* ---- Buttons ---------------------------------------------------------- */
.wp-element-button, .wp-block-button__link {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background-color 180ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px hsl(24 30% 20% / 0.08);
}
.cy-btn-lg .wp-block-button__link { min-height: 48px; font-size: 1rem; padding-left: 1.5rem; padding-right: 1.5rem; }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink);
  border: 1px solid var(--wp--preset--color--line-strong);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--surface-warm); }

/* ---- Content (imported from the old builder) ------------------------- */
.cy-main { padding-bottom: 0; }
.cy-main .wp-block-post-content :where(h1,h2,h3,h4,h5,h6) strong,
.cy-main .wp-block-post-content :where(h1,h2,h3,h4,h5,h6) b { font-weight: inherit; }
.cy-main .wp-block-post-content :where(h1,h2,h3,h4,h5,h6) p {
  font-family: var(--wp--preset--font-family--sans); font-size: 1rem; font-weight: 400;
  color: var(--wp--preset--color--ink-muted); margin-top: 0.5rem;
}
.cy-main .wp-block-post-content h1 { font-size: var(--wp--preset--font-size--display); line-height: 1.1; margin-bottom: 1rem; }
.cy-main .wp-block-post-content h1 + h2 {
  font-family: var(--wp--preset--font-family--sans); font-weight: 400;
  font-size: 1.125rem; line-height: 1.55; color: var(--wp--preset--color--ink-muted);
}
.cy-main .wp-block-post-content :where(h2) { margin-top: 2.5rem; }
.cy-main .wp-block-post-content :where(h3) { margin-top: 1.75rem; }
.cy-main .wp-block-post-content h5:empty, .cy-main .wp-block-post-content p:empty { display: none; }
.cy-main .wp-block-post-content p, .cy-main .wp-block-post-content li { color: var(--wp--preset--color--ink); }
.cy-main .wp-block-post-content img { border-radius: 12px; height: auto; max-width: 100%; }
.cy-main .wp-block-post-content u { text-decoration: none; }
.cy-main .wp-block-post-content table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.cy-main .wp-block-post-content th, .cy-main .wp-block-post-content td { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.6rem 0.5rem; text-align: left; }
.cy-crumb a { color: var(--wp--preset--color--ink-subtle); text-decoration: none; }
.cy-crumb a:hover { color: var(--wp--preset--color--brand); }

/* ---- Post cards (blog hubs) ------------------------------------------ */
.cy-cards .wp-block-post {
  background: var(--wp--preset--color--surface); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px hsl(24 30% 20% / 0.05), 0 4px 16px -6px hsl(24 30% 20% / 0.08);
  transition: box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cy-cards .wp-block-post:hover { box-shadow: 0 2px 4px hsl(24 30% 20% / 0.06), 0 12px 32px -10px hsl(24 30% 20% / 0.16); }
.cy-cards .wp-block-post-featured-image { margin: 0; border-radius: 0; }
.cy-cards .wp-block-post-featured-image img { border-radius: 0; }
.cy-cards .cy-card-body { padding: 1.25rem; }
.cy-cards .wp-block-post-title { font-size: 1.125rem; line-height: 1.35; margin: 0; }
.cy-cards .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.cy-cards .wp-block-post-excerpt { color: var(--wp--preset--color--ink-muted); font-size: 0.875rem; }

/* ---- CTA + footer ---------------------------------------------------- */
.cy-cta-box { border-radius: 12px; gap: 1.5rem; }
.cy-cta-title { margin: 0; font-size: var(--wp--preset--font-size--heading); }
.cy-footer { border-top: 1px solid var(--wp--preset--color--line); }
.cy-footer-title { font-family: var(--wp--preset--font-family--sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--ink-subtle); }
.cy-footer-list { list-style: none; padding: 0; margin: 0; font-size: 0.875rem; }
.cy-footer-list li { margin: 0 0 0.5rem; }
.cy-footer a { color: var(--wp--preset--color--ink-muted); text-decoration: none; }
.cy-footer a:hover { color: var(--wp--preset--color--brand); }
.cy-copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--line); }

/* ---- Boxed layout for imported pages (inc layout engine) ------------- */
.cy-page .wp-block-post-content { margin-top: 0; }
.cy-sec { padding: 0 var(--wp--style--root--padding-left, 1rem); margin: 0 0 2rem; }
.cy-in { max-width: 1200px; margin: 0 auto; }
.cy-hero {
  max-width: 1232px; margin: 1.5rem auto 3rem; padding: 0 1rem;
}
.cy-hero-in {
  background: var(--wp--preset--color--brand-soft); border-radius: 16px;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
}
.cy-hero.has-img .cy-hero-in {
  background-image: linear-gradient(90deg, hsl(24 30% 10% / 0.78) 0%, hsl(24 30% 10% / 0.55) 55%, hsl(24 30% 10% / 0.2) 100%), var(--cy-hero);
  background-size: cover; background-position: center; color: #fff;
  min-height: 440px; display: flex; flex-direction: column; justify-content: center;
}
.cy-hero-in > * { max-width: 760px; }
.cy-hero h1 { font-size: var(--wp--preset--font-size--display) !important; line-height: 1.1; margin: 0 0 1rem; }
.cy-hero h2, .cy-hero h5, .cy-hero .cy-lead {
  font-family: var(--wp--preset--font-family--sans) !important; font-weight: 400 !important;
  font-size: 1.125rem !important; line-height: 1.55 !important; margin: 0 0 0.75rem !important;
  color: var(--wp--preset--color--ink-muted);
}
.cy-hero p { margin: 0 0 0.5rem; }
.cy-hero.has-img h1, .cy-hero.has-img h2, .cy-hero.has-img h5, .cy-hero.has-img p, .cy-hero.has-img .cy-lead { color: #fff !important; }
.cy-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.cy-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem;
  border-radius: 10px; background: var(--wp--preset--color--brand); color: #fff !important;
  font-weight: 500; text-decoration: none !important; transition: background-color 180ms;
}
.cy-btn:hover { background: var(--wp--preset--color--brand-hover); }
.cy-btn-ghost { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink) !important; border: 1px solid var(--wp--preset--color--line-strong); }
.cy-btn-ghost:hover { background: var(--wp--preset--color--surface-warm); }
.cy-hero.has-img .cy-btn-ghost { background: hsl(0 0% 100% / 0.12); color: #fff !important; border-color: hsl(0 0% 100% / 0.6); }

.cy-box {
  background: var(--wp--preset--color--surface); border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 1px 2px hsl(24 30% 20% / 0.05), 0 4px 16px -6px hsl(24 30% 20% / 0.08);
}
.cy-prose { max-width: 860px; margin: 0 auto; }
.cy-prose > :first-child, .cy-card > :first-child, .cy-sec-head > :first-child { margin-top: 0 !important; }
.cy-prose > :last-child, .cy-card > :last-child { margin-bottom: 0; }
.cy-prose img { display: block; margin: 1.25rem 0; }
.cy-sec-head { max-width: 860px; margin: 0 auto 1.25rem; text-align: center; }
.cy-sec-head h2 { margin: 0 0 0.5rem !important; font-size: var(--wp--preset--font-size--title) !important; }
.cy-sec-head p { color: var(--wp--preset--color--ink-muted) !important; }
.cy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.cy-card {
  background: var(--wp--preset--color--surface); border-radius: 12px; padding: 1.5rem;
  box-shadow: 0 1px 2px hsl(24 30% 20% / 0.05), 0 4px 16px -6px hsl(24 30% 20% / 0.08);
  border-top: 3px solid var(--wp--preset--color--brand);
}
.cy-card h3 { margin: 0 0 0.5rem !important; font-size: var(--wp--preset--font-size--subheading); }
.cy-card p { color: var(--wp--preset--color--ink-muted) !important; font-size: 0.9375rem; }
.cy-card img { margin-top: 0.75rem; }
.cy-sec-raw .cy-in > .wp-block-query { max-width: 1200px; }
.cy-main .wp-block-post-content p { text-align: left !important; }

/* Posts: article body in a white box */
.cy-single .wp-block-post-content {
  background: var(--wp--preset--color--surface); border-radius: 12px;
  padding: clamp(1.25rem, 4vw, 2.5rem) !important; margin-top: 1.5rem;
  box-shadow: 0 1px 2px hsl(24 30% 20% / 0.05), 0 4px 16px -6px hsl(24 30% 20% / 0.08);
}

/* Recipe hub */
.cy-recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.cy-rcard {
  display: flex; flex-direction: column; background: var(--wp--preset--color--surface); border-radius: 12px; overflow: hidden;
  text-decoration: none !important; color: var(--wp--preset--color--ink) !important;
  box-shadow: 0 1px 2px hsl(24 30% 20% / 0.05), 0 4px 16px -6px hsl(24 30% 20% / 0.08); transition: box-shadow 180ms, transform 180ms;
}
.cy-rcard:hover { box-shadow: 0 2px 4px hsl(24 30% 20% / 0.06), 0 12px 32px -10px hsl(24 30% 20% / 0.16); transform: translateY(-2px); }
.cy-rcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 !important; margin: 0 !important; }
.cy-rcard-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem; flex: 1; }
.cy-rcard-title { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.cy-rcard-desc { color: var(--wp--preset--color--ink-muted); font-size: 0.875rem; line-height: 1.5; }
.cy-rcard-more { margin-top: auto; padding-top: 0.5rem; color: var(--wp--preset--color--brand); font-weight: 500; font-size: 0.875rem; }
.cy-back { text-align: center; }
.cy-back a { color: var(--wp--preset--color--brand); text-decoration: none; font-weight: 500; }

/* Spread images and leftover gallery */
.cy-fig { margin: 1.5rem 0; }
.cy-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 0 !important; }
.cy-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.cy-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin: 0 !important; }

/* Seasonal promo bar */
.cy-promo { position: relative; background: var(--wp--preset--color--brand-hover); color: #fff; text-align: center; font-size: 0.875rem; line-height: 1.4; padding: 0.6rem 2.75rem; }
.cy-promo a { color: #fff !important; text-decoration: none; }
.cy-promo a:hover strong { text-decoration: underline; }
.cy-promo strong { font-weight: 600; }
.cy-promo-x { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 1.25rem; line-height: 1; padding: 0.25rem 0.5rem; cursor: pointer; opacity: 0.8; }
.cy-promo-x:hover { opacity: 1; }
@media (max-width: 600px) { .cy-promo-more { display: none; } }

/* Mobile menu overlay: full-width list, left aligned, submenus inline */
.cy-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--ink) !important;
  padding: 1rem 1.5rem 2rem !important; overflow-y: auto;
}
.cy-header .is-menu-open .wp-block-navigation__responsive-container-content,
.cy-header .is-menu-open .wp-block-navigation__container,
.cy-header .is-menu-open .wp-block-navigation-item {
  align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; width: 100%;
}
.cy-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 2.5rem !important; }
.cy-header .is-menu-open .wp-block-navigation__container { gap: 0 !important; }
.cy-header .is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.25rem 0; }
.cy-header .is-menu-open .wp-block-navigation-item a { color: var(--wp--preset--color--ink) !important; font-size: 1.0625rem; padding: 0.55rem 0 !important; display: block; white-space: normal; }
.cy-header .is-menu-open .wp-block-navigation__submenu-container {
  position: static !important; border: 0 !important; box-shadow: none !important; border-radius: 0; min-width: 0 !important;
  width: 100% !important; padding: 0 0 0.5rem 1rem !important; background: transparent !important;
}
.cy-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border-bottom: 0; padding: 0; }
.cy-header .is-menu-open .wp-block-navigation__submenu-container a { font-size: 0.9375rem; color: var(--wp--preset--color--ink-muted) !important; padding: 0.4rem 0 !important; }
.cy-header .is-menu-open .wp-block-navigation__submenu-icon { display: none !important; }
.cy-header .is-menu-open .wp-block-navigation__responsive-container-close { top: 1rem; right: 1.25rem; }

/* Complianz cookie banner in CaterYzi colours */
html:root {
  --cmplz_banner_background_color: #ffffff;
  --cmplz_banner_border_color: #e4dcd2;
  --cmplz_banner_border_width: 1px 1px 1px 1px;
  --cmplz_banner_border_radius: 12px 12px 12px 12px;
  --cmplz_text_color: #2f2823;
  --cmplz_hyperlink_color: #297a4b;
  --cmplz_text_font_size: 13px;
  --cmplz_link_font_size: 13px;
  --cmplz_title_font_size: 16px;
  --cmplz_button_accept_background_color: #297a4b;
  --cmplz_button_accept_border_color: #297a4b;
  --cmplz_button_accept_text_color: #ffffff;
  --cmplz_button_deny_background_color: #ffffff;
  --cmplz_button_deny_border_color: #c9bdb1;
  --cmplz_button_deny_text_color: #2f2823;
  --cmplz_button_settings_background_color: #ffffff;
  --cmplz_button_settings_border_color: #e4dcd2;
  --cmplz_button_settings_text_color: #695f59;
  --cmplz_button_border_radius: 10px 10px 10px 10px;
  --cmplz_button_font_size: 14px;
  --cmplz_slider_active_color: #297a4b;
  --cmplz_category_header_always_active_color: #297a4b;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  font-family: var(--wp--preset--font-family--sans);
  box-shadow: 0 2px 4px hsl(24 30% 20% / 0.06), 0 12px 32px -10px hsl(24 30% 20% / 0.16) !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title { font-family: var(--wp--preset--font-family--display); font-weight: 600; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn { font-weight: 500; min-height: 44px; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover { background-color: #21693f !important; border-color: #21693f !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover { background-color: #fcf8f3 !important; }
#cmplz-manage-consent .cmplz-manage-consent { background: #ffffff; color: #2f2823; border: 1px solid #e4dcd2; font-family: var(--wp--preset--font-family--sans); }
