/**
 * Kreynova Main CSS — v2
 * ALL components live here and read colors from CSS variables that are
 * injected per-skin from config/skins.php. Most skins need NO extra CSS file.
 * Mobile-first. Breakpoints: 480 / 768 / 1024.
 */

:root {
  /* Fallbacks — real values are injected inline from config */
  --kreynova-primary: #FF7F27;
  --kreynova-secondary: #3E2723;
  --kreynova-accent: #FFF8DC;
  --kreynova-light: #F6F6F6;
  --kreynova-dark: #1E1E1E;
  --kreynova-border: #E4E4E4;

  --kreynova-font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --kreynova-font-main: var(--kreynova-font-body); /* legacy alias */
  --kreynova-font-display: Georgia, 'Times New Roman', serif;
  --kreynova-container-max: 1200px;

  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2rem;
  --sp-xl: 3rem;

  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.14);

  /* Brand-style hooks (set per style in brand-styles.css, see DESIGN_SYSTEM.md
     section 11). Not declared here on purpose: each use below carries its own
     fallback, so an unset style keeps the original look and a --radius
     override on body still cascades into buttons.
     --radius-btn, --kreynova-page-bg, --kreynova-muted,
     --kreynova-hero-overlay, --kreynova-hero-overlay-fullbleed */
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--kreynova-font-body);
  line-height: 1.6;
  color: var(--kreynova-dark);
  background: var(--kreynova-page-bg, #fff);
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--kreynova-font-display); line-height: 1.2; margin-bottom: var(--sp-md); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: var(--sp-md); }
a { color: var(--kreynova-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--kreynova-secondary); }
:focus-visible { outline: 2px solid var(--kreynova-primary); outline-offset: 2px; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* ============ LAYOUT ============ */
.container { max-width: var(--kreynova-container-max, 1200px); margin: 0 auto; padding: 0 var(--sp-md); }
.section { padding: var(--sp-lg) 0; }
.section--light { background: var(--kreynova-light); }
.section--accent { background: var(--kreynova-accent); }
.section__title { text-align: center; margin-bottom: var(--sp-md); }
.section__subtitle { text-align: center; color: var(--kreynova-muted, #666); max-width: 560px; margin: 0 auto var(--sp-lg); }
.text-center { text-align: center; }
.hidden-mobile { display: none; }

@media (min-width: 768px) {
  .section { padding: var(--sp-xl) 0; }
  .hidden-mobile { display: block; }
}

/* Layout offsets for sidebar navbars (set via body class) */
@media (min-width: 1025px) {
  body.has-navbar--left .site-main,
  body.has-navbar--left .site-footer { margin-left: var(--navbar-width, 280px); }
  body.has-navbar--right .site-main,
  body.has-navbar--right .site-footer { margin-right: var(--navbar-width, 280px); }
}

/* ---- NAVBAR STYLE: transparent ---- */
/* Only visually meaningful with position=top: starts see-through over the
   hero, JS adds .is-scrolled (see main.js) once the page scrolls past the
   hero, at which point it becomes solid like the default navbar. */
.navbar--top.navbar-style--transparent {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.navbar--top.navbar-style--transparent.is-scrolled {
  position: sticky;
  background: var(--kreynova-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
/* Hero needs to start at the very top of the page when the navbar floats over it
   (only applies to top position — transparency has no meaning for sidebars) */
body.navbar-style--transparent.has-navbar--top .site-main { margin-top: calc(-1 * var(--navbar-height, 68px)); }
@media (max-width: 1024px) {
  body.navbar-style--transparent.has-navbar--top .site-main { margin-top: calc(-1 * var(--navbar-height, 60px)); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn, var(--radius));
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary { background: var(--kreynova-primary); color: #fff; }
.btn--primary:hover { background: var(--kreynova-secondary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--light { background: #fff; color: var(--kreynova-secondary); }
.btn--light:hover { background: var(--kreynova-accent); color: var(--kreynova-secondary); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn--outline { background: transparent; color: var(--kreynova-primary); border-color: var(--kreynova-primary); }
.btn--outline:hover { background: var(--kreynova-primary); color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; /* split sizes the image to 50% — never tile it into the text half */
  background-color: var(--kreynova-secondary); /* graceful when image missing */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--kreynova-hero-overlay, linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)));
}
.hero__content { position: relative; max-width: 640px; padding: var(--sp-lg); }
.hero__title { color: #fff; }
.hero__subtitle { font-size: 1.1rem; opacity: 0.95; margin-bottom: var(--sp-lg); }

@media (min-width: 768px) {
  .hero { min-height: 65vh; }
  .hero__subtitle { font-size: 1.3rem; }
}

/* ---- HERO LAYOUT VARIANTS ---- */

/* classic: current centered-overlay behavior — no extra rules needed */

/* split: image fills one half, text sits on a solid panel the other half —
   no dark overlay needed since text isn't sitting on the image */
.hero--split { text-align: left; }
.hero--split .hero__content { max-width: 100%; padding: 0; }

@media (min-width: 768px) {
  .hero--split {
    background-size: 50% 100%;
    background-position: right center;
    background-color: var(--kreynova-secondary);
  }
  .hero--split::before { background: none; }
  .hero--split .hero__content {
    max-width: 50%;
    margin-right: auto;
    padding: var(--sp-xl);
  }
}

/* fullbleed: taller, text anchored near the bottom, minimal copy */
.hero--fullbleed { align-items: flex-end; min-height: 70vh; padding-bottom: var(--sp-xl); }
.hero--fullbleed::before { background: var(--kreynova-hero-overlay-fullbleed, linear-gradient(rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.65))); }
.hero--fullbleed .hero__content { max-width: 100%; }

@media (min-width: 768px) {
  .hero--fullbleed { min-height: 85vh; }
}

/* circle: round photo + floating category chips, no dark overlay (light
   background instead — text needs to read on a light surface, not an image) */
.hero--circle {
  position: static;
  min-height: auto;
  background: var(--kreynova-light);
  color: var(--kreynova-dark);
  display: block;
  text-align: left;
  padding: var(--sp-xl) 0;
}
.hero--circle::before { display: none; }
.hero--circle .hero__title,
.hero--circle .hero__subtitle { color: var(--kreynova-dark); opacity: 1; }
.hero-circle__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: center;
}
.hero-circle__content { max-width: 100%; }
.hero-circle__actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-lg); }
.hero-circle__media { position: relative; display: flex; justify-content: center; padding: var(--sp-md) 0; }
.hero-circle__img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero-circle__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
}
.hero-circle__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--kreynova-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-circle__chip:hover { color: var(--kreynova-secondary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hero-circle__chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  background: var(--kreynova-accent);
}
.hero-circle__chip-icon img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .hero-circle__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
  .hero-circle__img { width: 340px; height: 340px; }
}

@media (min-width: 1024px) {
  .hero-circle__categories {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    flex-direction: column;
    margin-top: 0;
  }
}

/* natural: light rounded photo card, eyebrow badge, arrow CTA — no dark
   overlay (same reasoning as circle: text needs to read on a light card,
   not an image), feature strip below reuses .hero-features (feature_count=4). */
.hero--natural {
  position: static;
  min-height: auto;
  background: var(--kreynova-light);
  color: var(--kreynova-dark);
  display: block;
  text-align: left;
  padding: var(--sp-xl) 0;
}
.hero--natural::before { display: none; }
.hero--natural .hero__title,
.hero--natural .hero__subtitle { color: var(--kreynova-dark); opacity: 1; }
.hero-natural__card {
  background: var(--kreynova-accent);
  border-radius: 28px;
  padding: var(--sp-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  align-items: center;
}
.hero-natural__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kreynova-secondary);
  margin-bottom: var(--sp-md);
}
.hero-natural__eyebrow-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--kreynova-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.hero-natural__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--kreynova-dark);
  margin-top: var(--sp-sm);
}
.hero-natural__cta::after {
  content: '→';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--kreynova-dark);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-natural__cta:hover { color: var(--kreynova-dark); }
.hero-natural__cta:hover::after { background: var(--kreynova-primary); transform: translateX(3px); }
.hero-natural__media { line-height: 0; }
.hero-natural__img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 20px; }

@media (min-width: 768px) {
  .hero-natural__card { grid-template-columns: 1fr 1fr; padding: var(--sp-xl); gap: var(--sp-xl); }
  .hero-natural__img { max-height: 460px; height: 100%; }
}

/* ---- HERO FEATURE CARDS (cards-3 / cards-2 layouts) ---- */
.hero-features {
  background: var(--kreynova-light);
  border-bottom: 1px solid var(--kreynova-border);
}
.hero-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-sm);
  padding: var(--sp-md) 0;
}
.hero-features__item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-features__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; color: var(--kreynova-primary); display: inline-flex; }
.kreynova-icon { width: 1em; height: 1em; flex-shrink: 0; }
.hero-features__label { font-weight: 600; color: var(--kreynova-secondary); font-size: 0.95rem; }

