/* Theme kit "casa": the generalist neighbourhood restaurant. Warm cream,
   terracotta and olive, Lora titles over Inter. Scoped to .theme-kit--casa
   (test/lib/theme_kit_css_scope_convention_test.rb); layout comes from the
   Tailwind utilities in app/views/theme_kits/_band.html.erb, this sheet only
   carries the kit's look and motion. */

.theme-kit--casa {
  --tk-display: 'Lora', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #2b2119;
  --tk-band-scrim: 245, 237, 215;
}

/* Text never sits on the art: a near-solid wash of the band colour under it. */
.theme-kit--casa .tk-band__scrim {
  background: linear-gradient(90deg, rgba(var(--tk-band-scrim), .94) 0%, rgba(var(--tk-band-scrim), .86) 42%, rgba(var(--tk-band-scrim), 0) 66%);
}
.theme-kit--casa[dir="rtl"] .tk-band__scrim {
  background: linear-gradient(270deg, rgba(var(--tk-band-scrim), .94) 0%, rgba(var(--tk-band-scrim), .86) 42%, rgba(var(--tk-band-scrim), 0) 66%);
}

.theme-kit--casa .tk-name {
  font-family: var(--tk-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 7.5cqw, 2.5rem);
  line-height: 1.05;
  color: var(--tk-band-ink);
}
.theme-kit--casa .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--casa .tk-band__kicker {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #56632b;
}

