/*
Theme Name: Cafe Renate Editierbar
Theme URI: https://example.invalid/cafe-renate-editierbar
Author: ChatGPT
Description: Ein schlankes, editierbares WordPress-Theme fuer Cafe Renate am Golfclub Gaeuboden. Inhalte koennen ueber den WordPress-Editor bearbeitet werden.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: cafe-renate
*/

:root {
  --cream: #fff8ee;
  --paper: #fffdf8;
  --sand: #ead8bf;
  --latte: #c79c6b;
  --caramel: #a76f3f;
  --espresso: #2d2018;
  --mocha: #5b3b25;
  --green: #416a3f;
  --green-soft: #e8f1e3;
  --rose: #b65a43;
  --shadow: 0 20px 45px rgba(45, 32, 24, 0.13);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--espresso);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

strong {
  color: var(--mocha);
}

.container {
  width: min(var(--container), calc(100% - 36px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--espresso);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.topline {
  background: var(--espresso);
  color: #fff8ee;
  font-size: 0.92rem;
}

.topline .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
}

.topline a {
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 238, 0.92);
  border-bottom: 1px solid rgba(91, 59, 37, 0.12);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: auto;
  height: 82px;
  max-width: 170px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: var(--espresso);
  font: inherit;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--mocha);
  font-weight: 750;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green-soft);
  color: var(--green);
}

.nav-cta {
  margin-left: 6px;
  color: #fff !important;
  background: var(--green) !important;
  box-shadow: 0 10px 20px rgba(65, 106, 63, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -160px -20vw auto auto;
  width: 540px;
  height: 540px;
  background: rgba(199, 156, 107, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.18fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  color: var(--espresso);
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 720px;
  font-size: clamp(3rem, 8vw, 6.2rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: -0.025em;
}

.lead {
  max-width: 690px;
  margin-top: 22px;
  color: rgba(45, 32, 24, 0.78);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 16px 28px rgba(65, 106, 63, 0.23);
}

.button-secondary {
  color: var(--mocha);
  background: #fff;
  border-color: rgba(91, 59, 37, 0.16);
}

.hero-card {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: min(560px, 56vw);
  min-height: 360px;
  object-fit: cover;
}

.hero-note {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  color: var(--mocha);
  background: #fff;
  font-weight: 750;
}

.hero-note span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--caramel);
}

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 52px 0;
}

.section-alt {
  background: #fffdf8;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-header p {
  max-width: 620px;
  color: rgba(45, 32, 24, 0.72);
  font-size: 1.08rem;
}

.kicker {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(91, 59, 37, 0.1);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 28px rgba(45, 32, 24, 0.06);
}

.info-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 1.35rem;
}

.info-card p {
  margin-top: 12px;
  color: rgba(45, 32, 24, 0.72);
}

.story-grid,
.drink-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.story-media {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 16px;
  align-items: end;
}

.story-media img,
.drink-photo,
.contact-photo,
.menu-photo {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.story-media img:first-child {
  height: 420px;
}

.story-media img:last-child {
  height: 520px;
}

.story-copy p,
.drink-copy p,
.menu-intro p {
  color: rgba(45, 32, 24, 0.74);
  font-size: 1.07rem;
}

.highlight-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-auto-rows: 235px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ddd;
  box-shadow: 0 14px 34px rgba(45, 32, 24, 0.08);
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  inset: auto 14px 14px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(45, 32, 24, 0.72);
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.drink-section {
  background: linear-gradient(135deg, #fff8ee 0%, #edf4e8 100%);
}

.drink-photo {
  height: 580px;
}

.menu-preview {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.menu-panel {
  padding: 34px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: var(--espresso);
  box-shadow: var(--shadow);
}

.menu-panel h2,
.menu-panel h3 {
  color: #fff;
}

.menu-panel p {
  color: rgba(255, 248, 238, 0.78);
}

.menu-teasers {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.menu-teasers li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 248, 238, 0.18);
  color: #fff8ee;
  font-weight: 760;
}

.menu-teasers span:last-child {
  color: var(--sand);
  white-space: nowrap;
}

.menu-image-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.menu-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-section {
  background: var(--paper);
}

.contact-card {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--green-soft);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.contact-row span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff;
  font-weight: 850;
}

.contact-photo {
  height: 580px;
}

.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, #fff8ee 0%, #edf4e8 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.page-hero img {
  width: 100%;
  height: 470px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 34px;
  align-items: start;
}