@media (min-width: 768px) {
  .hero-features__grid { padding: var(--sp-lg) 0; gap: var(--sp-md); }
  .hero-features__grid--4 { grid-template-columns: repeat(4, 1fr); }
  .hero-features__grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hero-features__grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin: 0 auto; }
  .hero-features__item { justify-content: center; padding: var(--sp-md); }
}

/* ============ ITEMS FILTER (category pills, optional) ============ */
.items-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-lg);
}
.items-filter__pill {
  font: inherit;
  cursor: pointer;
  background: #fff;
  color: var(--kreynova-secondary);
  border: 1px solid var(--kreynova-border);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.items-filter__pill:hover { border-color: var(--kreynova-primary); color: var(--kreynova-primary); }
.items-filter__pill.is-active { background: var(--kreynova-primary); color: #fff; border-color: var(--kreynova-primary); }

/* ============ ITEMS GRID (menu / services / products) ============ */
.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}
.item-card {
  background: #fff;
  border: 1px solid var(--kreynova-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: row; /* horizontal on mobile: thumb + text */
}
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.item-card__media { flex: 0 0 110px; }
.item-card__img { width: 110px; height: 100%; object-fit: cover; }
.item-card__body { padding: var(--sp-sm); flex: 1; display: flex; flex-direction: column; }
.item-card__title { margin-bottom: var(--sp-xs); color: var(--kreynova-secondary); }
.item-card__rating { color: var(--kreynova-primary); font-size: 0.85rem; letter-spacing: 1px; margin-bottom: var(--sp-xs); }
.item-card__meta { font-size: 0.85rem; font-weight: 600; color: var(--kreynova-primary); margin-bottom: var(--sp-xs); }
.item-card__desc { font-size: 0.92rem; color: var(--kreynova-muted, #666); flex: 1; }
.item-card__desc p { margin-bottom: var(--sp-xs); }
.item-card__footer { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-sm); margin-top: var(--sp-xs); }
.item-card__price { font-size: 1.25rem; font-weight: 700; color: var(--kreynova-primary); }

@media (min-width: 768px) {
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-lg); }
  .item-card { flex-direction: column; }
  .item-card__media { flex: none; }
  .item-card__img { width: 100%; height: 200px; }
  .item-card__body { padding: var(--sp-md); }
}

/* ---- CARD STYLE VARIANTS ---- */
/* Base .item-card above IS "elevated" at desktop width; these variants
   override specific properties rather than redefining the whole card. */

/* flat: bordered, no shadow, no lift on hover — calmer, denser lists (dental, barber) */
.item-card--flat { box-shadow: none; }
.item-card--flat:hover { transform: none; box-shadow: none; border-color: var(--kreynova-primary); }

/* overlay: text sits on top of a full-bleed image — visual-first (salon, boutique, construction) */
.item-card--overlay { position: relative; display: block; border: none; color: #fff; min-height: 260px; }
.item-card--overlay .item-card__media { position: absolute; inset: 0; flex: none; }
.item-card--overlay .item-card__img { width: 100%; height: 100%; }
.item-card--overlay::after {
  content: '';
  position: absolute; inset: 0;
  /* Dark at both ends: the title sits at the top of the card and the price at the bottom. */
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.1) 45%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0.85));
  pointer-events: none;
}
.item-card--overlay .item-card__body {
  position: relative; z-index: 1; margin-top: auto;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px;
}
.item-card--overlay .item-card__title,
.item-card--overlay .item-card__price { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.item-card--overlay .item-card__desc { color: rgba(255,255,255,0.85); }

/* horizontal: image-left row at EVERY breakpoint, never stacks to a tall card
   (good for restaurant menus and dense listing pages where scanning matters) */
.item-card--horizontal { flex-direction: row; }
.item-card--horizontal .item-card__media { flex: 0 0 110px; }
.item-card--horizontal .item-card__img { width: 110px; height: 100%; min-height: 100%; }
.item-card--horizontal .item-card__body { padding: var(--sp-sm); }

@media (min-width: 768px) {
  .item-card--horizontal { flex-direction: row; }
  .item-card--horizontal .item-card__media { flex: 0 0 160px; }
  .item-card--horizontal .item-card__img { width: 160px; height: auto; }
}

/* ---- HOMEPAGE LAYOUT VARIANTS ---- */
/* 'showcase' homepage layout (template-parts/home/home-showcase.php):
   one big featured-item card instead of the items grid. */
.spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.spotlight__media { line-height: 0; }
.spotlight__img { width: 100%; height: 220px; object-fit: cover; }
.spotlight__body { padding: var(--sp-lg); }
.spotlight__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kreynova-primary);
  margin-bottom: var(--sp-xs);
}
.spotlight__meta { font-size: 0.9rem; font-weight: 600; color: var(--kreynova-secondary); margin-bottom: var(--sp-xs); }
.spotlight__desc { color: var(--kreynova-muted, #666); margin-bottom: var(--sp-md); }
.spotlight__footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-md); }
.spotlight__price { font-size: 1.5rem; font-weight: 700; color: var(--kreynova-primary); }