.theme-kit--casa .tk-tag { background: #f3ead8; color: #6b4a2b; }

/* Steam over the casserole: two wisps, twice, then still (rule 3). */
.theme-kit--casa .tk-casa-steam { opacity: 0; }
@keyframes tk-casa-steam {
  0% { transform: translateY(16px); opacity: 0; }
  35% { opacity: .9; }
  100% { transform: translateY(-60px); opacity: 0; }
}
.theme-kit--casa .tk-band:not(.tk-still) .tk-casa-steam { animation: tk-casa-steam 2.2s ease-out 2 both; }
.theme-kit--casa .tk-band:not(.tk-still) .tk-casa-steam--late { animation: tk-casa-steam 2.2s ease-out .6s 2 both; }
@media (prefers-reduced-motion: reduce) {
  .theme-kit--casa .tk-casa-steam { animation: none !important; }
}

/* ---- Phase 3 variants and skins (THEMES_IMPLEMENTATION.md) ---- */

/* Variant casa.moderna: all-day neighbourhood spot. Bricolage Grotesque, forest green on sage. */
.theme-kit--casa.theme-kit--casa-moderna {
  --tk-display: 'Bricolage Grotesque', 'Noto Sans', 'Noto Sans Armenian', 'Noto Sans Arabic', 'Noto Sans Hebrew',
    'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Devanagari',
    'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Ethiopic', system-ui, sans-serif;
  --tk-band-ink: #2a2d2b;
  --tk-band-scrim: 225, 233, 220;
}
.theme-kit--casa.theme-kit--casa-moderna .tk-name {
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.75rem, 7.5cqw, 2.375rem);
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
.theme-kit--casa.theme-kit--casa-moderna .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--casa.theme-kit--casa-moderna .tk-band__kicker {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .12em;
  color: #2f6b4f;
}

.theme-kit--casa.theme-kit--casa-moderna .tk-tag { background: #f1f5ee; color: #2f6b4f; }

/* Variant casa.familiar: family cafe. Comfortaa, plum and terracotta on peach. */
.theme-kit--casa.theme-kit--casa-familiar {
  --tk-display: 'Comfortaa', 'Noto Sans', 'Noto Sans Armenian', 'Noto Sans Arabic', 'Noto Sans Hebrew',
    'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Devanagari',
    'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Ethiopic', system-ui, sans-serif;
  --tk-band-ink: #3a2a2e;
  --tk-band-scrim: 254, 202, 156;
}
.theme-kit--casa.theme-kit--casa-familiar .tk-name {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.75rem, 7.5cqw, 2.375rem);
  line-height: 1.05;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
.theme-kit--casa.theme-kit--casa-familiar .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--casa.theme-kit--casa-familiar .tk-band__kicker {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .12em;
  color: #7a3122;
}

.theme-kit--casa.theme-kit--casa-familiar .tk-tag { background: #fbe3d0; color: #7a3a22; }

/* Photographic casa.foto: the photo fills the band under the shared wash
   (base.css, .tk-band--photo); here only its letters. */
.theme-kit--casa.theme-kit--casa-foto {
  --tk-display: 'Fraunces', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #2a221c;
  --tk-band-scrim: 248, 244, 236;
}
.theme-kit--casa.theme-kit--casa-foto .tk-name {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.875rem, 8cqw, 2.5rem);
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
.theme-kit--casa.theme-kit--casa-foto .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--casa.theme-kit--casa-foto .tk-band__kicker {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .16em;
  color: #9c3f1e;
}

.theme-kit--casa.theme-kit--casa-foto .tk-tag { background: #f1e7d6; color: #7a3216; }

/* ---- Menu, in the kit template (base.css; docs/strategy/THEMES_FIDELIDAD.md) ---- */

/* Casa: a family kitchen's carta. Inter text, Lora titles with a short olive
   stroke under them, terracotta prices, chips like linen tags. */
.theme-kit--casa.theme-kit {
  --theme-font: 'Inter', var(--tk-sans);
  --tk-h2-size: 1.5rem;
  --tk-name-size: 1.0625rem;
  --tk-price-weight: 800;
  --tk-rule: #eadfcb;
  --tk-chip-border: #e2d4ba;
  --tk-chip-bg: #ffffff;
  --tk-chip-active-bg: var(--theme-primary);
  --tk-chip-active-border: var(--theme-primary);
  --tk-chip-active-color: #fffdf8;
  --tk-tag-bg: #f3ead8;
  --tk-tag-color: #6b4a2b;
}
.theme-kit--casa .tk-section__title::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-top: .5rem;
  border-radius: 3px;
  background: var(--theme-accent);
}

/* Casa · moderna: an all-day spot. Bricolage titles, tight and heavy; forest green. */
.theme-kit--casa.theme-kit--casa-moderna {
  --tk-h2-size: 1.625rem;
  --tk-h2-weight: 800;
  --tk-h2-spacing: -.02em;
  --tk-name-weight: 600;
  --tk-rule: #e5eae1;
  --tk-chip-radius: .625rem;
  --tk-chip-border: #dfe6da;
  --tk-chip-active-bg: #2a2d2b;
  --tk-chip-active-border: #2a2d2b;
  --tk-chip-active-color: #ffffff;
  --tk-tag-bg: #e1e9dc;
  --tk-tag-color: #1f4a36;
}
.theme-kit--casa.theme-kit--casa-moderna .tk-section__title::after { width: 1.5rem; height: 4px; border-radius: 0; background: #d2553d; }

/* Casa · familiar: a family café. Round Comfortaa titles with a wavy underline,
   Nunito text, labels (until 11:00, healthy) as soft pills. */
.theme-kit--casa.theme-kit--casa-familiar {
  --theme-font: 'Nunito', var(--tk-sans);
  --tk-h2-size: 1.375rem;
  --tk-name-weight: 700;
  --tk-price-weight: 800;
  --tk-rule: #f1dcc8;
  --tk-chip-border: #e9c9a9;
  --tk-chip-active-bg: #5a2e3a;
  --tk-chip-active-border: #5a2e3a;
  --tk-chip-active-color: #fff8ef;
  --tk-tag-bg: #fbe3d0;
  --tk-tag-color: #7a3a22;
}
.theme-kit--casa.theme-kit--casa-familiar .tk-section__title::after { display: none; }
.theme-kit--casa.theme-kit--casa-familiar .tk-section__title {
  text-decoration: underline wavy var(--theme-accent) 2px;
  text-underline-offset: .4em;
}

/* Casa · foto: the casa carta under a photographic header. */
.theme-kit--casa.theme-kit--casa-foto {
  --tk-h2-size: 1.5rem;
  --tk-rule: #e6dccb;
}

/* ---- Mexico (2026-11-09) ---- */

/* Variant casa.cantina: a cantina or botanero at night. Bungee like a neon
   sign, tequila amber on dark wood; the papel picado sways three times. */
.theme-kit--casa.theme-kit--casa-cantina {
  --tk-display: 'Bungee', 'Noto Sans', 'Noto Sans Armenian', 'Noto Sans Arabic', 'Noto Sans Hebrew',
    'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Devanagari',
    'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Ethiopic', system-ui, sans-serif;
  --tk-band-ink: #f7eadb;
  --tk-band-scrim: 32, 17, 10;
  --theme-font: 'DM Sans', var(--tk-sans);
  --tk-h2-weight: 400;
  --tk-rule: #3f2c22;
  --tk-chip-bg: #2a1c15;
  --tk-chip-border: #3f2c22;
  --tk-chip-color: #f7eadb;
  --tk-chip-active-bg: #f2b33d;
  --tk-chip-active-border: #f2b33d;
  --tk-chip-active-color: #1c120d;
  --tk-tag-bg: #3f2c22;
  --tk-tag-color: #f7eadb;
}
.theme-kit--casa.theme-kit--casa-cantina .tk-name { font-weight: 400; font-size: clamp(1.75rem, 8cqw, 2.5rem); line-height: 1.05; }
.theme-kit--casa.theme-kit--casa-cantina .tk-band--short .tk-name { font-size: 1.5rem; }
.theme-kit--casa.theme-kit--casa-cantina .tk-band__kicker { color: #f2b33d; }
.theme-kit--casa.theme-kit--casa-cantina .tk-tag { background: #3f2c22; color: #f7eadb; }
@keyframes tk-casa-flags {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 5px; }
}
.theme-kit--casa.theme-kit--casa-cantina .tk-band:not(.tk-still) .tk-casa-flags { animation: tk-casa-flags 1.6s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) {
  .theme-kit--casa .tk-casa-flags { animation: none !important; }
}
