/* Empire Kitchen Gutenberg blocks — layout only. Brand colours/type stay in main.css. */

.tek-es {
  display: flex;
  flex-direction: column;
  position: relative;
  background-size: cover;
  background-position: center;
}

.tek-es__inner {
  display: grid;
  gap: 2rem;
  width: 100%;
  align-items: center;
}

.tek-es--valign-top { justify-content: flex-start; }
.tek-es--valign-top .tek-es__inner { align-items: start; }
.tek-es--valign-center { justify-content: center; }
.tek-es--valign-center .tek-es__inner { align-items: center; }
.tek-es--valign-bottom { justify-content: flex-end; }
.tek-es--valign-bottom .tek-es__inner { align-items: end; }

.tek-es--align-center { text-align: center; }
.tek-es--align-right { text-align: right; }

.tek-es--h-auto { min-height: 0; }
.tek-es--h-medium { min-height: 28rem; }
.tek-es--h-large { min-height: 42rem; }
.tek-es--h-xl { min-height: 70vh; }
.tek-es--h-fullscreen { min-height: 100vh; }

.tek-es--w-narrow .tek-es__inner { max-width: 48rem; }
.tek-es--w-wide .tek-es__inner { max-width: 90rem; }
.tek-es--w-full .tek-es__inner {
  max-width: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.tek-es--bg-white { background: #fff; }
.tek-es--bg-image { color: #fff; }
.tek-es--bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.45);
  pointer-events: none;
}
.tek-es--bg-image .tek-es__inner { position: relative; z-index: 1; }

.tek-es--bg-charcoal .tek-es__col,
.tek-es--bg-dark .tek-es__col,
.tek-es--bg-image .tek-es__col {
  color: #fff;
}

.tek-es--bg-charcoal h1,
.tek-es--bg-charcoal h2,
.tek-es--bg-charcoal h3,
.tek-es--bg-dark h1,
.tek-es--bg-dark h2,
.tek-es--bg-dark h3,
.tek-es--bg-image h1,
.tek-es--bg-image h2,
.tek-es--bg-image h3 {
  color: #fff;
}

.tek-es--bg-charcoal h2 em,
.tek-es--bg-charcoal h2 span,
.tek-es--bg-dark h2 em,
.tek-es--bg-image h2 em {
  color: var(--tek-accent);
  font-style: italic;
}

.tek-col h1.wp-block-heading,
.tek-col h2.wp-block-heading {
  font-family: var(--tek-font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  text-transform: none;
  letter-spacing: 0;
}

.tek-col h3.wp-block-heading {
  font-family: var(--tek-font-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

.tek-col h4.wp-block-heading,
.tek-col .tek-h4 {
  font-family: var(--tek-font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 0.5rem;
}

.tek-col p {
  font-size: 1.125rem;
  line-height: 1.7;
}

.tek-col .tek-lede,
.tek-col p.tek-lede {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--tek-gray-700);
}

.tek-es--bg-charcoal .tek-col .tek-lede,
.tek-es--bg-dark .tek-col .tek-lede {
  color: #9ca3af;
}

.tek-col .wp-block-image,
.tek-col figure.wp-block-image {
  margin: 0;
}

.tek-col .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.tek-col--ratio-1-1 .wp-block-image img { aspect-ratio: 1 / 1; }
.tek-col--ratio-4-3 .wp-block-image img { aspect-ratio: 4 / 3; }
.tek-col--ratio-16-9 .wp-block-image img { aspect-ratio: 16 / 9; }
.tek-col--ratio-4-5 .wp-block-image img { aspect-ratio: 4 / 5; }
.tek-col--ratio-3-4 .wp-block-image img { aspect-ratio: 3 / 4; }

.wp-block-image.is-style-tek-square img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.wp-block-image.is-style-tek-landscape img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.wp-block-image.is-style-tek-wide img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.wp-block-image.is-style-tek-portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.wp-block-image.is-style-tek-tall img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

.wp-block-button.is-style-tek-accent .wp-block-button__link,
.wp-block-button.is-style-tek-outline .wp-block-button__link,
.wp-block-button.is-style-tek-ghost .wp-block-button__link,
.wp-block-button.is-style-tek-white .wp-block-button__link,
.wp-block-button.is-style-tek-light .wp-block-button__link {
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  text-decoration: none;
}

.wp-block-button.is-style-tek-accent .wp-block-button__link {
  background: var(--tek-accent);
  color: #fff;
}
.wp-block-button.is-style-tek-outline .wp-block-button__link {
  background: transparent;
  color: var(--tek-ink);
  border: 1px solid var(--tek-ink);
}
.tek-es--bg-charcoal .wp-block-button.is-style-tek-outline .wp-block-button__link,
.tek-hero-block .wp-block-button.is-style-tek-outline .wp-block-button__link {
  color: #fff;
  border-color: #fff;
}
.wp-block-button.is-style-tek-ghost .wp-block-button__link {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.wp-block-button.is-style-tek-white .wp-block-button__link {
  background: #fff;
  color: var(--tek-ink);
}
.wp-block-button.is-style-tek-light .wp-block-button__link {
  background: #fff;
  color: var(--tek-accent);
}

.tek-hero-block--h-compact {
  min-height: 0;
}
.tek-hero-block--h-standard.tek-hero-block--simple {
  min-height: 0;
}
.tek-hero-block--h-standard.tek-hero-block--overlay,
.tek-hero-block--h-standard.tek-hero-block--split {
  min-height: 70vh;
}
.tek-hero-block--h-large {
  min-height: 90vh;
}
.tek-hero-block--h-fullscreen {
  min-height: 100vh;
}

.tek-hero-block--align-center .tek-hero__lede,
.tek-hero-block--align-center .tek-page-hero__lede {
  margin-left: auto;
  margin-right: auto;
}
.tek-hero-block--align-right {
  text-align: right;
}

.tek-hero-block--bg-cream,
.tek-hero-block--bg-warm-cream,
.tek-hero-block--bg-white {
  background: var(--tek-cream);
  color: var(--tek-ink);
}
.tek-hero-block--bg-warm-cream { background: var(--tek-cream-2); }
.tek-hero-block--bg-white { background: #fff; }
.tek-hero-block--bg-cream .tek-hero__title,
.tek-hero-block--bg-cream .tek-page-hero__title,
.tek-hero-block--bg-warm-cream .tek-hero__title,
.tek-hero-block--bg-white .tek-hero__title {
  color: var(--tek-ink);
}
.tek-hero-block--bg-cream .tek-hero__lede,
.tek-hero-block--bg-cream .tek-page-hero__lede {
  color: var(--tek-gray-600);
}

.tek-main > .wp-block-empire-hero,
.tek-main > .wp-block-empire-section,
.tek-main > .wp-block-empire-cta,
.tek-main > .wp-block-empire-image-quote,
.tek-main > .wp-block-empire-dishes,
.tek-main > .wp-block-empire-locations {
  margin: 0;
}

.tek-quote-full.tek-image-quote {
  height: auto;
}

.tek-image-quote {
  height: auto;
}
.tek-image-quote--h-medium { min-height: 22rem; }
.tek-image-quote--h-large { min-height: 37.5rem; }
.tek-image-quote--h-xl { min-height: 70vh; }
.tek-image-quote--h-fullscreen { min-height: 100vh; }

.tek-image-quote img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tek-image-quote--overlay-none .tek-quote-full__overlay { background: transparent; }
.tek-image-quote--overlay-light .tek-quote-full__overlay { background: rgba(251, 249, 245, 0.55); }
.tek-image-quote--overlay-light h2 { color: var(--tek-ink); }
.tek-image-quote--align-left .tek-quote-full__overlay { justify-content: flex-start; text-align: left; }
.tek-image-quote--align-right .tek-quote-full__overlay { justify-content: flex-end; text-align: right; }

.tek-cta--dark {
  background: var(--tek-charcoal);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}
.tek-cta--dark .tek-h2 { color: #fff; }
.tek-cta--h-medium { min-height: 24rem; display: flex; align-items: center; }
.tek-cta--h-large { min-height: 36rem; display: flex; align-items: center; }
.tek-cta--align-left { text-align: left; }
.tek-cta--band .tek-cta__inner.tek-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.tek-cta--light .tek-cta__inner { text-align: center; }

.tek-dishes-block .tek-section__head { margin-bottom: 3rem; }
.tek-block-placeholder {
  padding: 2rem;
  border: 1px dashed var(--tek-line);
  color: var(--tek-gray-500);
  text-align: center;
}

.tek-dish-grid--cols-2,
.tek-dish-grid--cols-3,
.tek-dish-grid--cols-4 {
  display: grid;
  gap: 1.5rem;
}

.tek-venue-grid--cols-1 { grid-template-columns: 1fr; }

.tek-two-up {
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tek-line);
  margin-top: 1rem;
}

.wp-block-group.tek-two-up {
  display: grid;
}

.wp-block-group.tek-contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 0 0 2rem;
}

.wp-block-group.tek-contact-item .wp-block-group {
  flex: 1;
}

.tek-contact-item h3.wp-block-heading {
  font-family: var(--tek-font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.tek-contact-item p {
  color: var(--tek-gray-500);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.tek-contact-item a {
  color: var(--tek-accent);
  font-weight: 700;
  text-decoration: none;
}

.tek-contact-item a:hover {
  text-decoration: underline;
}

.wp-block-group.tek-faq {
  background: var(--tek-cream-2);
  border: 1px solid var(--tek-line);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin: 2.5rem 0;
}

.tek-faq h3.wp-block-heading {
  font-size: 1.875rem;
  font-family: var(--tek-font-serif);
  font-weight: 400;
  margin: 0 0 1.5rem;
}

.tek-faq h4.wp-block-heading {
  font-family: var(--tek-font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
}

.tek-faq p {
  color: var(--tek-gray-600);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.wp-block-group.tek-image-caption {
  position: relative;
}

.wp-block-group.tek-image-caption .wp-block-image img {
  border-radius: var(--tek-jumbo);
  aspect-ratio: 4 / 5;
}

.wp-block-group.tek-image-caption::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--tek-jumbo);
  background: linear-gradient(to top, rgba(12, 12, 14, 0.6), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.wp-block-group.tek-image-caption .wp-block-group.tek-frame__caption,
.wp-block-group.tek-image-caption .tek-frame__caption {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  color: #fff;
}

.tek-image-caption .tek-frame__caption h3.wp-block-heading {
  font-size: 1.875rem;
  font-family: var(--tek-font-serif);
  color: #fff;
  margin: 0 0 0.75rem;
}

.tek-image-caption .tek-frame__caption p {
  margin: 0;
  color: #d1d5db;
  font-size: 1rem;
}

.tek-cta--accent {
  background: transparent;
  padding: 4rem 0 6rem;
}

.tek-cta--accent .tek-partner-banner {
  text-align: center;
}

.tek-cta--accent .tek-hero__actions,
.tek-partner-banner .tek-hero__actions,
.tek-cta--align-center .tek-hero__actions {
  justify-content: center;
}

.wp-block-empire-section.tek-es--bg-charcoal + .wp-block-empire-cta.tek-cta--accent {
  background: var(--tek-charcoal);
  padding: 0 0 8rem;
}

.wp-block-empire-section.tek-es--bg-charcoal:has(+ .wp-block-empire-cta.tek-cta--accent) {
  padding-bottom: 4rem;
}

.tek-es + .tek-es.tek-es--bg-charcoal.tek-section--charcoal {
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .tek-es__inner { gap: 4rem; }
  .tek-es--cols-2 .tek-es__inner { grid-template-columns: 1fr 1fr; }
  .tek-es--cols-2.tek-es--ratio-40-60 .tek-es__inner { grid-template-columns: 2fr 3fr; }
  .tek-es--cols-2.tek-es--ratio-60-40 .tek-es__inner { grid-template-columns: 3fr 2fr; }
  .tek-es--cols-2.tek-es--ratio-33-67 .tek-es__inner { grid-template-columns: 1fr 2fr; }
  .tek-es--cols-2.tek-es--ratio-67-33 .tek-es__inner { grid-template-columns: 2fr 1fr; }
  .tek-es--cols-3 .tek-es__inner { grid-template-columns: 1fr 1fr; }
  .tek-two-up,
  .wp-block-group.tek-two-up { grid-template-columns: 1fr 1fr; }
  .tek-cta--band .tek-cta__inner.tek-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .tek-dish-grid--cols-2,
  .tek-dish-grid--cols-3,
  .tek-dish-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
  .tek-venue-grid--cols-2,
  .tek-venue-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tek-es--cols-3 .tek-es__inner { grid-template-columns: 1fr 1fr 1fr; }
  .tek-dish-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
  .tek-dish-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
  .tek-venue-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
  .tek-es--cols-2.tek-es--valign-top .tek-es__inner > :last-child {
    position: sticky;
    top: calc(var(--tek-nav-h) + 2rem);
    align-self: start;
  }
  body.admin-bar .tek-es--cols-2.tek-es--valign-top .tek-es__inner > :last-child {
    top: calc(var(--tek-nav-h) + 2rem + 32px);
  }
}

@media (max-width: 767px) {
  .tek-es--cols-2 .tek-es__inner,
  .tek-es--cols-3 .tek-es__inner {
    grid-template-columns: 1fr;
  }
  .tek-es--mobile-reverse .tek-es__inner > :nth-child(1) { order: 3; }
  .tek-es--mobile-reverse .tek-es__inner > :nth-child(2) { order: 2; }
  .tek-es--mobile-reverse .tek-es__inner > :nth-child(3) { order: 1; }
}

/* Editor canvas */
.editor-styles-wrapper {
  font-family: var(--tek-font-sans, Inter, system-ui, sans-serif);
  background: #fbf9f5;
  color: #111827;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3 {
  font-family: var(--tek-font-serif, "Playfair Display", Georgia, serif);
  font-weight: 400;
}

.editor-styles-wrapper .tek-es__inner.block-editor-block-list__layout {
  display: grid;
}

.editor-styles-wrapper .wp-block-empire-hero,
.editor-styles-wrapper .wp-block-empire-section,
.editor-styles-wrapper .wp-block-empire-cta,
.editor-styles-wrapper .wp-block-empire-image-quote {
  max-width: none;
}

.editor-styles-wrapper .tek-hero-block--h-fullscreen,
.editor-styles-wrapper .tek-hero-block--h-large {
  min-height: 28rem;
}

.tek-editor-image-field {
  display: grid;
  gap: 8px;
}