@media (min-width: 768px) {
  .spotlight { grid-template-columns: 1fr 1fr; }
  .spotlight__img { height: 100%; min-height: 320px; }
}

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); align-items: center; }
.about__media img { border-radius: var(--radius); width: 100%; }
.values { list-style: none; margin-top: var(--sp-lg); display: grid; gap: var(--sp-md); }
.values__title { color: var(--kreynova-primary); margin-bottom: 0.25rem; font-family: var(--kreynova-font-body); }
.values__desc { color: var(--kreynova-muted, #666); margin: 0; font-size: 0.95rem; }

@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
}

/* ---- ABOUT STORY LAYOUT (page-about-story.php) ---- */
.about-banner {
  position: relative;
  min-height: 32vh;
  background-size: cover;
  background-position: center;
  background-color: var(--kreynova-secondary);
  display: flex;
  align-items: center;
  color: #fff;
}
.about-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--kreynova-hero-overlay, linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)));
}
.about-banner .container { position: relative; }
.about-banner__title { color: #fff; margin-bottom: 0; }

@media (min-width: 768px) {
  .about-banner { min-height: 40vh; }
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-md);
  text-align: center;
}
.stats-band__item { display: flex; flex-direction: column; gap: 0.25rem; }
.stats-band__number { font-family: var(--kreynova-font-display); font-size: 2.25rem; font-weight: 700; color: var(--kreynova-primary); }
.stats-band__label { font-size: 0.9rem; color: var(--kreynova-secondary); font-weight: 600; }

