/* =========================================================
   OPPA – Tea & Dimsum House. Built on the Ovena layout:
   base tokens, layout primitives, header, hero, story and
   menu sections. Later home sections live in sections.css,
   sub-pages and shared extras in pages.css.
   ========================================================= */

:root {
  /* Palette from the client's interior: pink walls, moss-green velvet, white marble */
  --bg: #fbf1f1;            /* page blush-white */
  --surface: #fff8f8;       /* cards, nav */
  --surface-2: #ffffff;
  --line: #f2d8dd;
  --ink: #22301a;           /* headings: deep moss */
  --muted: #66625c;         /* body copy */
  --brand: #3f5b2a;         /* moss green: buttons, links, footer */
  --heading: var(--brand);  /* every heading outside the green footer */
  --brand-hover: #4f6e38;   /* lighter moss: hover on green controls */
  --accent: #ff89a2;        /* signature pink: feature section, stars, icons */
  --accent-soft: #ffc4d1;
  --accent-tint: #ffe4ea;
  --cta-bg: #ff89a2;        /* client-mandated CTA pink (issue #4); same hue as --accent */
  --cta-bg-hover: #f2708d;
  --cta-bg-active: #e85f7d;
  --cta-fg: #ffffff;        /* one place for every CTA label + icon colour */
  --plum: #582972;          /* logo outline purple: small accents only */

  --font-display: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --container: 1150px;
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --shadow-card: 0 18px 40px -22px rgba(63, 91, 42, .28);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); }
.site-footer :is(h1, h2, h3, h4, h5, h6) { color: inherit; } /* footer headings sit on the green and stay white */
button { font: inherit; cursor: pointer; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.center { display: flex; justify-content: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
.display, .title, .display-sm {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.display { font-size: clamp(38px, 5vw, 56px); line-height: 1.14; }
.hero .display { max-width: 470px; }
.title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; }
.title-on-accent { color: var(--brand); }
.display-sm { font-size: clamp(20px, 2vw, 28px); line-height: 1.25; }
.lead { font-size: 18px; line-height: 1.6; max-width: 450px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-size: 14px; font-weight: 500;
}
.section-head { text-align: center; display: grid; gap: 10px; justify-items: center; margin-bottom: 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 500; border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s;
  cursor: pointer;
}
.btn i { font-size: 13px; transition: transform .25s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-primary, .btn-ghost, .btn-outline { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
.btn-primary:hover, .btn-ghost:hover, .btn-outline:hover { background: var(--cta-bg-hover); border-color: var(--cta-bg-hover); color: var(--cta-fg); }
.btn-primary:active, .btn-ghost:active, .btn-outline:active { background: var(--cta-bg-active); border-color: var(--cta-bg-active); }
.btn:focus-visible, .site-nav .nav-cta:focus-visible, .reserve-form input.wpcf7-submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-outline {
  height: 42px; min-width: 284px;
  text-transform: uppercase; font-size: 17px;
}
.btn-block { width: 100%; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 32px 0 auto; z-index: 50;
  width: min(var(--container), 100% - 32px); margin-inline: auto;
  margin-top: env(safe-area-inset-top, 0px);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 86px; padding: 0 60px; border-radius: 20px;
  background: rgba(255, 248, 248, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.logo { display: block; flex: none; }
.logo img { height: 74px; width: auto; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--surface-2); font-size: 18px; font-weight: 500;
  transition: background-color .25s;
}
.menu-toggle:hover { background: var(--brand-hover); }
.site-nav {
  margin-top: 10px; padding: 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  display: grid; gap: 2px; animation: drop .3s var(--ease);
}
.site-nav[hidden] { display: none; }
.site-nav a {
  padding: 12px 18px; border-radius: 12px; color: var(--ink); font-size: 18px; font-weight: 500;
  transition: background-color .2s;
}
.site-nav a:hover { background: var(--bg); }
.site-nav .nav-cta { background: var(--cta-bg); color: var(--cta-fg); display: flex; justify-content: space-between; align-items: center; }
.site-nav .nav-cta:hover { background: var(--cta-bg-hover); }
.site-nav .nav-cta:active { background: var(--cta-bg-active); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { padding: 158px 0 0; }
.hero-card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: 560px; padding: 70px 54px 90px; border-radius: var(--radius-lg) var(--radius-lg) 40px 40px;
  background: var(--surface); overflow: hidden;
}
/* soft melted-frosting edge along the bottom of the hero card */
.hero-card::after {
  content: ""; position: absolute; inset: auto 0 0; height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1150 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34V22C90 8 170 30 300 18S470 4 560 14 760 30 860 18 1060 6 1150 20V34Z' fill='%23fbf1f1'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.hero-copy { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--accent-soft); border-radius: 999px; background: var(--surface-2);
  color: var(--brand); font-size: 14px; font-weight: 500; text-transform: uppercase;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; }
.hero-media { position: relative; display: grid; place-items: center; }
.hero-media::before {
  content: ""; position: absolute; width: 120%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 137, 162, .42) 0%, rgba(255, 137, 162, .14) 38%, transparent 66%);
}
.hero-media img { position: relative; width: min(470px, 100%); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------- Story ---------- */
.story { padding: 160px 0 0; }
.story-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 80px;
}
.story-head .eyebrow { margin-bottom: 18px; }
.story-head .title { max-width: 590px; }
.story-intro { max-width: 360px; padding-bottom: 32px; }
.story-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card {
  border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.story-card img { width: 100%; aspect-ratio: 370 / 245; object-fit: cover; }
.story-card-foot {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  color: var(--ink); font-size: 15px; font-weight: 500;
}
.icon-dot {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-tint); color: var(--brand); font-size: 15px;
}

/* video/photo frame with a white "frosting drip" along the bottom edge */
.wave-media {
  position: relative; overflow: hidden; border-radius: 28px 28px 0 0;
  width: min(944px, 100%); aspect-ratio: 944 / 415; margin: 64px auto 0;
}
.wave-media video, .wave-media img { width: 100%; height: 100%; object-fit: cover; }
.wave-media::after {
  content: ""; position: absolute; inset: auto 0 -1px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 944 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V14C20 2 60 2 80 10S130 26 150 12 200 0 230 8 270 22 300 14 360 0 400 10 450 24 470 14 520 2 560 8 600 20 640 12 690 -2 720 8 760 22 800 12 860 2 900 8 944 18 944 18V26Z' fill='%23fcfcfa'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* ---------- Menu ---------- */
.menu { padding: 140px 0 120px; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 26px; margin-bottom: 70px; }
.menu-item { display: grid; justify-items: center; }
.menu-item img {
  width: 170px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 18px;
  filter: drop-shadow(0 14px 18px rgba(63, 91, 42, .22));
  transition: transform .4s var(--ease);
}
.menu-item:hover img { transform: translateY(-8px) rotate(-4deg) scale(1.04); }
.menu-card {
  width: 100%; padding: 22px 22px 22px; margin-bottom: 52px; border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-card); text-align: center;
}
.menu-code {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-tint); color: var(--plum); font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.menu-card h3 { margin: 10px 0 6px; color: var(--heading); font-size: 20px; font-weight: 600; }
.menu-desc { min-height: 6.4em; margin-bottom: 16px; font-size: 14px; line-height: 1.6; }
.menu-card-foot { display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--ink); font-size: 17px; font-weight: 600; }
.btn-xs {
  height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
}
.btn-xs:hover { transform: translateY(-1px); }

/* Typography polish: no lone last word ("…einen Platz / frei").
   Headings balance their lines; running text avoids a one-word last line.
   Unsupported browsers simply keep normal wrapping. */
h1, h2, h3, h4, .display, .display-sm, .title { text-wrap: balance; }
p, li, dd, .lead, .menu-desc { text-wrap: pretty; }