.menu-table {
  overflow: hidden;
  border: 1px solid rgba(91, 59, 37, 0.13);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 14px 34px rgba(45, 32, 24, 0.06);
}

.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(91, 59, 37, 0.1);
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row strong {
  color: var(--espresso);
  font-weight: 850;
}

.menu-row span:last-child {
  font-weight: 900;
  color: var(--green);
  white-space: nowrap;
}

.note-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.menu-aside {
  position: sticky;
  top: 116px;
}

.menu-photo {
  max-height: 760px;
  object-fit: cover;
}

.menu-aside p {
  margin-top: 14px;
  color: rgba(45, 32, 24, 0.68);
  font-size: 0.94rem;
}

.site-footer {
  padding: 44px 0 28px;
  color: rgba(255, 248, 238, 0.82);
  background: var(--espresso);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3,
.site-footer strong {
  color: #fff8ee;
}

.site-footer a {
  color: #fff8ee;
  font-weight: 800;
}

.legal {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 248, 238, 0.16);
  color: rgba(255, 248, 238, 0.64);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .topline .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav[data-open="true"] {
    display: flex;
  }

  .main-nav a {
    border-radius: var(--radius-md);
  }

  .hero-grid,
  .story-grid,
  .drink-grid,
  .contact-grid,
  .menu-preview,
  .page-hero-grid,
  .menu-layout {
    grid-template-columns: 1fr;
  }

  .hero-card img,
  .page-hero img,
  .contact-photo,
  .drink-photo {
    height: 430px;
    min-height: 0;
  }

  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-aside {
    position: static;
  }
}