/* ============ TEAM ("Meet Our Chefs" / "Meet the Team") ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
  text-align: center;
}
.team-card__photo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--sp-sm);
  border-radius: 50%;
  overflow: hidden;
  background: var(--kreynova-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__initial { font-family: var(--kreynova-font-display); font-size: 2.5rem; font-weight: 700; color: var(--kreynova-primary); }
.team-card__name { margin-bottom: 0.15rem; font-size: 1.1rem; }
.team-card__role { color: var(--kreynova-muted, #666); font-size: 0.9rem; margin: 0; }

@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-xl); }
}

/* ============ ZONES ============ */
.zones { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-sm); }
.zone {
  background: var(--kreynova-primary);
  color: #fff;
  padding: var(--sp-sm);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
}
@media (min-width: 768px) {
  .zones { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-md); }
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); }
.testimonial {
  background: #fff;
  padding: var(--sp-md);
  border-radius: var(--radius);
  border-left: 4px solid var(--kreynova-primary);
  box-shadow: var(--shadow);
}
.testimonial__rating { color: var(--kreynova-primary); letter-spacing: 2px; margin-bottom: var(--sp-xs); }
.testimonial__text { font-style: italic; color: #555; }
.testimonial__text p { margin-bottom: var(--sp-sm); }
.testimonial__meta { display: flex; align-items: center; gap: var(--sp-sm); margin-top: var(--sp-sm); }
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--kreynova-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__author { font-style: normal; font-weight: 700; color: var(--kreynova-secondary); }

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-lg); }
}

/* ============ HOURS & CONTACT ============ */
.hours-contact { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); }
.hours { display: grid; gap: var(--sp-sm); }
.hours__item { padding: var(--sp-sm); border-left: 3px solid var(--kreynova-primary); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.hours__day { font-weight: 700; color: var(--kreynova-secondary); }
.hours__time { color: var(--kreynova-muted, #666); font-size: 0.95rem; }
.contact { display: grid; gap: var(--sp-sm); align-content: start; }
.contact__row strong { color: var(--kreynova-secondary); }

@media (min-width: 768px) {
  .hours-contact { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
}

/* ============ CTA ============ */
.cta {
  background: linear-gradient(135deg, var(--kreynova-primary), var(--kreynova-secondary));
  color: #fff;
  padding: var(--sp-xl) var(--sp-lg);
  border-radius: var(--radius);
  text-align: center;
}
.cta__title { color: #fff; }
.cta__subtitle { opacity: 0.95; margin-bottom: var(--sp-lg); }

/* ============ LANGUAGE SWITCHER ============ */
.lang-switcher { position: relative; }
.lang-switcher__current {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 170px;
  display: none;
  z-index: 200;
  overflow: hidden;
}
.lang-switcher.open .lang-switcher__menu { display: block; }
.lang-switcher__menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--kreynova-dark);
  font-size: 0.9rem;
}
.lang-switcher__menu a:hover { background: var(--kreynova-light); color: var(--kreynova-primary); }

/* ============ FLOATING WHATSAPP ============ */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  padding: 0.8rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float__label { display: none; font-weight: 600; }

@media (min-width: 768px) {
  .wa-float { padding: 0.8rem 1.2rem; }
  .wa-float__label { display: inline; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--kreynova-secondary);
  color: #fff;
  padding: var(--sp-xl) 0 var(--sp-lg);
  margin-top: var(--sp-xl);
}
.site-footer h3 { color: #fff; }
.site-footer a { color: var(--kreynova-accent); }
.site-footer a:hover { color: #fff; }
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--kreynova-secondary); } /* beats .site-footer a */
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); margin-bottom: var(--sp-lg); }
.site-footer__menu { list-style: none; display: grid; gap: var(--sp-xs); }
.site-footer__legal { text-align: center; opacity: 0.75; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--sp-md); margin: 0; }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr; }
}

/* ---- FOOTER VARIANTS ---- */

/* minimal: no grid, just a slim bar with the copyright line */
.site-footer--minimal { padding: var(--sp-lg) 0; }
.site-footer--minimal .site-footer__legal { border-top: none; padding-top: 0; }

/* centered: everything stacked and centered, inline menu */
.site-footer--centered { text-align: center; }
.site-footer--centered h3 { margin-bottom: var(--sp-sm); }
.site-footer__menu--inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

/* social: icon row + copyright */
.site-footer--social { text-align: center; }
.site-footer--social h3 { margin-bottom: var(--sp-md); }
.site-footer__social {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.site-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.site-footer__social-icon:hover { background: var(--kreynova-primary); transform: translateY(-2px); }

/* shop: brand+social, quick links, contact in up to 3 columns */
.site-footer__shop-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); margin-bottom: var(--sp-lg); }
.site-footer--shop h4 { color: #fff; font-size: 1rem; margin-bottom: var(--sp-sm); }
.site-footer--shop .site-footer__menu li { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.site-footer--shop .site-footer__social { justify-content: flex-start; margin-bottom: 0; margin-top: var(--sp-md); }

@media (min-width: 768px) {
  .site-footer__shop-grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-xl); }
}