@media (max-width: 660px) {
  .container {
    width: min(100% - 26px, var(--container));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand img {
    width: auto;
    height: 62px;
    max-width: 140px;
  }

  .main-nav {
    top: 74px;
    right: 13px;
    left: 13px;
  }

  .hero,
  .section,
  .page-hero {
    padding: 46px 0;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .hero-card {
    border-width: 6px;
    border-radius: 22px;
  }

  .hero-card img,
  .page-hero img,
  .contact-photo,
  .drink-photo {
    height: 340px;
  }

  .story-media {
    grid-template-columns: 1fr;
  }

  .story-media img:first-child,
  .story-media img:last-child {
    height: 360px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .gallery-item.large {
    grid-row: span 1;
  }

  .menu-panel,
  .contact-card,
  .info-card {
    padding: 24px;
  }

  .menu-row {
    padding: 15px 17px;
  }

  .footer-grid {
    gap: 18px;
  }
}

/* WordPress theme additions */
.wp-page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 0 72px;
}
.wp-page-content h1,
.wp-page-content h2,
.wp-page-content h3 {
  margin-top: 1.4em;
  margin-bottom: 0.45em;
}
.wp-page-content h1:first-child,
.wp-page-content h2:first-child,
.wp-page-content h3:first-child {
  margin-top: 0;
}
.wp-page-content a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer .legal a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}


/* Editable Gutenberg adjustments */
.site-main {
  overflow: hidden;
}

.wp-block-group,
.wp-block-image,
.wp-block-table,
.wp-block-buttons {
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-image {
  margin: 0;
}

.wp-block-image img {
  width: 100%;
  height: auto;
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.wp-block-button.button-primary .wp-block-button__link {
  color: #fff;
  background: var(--green);
  box-shadow: 0 16px 28px rgba(65, 106, 63, 0.23);
}

.wp-block-button.button-secondary .wp-block-button__link {
  color: var(--mocha);
  background: #fff;
  border-color: rgba(91, 59, 37, 0.16);
}

.main-nav .menu-item {
  list-style: none;
  display: contents;
}

.hero-card figure,
.menu-image-card figure,
.drink-photo,
.contact-photo,
.menu-photo,
.page-hero-grid > figure {
  margin: 0;
}

.hero-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-note {
  left: 20px;
  right: 20px;
}

.story-media figure {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.story-media figure:first-child {
  height: 520px;
}

.story-media figure:last-child {
  height: 390px;
  margin-top: 80px;
}

.story-media figure img,
.menu-image-card figure img,
.page-hero-grid > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.gallery-item figcaption,
.gallery-caption,
.wp-element-caption {
  margin: 0;
}

.gallery-item .wp-element-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: auto;
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(45, 32, 24, 0.72);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: left;
  backdrop-filter: blur(8px);
}

.drink-photo img,
.contact-photo img,
.menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-image.drink-photo,
.wp-block-image.contact-photo,
.wp-block-image.menu-photo {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-list p {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid rgba(91, 59, 37, 0.1);
}

.wp-block-buttons.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.wp-block-buttons.social-links .wp-block-button__link {
  min-height: 0;
  padding: 9px 12px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 850;
}

.menu-teasers.wp-block-table,
.editable-menu-table.wp-block-table {
  margin: 26px 0 0;
}

.menu-teasers table,
.editable-menu-table table {
  width: 100%;
  border-collapse: collapse;
}

.menu-teasers td,
.editable-menu-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(91, 59, 37, 0.13);
  vertical-align: top;
}

.menu-teasers td:last-child,
.editable-menu-table td:last-child {
  width: 110px;
  color: var(--mocha);
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.editable-menu-table td {
  padding: 18px 0;
}

.default-page {
  max-width: 860px;
}

.default-page h1 {
  max-width: 100%;
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.default-page .page-content {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.default-page .page-content a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .story-media figure:first-child,
  .story-media figure:last-child {
    height: 430px;
    margin-top: 0;
  }

  .main-nav .menu-item {
    display: block;
  }
}

@media (max-width: 660px) {
  .story-media figure:first-child,
  .story-media figure:last-child {
    height: 360px;
  }

  .menu-teasers td,
  .editable-menu-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: left;
  }

  .menu-teasers td:last-child,
  .editable-menu-table td:last-child {
    width: auto;
    padding-top: 0;
    text-align: left;
  }
}


/* V2: calmer editable frontend refinements */
.site-header {
  background: rgba(255, 248, 238, 0.96);
}

.header-inner {
  min-height: 96px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 78px;
  max-width: 126px;
  max-height: 78px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-card figure {
  margin: 0;
}

.hero-card figure img,
.hero-card > figure img {
  width: 100%;
  height: min(560px, 56vw);
  min-height: 360px;
  object-fit: cover;
}

.hero-note {
  margin: 0;
}

.story-media figure:first-child {
  height: 420px;
  margin-top: 0;
}

.story-media figure:last-child {
  height: 520px;
  margin-top: 0;
}

.gallery-grid .gallery-item,
.gallery-grid figure.gallery-item {
  width: 100%;
  height: 100%;
}

.gallery-grid .gallery-item img,
.gallery-grid figure.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-image-card figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.menu-panel .menu-teasers.wp-block-table {
  display: block;
  margin-top: 24px;
  padding: 0;
  color: #fff8ee;
}

.menu-panel .menu-teasers table {
  width: 100%;
  border-collapse: collapse;
}

.menu-panel .menu-teasers td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 248, 238, 0.18);
  color: #fff8ee;
  font-weight: 760;
}

.menu-panel .menu-teasers td:last-child {
  color: var(--sand);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.editable-menu-table.wp-block-table {
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid rgba(91, 59, 37, 0.13);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 14px 34px rgba(45, 32, 24, 0.06);
}

.editable-menu-table.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.editable-menu-table.wp-block-table td {
  padding: 17px 22px;
  border-bottom: 1px solid rgba(91, 59, 37, 0.1);
}

.editable-menu-table.wp-block-table tr:last-child td {
  border-bottom: 0;
}

.editable-menu-table.wp-block-table td:last-child {
  color: var(--green);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.page-hero-grid > figure {
  margin: 0;
}

.wp-block-button__link,
.wp-element-button {
  border-radius: 999px !important;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 86px;
  }

  .main-nav {
    top: 86px;
  }

  .story-media figure:first-child,
  .story-media figure:last-child {
    height: 430px;
    margin-top: 0;
  }
}

@media (max-width: 660px) {
  .header-inner {
    min-height: 76px;
  }

  .brand img {
    height: 60px;
    max-width: 100px;
    max-height: 60px;
  }

  .main-nav {
    top: 76px;
  }

  .hero-card figure img,
  .hero-card > figure img {
    height: 340px;
    min-height: 0;
  }

  .editable-menu-table.wp-block-table td,
  .menu-panel .menu-teasers td {
    display: block;
    width: 100%;
    padding: 10px 18px;
    text-align: left;
  }

  .editable-menu-table.wp-block-table td:last-child,
  .menu-panel .menu-teasers td:last-child {
    padding-top: 0;
    text-align: left;
  }
}


/* V1.3 update: footer credits, hero note cleanup, and full team image */
.hero-note {
  display: block;
  padding: 18px 20px;
}

.hero-note span,
.hero-note img,
.hero-note::before {
  display: none !important;
  content: none !important;
}

.wp-block-image.contact-photo,
.contact-photo {
  height: auto !important;
  min-height: 0 !important;
  padding: 14px;
  background: #fff;
}

.wp-block-image.contact-photo img,
.contact-photo img {
  width: 100%;
  height: auto !important;
  max-height: 640px;
  object-fit: contain !important;
  object-position: center top !important;
}

.site-footer .legal {
  line-height: 1.8;
}

.site-footer .legal .credits {
  margin-top: 8px;
  color: rgba(255, 248, 238, 0.82);
  font-size: 0.95rem;
}


/* V1.4 stable template layout fixes */
.stable-home .hero-grid,
.stable-home .story-grid,
.stable-home .drink-grid,
.stable-home .contact-grid,
.stable-home .menu-preview,
.stable-menu-page .page-hero-grid,
.stable-menu-page .menu-layout {
  display: grid !important;
}

.stable-home .card-grid,
.stable-home .gallery-grid {
  display: grid !important;
}

.stable-home .menu-teasers > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 248, 238, 0.18);
  color: #fff8ee;
  font-weight: 760;
}

.stable-home .menu-teasers > div:last-child {
  border-bottom: 0;
}

.stable-home .menu-teasers strong {
  color: var(--sand);
  white-space: nowrap;
}

.stable-home .menu-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-photo-contain {
  display: grid;
  place-items: center;
  height: auto !important;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-photo-contain img {
  width: 100%;
  height: auto !important;
  max-height: 720px;
  object-fit: contain !important;
  border-radius: calc(var(--radius-xl) - 10px);
}

.stable-menu-page .menu-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  border-radius: var(--radius-xl);
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow);
}

@media (min-width: 981px) {
  .stable-home .hero-grid {
    grid-template-columns: 0.95fr 1.18fr !important;
  }

  .stable-home .story-grid,
  .stable-home .drink-grid,
  .stable-home .contact-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .stable-home .menu-preview {
    grid-template-columns: 1.05fr 0.95fr !important;
  }

  .stable-home .card-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .stable-home .gallery-grid {
    grid-template-columns: 1.15fr 0.85fr 0.85fr !important;
  }

  .stable-menu-page .page-hero-grid {
    grid-template-columns: 0.95fr 1.05fr !important;
  }

  .stable-menu-page .menu-layout {
    grid-template-columns: minmax(0, 1fr) 410px !important;
  }
}

@media (max-width: 980px) {
  .stable-home .hero-grid,
  .stable-home .story-grid,
  .stable-home .drink-grid,
  .stable-home .contact-grid,
  .stable-home .menu-preview,
  .stable-menu-page .page-hero-grid,
  .stable-menu-page .menu-layout {
    grid-template-columns: 1fr !important;
  }

  .stable-home .card-grid,
  .stable-home .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}