/* cta: big banner before the legal line */
.site-footer--cta { padding-top: 0; }
.site-footer__cta-band {
  background: linear-gradient(135deg, var(--kreynova-primary), var(--kreynova-secondary));
  padding: var(--sp-xl) 0;
  margin-bottom: var(--sp-lg);
}
.site-footer__cta-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  align-items: center;
  text-align: center;
}
.site-footer__cta-inner h3 { color: #fff; margin-bottom: var(--sp-xs); }
.site-footer__cta-inner p { color: rgba(255, 255, 255, 0.9); margin-bottom: 0; }

@media (min-width: 768px) {
  .site-footer__cta-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  background: var(--kreynova-light);
  border-bottom: 1px solid var(--kreynova-border);
  padding: var(--sp-sm) 0;
  font-size: 0.85rem;
}
.breadcrumbs a { color: var(--kreynova-muted, #666); }
.breadcrumbs a:hover { color: var(--kreynova-primary); }
.breadcrumbs__sep { margin: 0 var(--sp-xs); color: #999; }
.breadcrumbs [aria-current="page"] { color: var(--kreynova-secondary); font-weight: 600; }

/* ============ PROSE (arbitrary block-editor content) ============ */
/* Applied on page.php, single.php content, page-about.php, page-contact.php
   so anything an admin types in the block editor inherits the active palette
   and font pair instead of looking like unstyled default WordPress output. */
.prose { max-width: 720px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--kreynova-secondary); margin-top: var(--sp-lg); }
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--sp-md); }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { margin: 0 0 var(--sp-md) 1.5rem; }
.prose li { margin-bottom: var(--sp-xs); }
.prose blockquote {
  border-left: 4px solid var(--kreynova-primary);
  padding: var(--sp-sm) var(--sp-md);
  margin: 0 0 var(--sp-md);
  background: var(--kreynova-light);
  font-style: italic;
  color: #555;
}
.prose img { border-radius: var(--radius); margin-bottom: var(--sp-md); }
.prose figcaption { font-size: 0.85rem; color: #777; text-align: center; margin-top: -0.5rem; margin-bottom: var(--sp-md); }
.prose hr { border: none; border-top: 1px solid var(--kreynova-border); margin: var(--sp-lg) 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-md); }
.prose th, .prose td { padding: var(--sp-sm); border: 1px solid var(--kreynova-border); text-align: left; }
.prose th { background: var(--kreynova-light); color: var(--kreynova-secondary); }

/* ============ SINGLE ITEM (menu item / service / product / listing / event) ============ */
.single-item__container { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); }
.single-item__media img { width: 100%; border-radius: var(--radius); }
.single-item__title { margin-bottom: var(--sp-sm); }
.single-item__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-md);
  margin-bottom: var(--sp-md); font-weight: 600; color: var(--kreynova-secondary);
}
.single-item__price { color: var(--kreynova-primary); font-size: 1.3rem; }
.single-item__cta { margin-top: var(--sp-lg); }

@media (min-width: 768px) {
  .single-item__container { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ============ ARCHIVE CARD LINKS ============ */
/* archive.php wraps the whole item-card in a link (rather than a WhatsApp
   button, since browsing the archive is exploratory, not a direct order) —
   this resets link styling so the card doesn't look like a hyperlink. */
.item-card__link-wrap { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.item-card--horizontal .item-card__link-wrap,
.item-card--flat .item-card__link-wrap { flex-direction: row; }
.item-card__link-wrap:hover { color: inherit; }

/* ---- ARCHIVE LAYOUT VARIANTS (archive.php) ---- */
/* 'list': single-column, full-width dense rows — independent of card_style,
   which still governs the homepage items grid. Overrides whichever
   card-style modifier is also present on the same elements. */
.items-grid--archive-list { grid-template-columns: 1fr; gap: var(--sp-sm); }
.items-grid--archive-list .item-card {
  flex-direction: row;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid var(--kreynova-border);
}
.items-grid--archive-list .item-card:hover { transform: none; box-shadow: none; }
.items-grid--archive-list .item-card:last-child { border-bottom: none; }
.items-grid--archive-list .item-card__link-wrap { flex-direction: row; }
.items-grid--archive-list .item-card__media { flex: 0 0 90px; }
.items-grid--archive-list .item-card__img { width: 90px; height: 90px; }
.items-grid--archive-list .item-card__body { padding: var(--sp-sm) 0 var(--sp-sm) var(--sp-sm); }

@media (min-width: 768px) {
  .items-grid--archive-list .item-card__media { flex: 0 0 120px; }
  .items-grid--archive-list .item-card__img { width: 120px; height: 120px; }
}

/* ============ SIMPLE POST LIST (search results, non-CPT archives) ============ */
.prose-list__item { padding: var(--sp-md) 0; border-bottom: 1px solid var(--kreynova-border); }
.prose-list__item:last-child { border-bottom: none; }
.prose-list__item h2 { margin-bottom: var(--sp-xs); }
.prose-list__type { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--kreynova-primary); font-weight: 600; margin-bottom: var(--sp-xs); }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; gap: var(--sp-sm); margin-top: var(--sp-lg); }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 0.5rem;
  border-radius: var(--radius); background: var(--kreynova-light); color: var(--kreynova-secondary);
  font-weight: 600;
}
.pagination .page-numbers.current { background: var(--kreynova-primary); color: #fff; }
.pagination .page-numbers:hover { background: var(--kreynova-primary); color: #fff; }

/* ============ CONTACT MAP ============ */
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ============ CONTACT FORM (page-contact-form.php) ============ */
.contact-split { display: grid; grid-template-columns: 1fr; gap: var(--sp-xl); }
.contact-split__sidebar { display: grid; gap: var(--sp-lg); align-content: start; }
.contact-split__sidebar .hours { gap: var(--sp-xs); }
.contact-split__sidebar .contact { gap: var(--sp-xs); }

@media (min-width: 1024px) {
  .contact-split { grid-template-columns: 3fr 2fr; }
}

.contact-form { display: grid; gap: var(--sp-md); margin-top: var(--sp-md); }
.form-group { display: grid; gap: 0.4rem; }
.form-group label { font-weight: 600; color: var(--kreynova-secondary); font-size: 0.9rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--kreynova-border);
  border-radius: var(--radius);
  font-family: var(--kreynova-font-body);
  font-size: 1rem;
  color: var(--kreynova-dark);
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus { outline: 2px solid var(--kreynova-primary); outline-offset: 1px; border-color: var(--kreynova-primary); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-notice { padding: var(--sp-sm) var(--sp-md); border-radius: var(--radius); margin-bottom: var(--sp-md); font-weight: 600; }
.form-notice--success { background: #E8F5E9; color: #1B5E20; }
.form-notice--error { background: #FDECEA; color: #B71C1C; }

/* Honeypot spam trap — invisible and unreachable by keyboard for real visitors,
   present in the DOM/tab order enough that naive bots still fill it in. */
.kreynova-hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ============ HERO: MOSAIC ============
   Dark band, text left, 3-photo collage right. Photos are shown near their
   native size, so square ~1000px phone photos stay sharp (unlike fullbleed). */
.hero--mosaic {
  position: static;
  min-height: auto;
  display: block;
  text-align: left;
  padding: var(--sp-xl) 0;
  background: var(--kreynova-secondary);
  color: #fff;
  overflow: hidden;
}
.hero--mosaic::before { display: none; }
.hero-mosaic__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-xl); align-items: center; }
.hero-mosaic__eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-md);
  color: var(--kreynova-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero--mosaic .hero__title { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.hero--mosaic .hero__subtitle { color: rgba(255,255,255,0.78); max-width: 34rem; }
.hero-mosaic__actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-lg); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { background: #fff; color: var(--kreynova-secondary); }
.hero-mosaic__media {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-sm);
  height: 360px;
}
.hero-mosaic__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-mosaic__img--1 { grid-row: 1 / 3; }

@media (min-width: 900px) {
  .hero--mosaic { padding: 5rem 0; }
  .hero-mosaic__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .hero-mosaic__media { height: 520px; }
  .hero-mosaic__img--2 { transform: translateY(-1.5rem); }
  .hero-mosaic__img--3 { transform: translateY(1.5rem); }
}

/* ============ GALLERY ============ */
.gallery__grid { columns: 2 160px; column-gap: var(--sp-sm); }
.gallery__item { break-inside: avoid; margin: 0 0 var(--sp-sm); overflow: hidden; border-radius: var(--radius); }
.gallery__img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.gallery__item:hover .gallery__img { transform: scale(1.04); }
@media (min-width: 768px) { .gallery--masonry .gallery__grid { columns: 3; } }
@media (min-width: 1100px) { .gallery--masonry .gallery__grid { columns: 4; } }

.gallery__strip { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--sp-md) var(--sp-sm); scrollbar-width: thin; }
.gallery--strip .gallery__grid { columns: auto; display: flex; gap: var(--sp-sm); width: max-content; }
.gallery--strip .gallery__item { margin: 0; flex: 0 0 auto; width: 240px; height: 240px; scroll-snap-align: start; }
.gallery--strip .gallery__img { height: 100%; object-fit: cover; }
@media (min-width: 768px) { .gallery--strip .gallery__item { width: 300px; height: 300px; } }

/* ============ MENU (printed carte) ============ */
.menu__groups { max-width: 1040px; margin: 0 auto; }
.menu__group { break-inside: avoid; margin-bottom: var(--sp-xl); }
/* Columns, not grid: short groups stack under each other instead of leaving row gaps. */
@media (min-width: 900px) { .menu__groups { columns: 2; column-gap: 4rem; } }
.menu__group-title {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kreynova-primary);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--kreynova-border);
}
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-md); }
.menu__item { display: flex; gap: var(--sp-md); align-items: flex-start; }
.menu__thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.menu__text { flex: 1; min-width: 0; }
.menu__line { display: flex; align-items: baseline; gap: 0.5rem; }
.menu__name { font-family: var(--kreynova-font-display); font-size: 1.15rem; color: var(--kreynova-secondary); }
.menu__dots { flex: 1; border-bottom: 1px dotted var(--kreynova-border); transform: translateY(-4px); min-width: 1rem; }
.menu__price { font-weight: 600; color: var(--kreynova-primary); white-space: nowrap; }
.menu__desc { margin: 0.25rem 0 0; color: var(--kreynova-muted, #666); font-size: 0.95rem; }
.menu__cta { text-align: center; margin-top: var(--sp-xl); }

/* ============ SITE LOGO (inline SVG, see kreynova_site_logo_svg()) ============ */
/* The wordmark uses currentColor; the brand colour comes from the two tints set inline on the
   <svg>: the plain one for light surfaces, the lighter one where the navbar/footer is dark. */
.kreynova-logo { display: block; height: auto; --kreynova-logo-brand: var(--kreynova-logo-on-light); }
.navbar .kreynova-logo,
.site-footer .kreynova-logo { --kreynova-logo-brand: var(--kreynova-logo-on-dark); }
.navbar__brand { display: block; color: inherit; line-height: 0; }
.navbar--top .navbar__brand .kreynova-logo { height: 50px; width: auto; max-width: min(60vw, 300px); }
.navbar--left .navbar__brand .kreynova-logo,
.navbar--right .navbar__brand .kreynova-logo { width: 100%; max-width: 220px; }
.site-footer__logo { margin: 0 0 var(--sp-sm); color: #fff; line-height: 0; }
.site-footer__logo .kreynova-logo { height: 56px; width: auto; max-width: 100%; }

.site-footer--centered .site-footer__logo .kreynova-logo { margin-inline: auto; }
@media (max-width: 600px) {
  .navbar--top .navbar__brand .kreynova-logo { height: 40px; }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
