:root {
  --sun: #ffb84d;
  --coral: #ff6f3c;
  --leaf: #2f8f6b;
  --ink: #1f2a2e;
  --muted: #66727a;
  --cream: #fff7ea;
  --paper: #ffffff;
  --line: #f0dfc8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 248, 238, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240, 223, 200, 0.8);
}

.brand, nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 20px;
  letter-spacing: 0;
}

.brand-mark {
  display: none;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  flex-wrap: wrap;
  justify-content: center;
}

nav a { color: #425057; }
nav a[aria-current="page"] { color: var(--coral); }
button, .primary, .secondary {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.cart-button, .primary {
  color: white;
  background: var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 118px;
  padding: 9px 14px;
  color: var(--ink);
  background: rgba(27, 32, 32, 0.92);
  border: 1px solid rgba(255, 111, 60, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.cart-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.cart-meta {
  display: grid;
  gap: 2px;
  text-align: left;
  line-height: 1.05;
}

.cart-meta span {
  color: var(--ink);
  font-size: 13px;
}

.cart-meta small {
  color: var(--coral);
  font-size: 15px;
  font-weight: 950;
}

.cart-button span {
  margin: 0;
}

.hero {
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(20, 31, 32, 0.83), rgba(20, 31, 32, 0.42), rgba(20, 31, 32, 0.08)),
    url("/images/tea1.jpg") center 72%/cover;
}

.hero-content {
  max-width: 680px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--leaf);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow { color: var(--sun); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.hero p {
  max-width: 590px;
  font-size: 20px;
  line-height: 1.55;
}

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

.primary { background: var(--coral); }
.secondary {
  color: white;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 999px;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 88px) 0;
}

.page-main, .order-main {
  min-height: calc(100vh - 72px);
}

.page-title {
  padding-bottom: 22px;
}

.page-title h1, .order-title h1, .page-contact h1 {
  margin-bottom: 14px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.98;
}

.page-title p:last-child, .order-title p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.order-only {
  padding-top: clamp(36px, 6vw, 70px);
}

.order-title {
  max-width: 760px;
  margin-bottom: 26px;
}

.order-only .filters {
  justify-content: flex-start;
  margin-bottom: 22px;
}

.order-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-showcase {
  padding-top: 0;
}

.photo-showcase > img {
  display: block;
  width: 100%;
  height: clamp(260px, 38vw, 520px);
  margin-bottom: 18px;
  object-fit: cover;
  object-position: center 72%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.contact-panel {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-order {
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

.intro, .section-head, .split, .contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.intro p:last-child, .contact-grid, .muted {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.photo-band {
  padding-top: 10px;
  padding-bottom: 20px;
}

.photo-band img {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 390px);
  object-fit: cover;
  object-position: center 72%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 54px rgba(122, 85, 42, 0.16);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filters button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filters .active {
  color: white;
  background: var(--leaf);
}

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

.menu-card, .event-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 286px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(122, 85, 42, 0.08);
}

.menu-card.is-disabled {
  opacity: 0.66;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-card p, .event-item p, .empty, .ingredients, small {
  color: var(--muted);
  line-height: 1.55;
}

.availability {
  margin-top: 12px;
  color: var(--coral) !important;
  font-weight: 900;
}

.api-warning {
  margin: 0 0 20px;
  padding: 14px 16px;
  color: #7a3a00;
  background: #fff1cf;
  border: 1px solid #ffd27a;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.5;
}

.ingredients {
  min-height: 48px;
  font-size: 14px;
}

.menu-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.menu-card-foot button {
  min-height: 42px;
  padding: 0 14px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}

.menu-card-foot button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: #eadfce;
}

.qty button, .drawer-head button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-size: 22px;
}

.feature-image, .gallery-photo {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.event-image {
  background-image: url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1200&q=80");
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-item { min-height: auto; }
.event-item time { color: var(--leaf); font-weight: 900; }

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 18px;
}

.photo-one { background-image: url("/images/tea1.jpg"); }
.photo-two { background-image: url("https://images.unsplash.com/photo-1551782450-a2132b4ba21d?auto=format&fit=crop&w=900&q=80"); }
.photo-three { background-image: url("https://images.unsplash.com/photo-1544145945-f90425340c7e?auto=format&fit=crop&w=900&q=80"); }

.contact-grid {
  display: grid;
  gap: 14px;
}

.contact-grid p {
  display: grid;
  gap: 4px;
}

.contact-grid strong { color: var(--ink); }

.bottom-contact {
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(18, 21, 21, 0) 0%, rgba(18, 21, 21, 0.78) 42%, #111414 100%);
}

.bottom-contact-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 58px 18px 30px;
  color: rgba(247, 240, 229, 0.72);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 111, 60, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(22, 26, 26, 0.98) 0%, rgba(24, 25, 23, 0.98) 58%, rgba(19, 18, 17, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(247, 240, 229, 0.72);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-links span {
  width: 1px;
  height: 22px;
  background: rgba(247, 240, 229, 0.16);
}

.footer-divider {
  width: min(760px, 100%);
  height: 1px;
  background: rgba(247, 240, 229, 0.1);
}

.bottom-contact p {
  margin: 0;
  text-align: center;
}

.footer-address {
  color: rgba(247, 240, 229, 0.64);
  line-height: 1.6;
}

.footer-credit { color: rgba(247, 240, 229, 0.42); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.46);
  opacity: 1;
  transition: opacity 180ms ease;
}

.drawer[aria-hidden="true"] {
  pointer-events: none;
  opacity: 0;
}

.drawer-panel {
  width: min(420px, 100%);
  min-height: 100%;
  padding: 26px;
  overflow: auto;
  background: var(--cream);
  transform: translateX(0);
  transition: transform 180ms ease;
}

.drawer[aria-hidden="true"] .drawer-panel { transform: translateX(100%); }

.drawer-head, .cart-item, .total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cart-item {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.line-total {
  color: var(--coral);
  white-space: nowrap;
}

.cart-summary-total,
.checkout-total {
  margin: 14px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-summary-total strong,
.checkout-total strong {
  color: var(--coral);
  font-size: 24px;
}

.checkout-items {
  margin-bottom: 10px;
}

.cart-item span, .cart-item small {
  display: block;
  margin-top: 4px;
}

.qty { display: flex; gap: 8px; }
.qty button { width: 34px; height: 34px; font-size: 18px; }

.order-form, .field-row {
  display: grid;
  gap: 14px;
}

.field-row { grid-template-columns: 1fr 1fr; }
label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.wide { width: 100%; }
.form-message {
  min-height: 24px;
  margin: 0;
  padding: 0;
  color: var(--leaf);
  font-weight: 900;
  line-height: 1.45;
}

.form-message.success,
.form-message.error,
.form-message.info {
  padding: 12px 14px;
  border-radius: 8px;
}

.form-message.success {
  color: #9ff0c5;
  background: rgba(47, 143, 107, 0.16);
  border: 1px solid rgba(47, 143, 107, 0.38);
}

.form-message.error {
  color: #ffb5a3;
  background: rgba(255, 111, 60, 0.14);
  border: 1px solid rgba(255, 111, 60, 0.36);
}

.form-message.info {
  color: var(--sun);
  background: rgba(255, 184, 77, 0.12);
  border: 1px solid rgba(255, 184, 77, 0.28);
}

.cart-pulse {
  animation: cartPulse 380ms var(--ease) both;
}

.config-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--cream);
  box-shadow: 0 28px 80px rgba(31, 42, 46, 0.32);
}

.config-dialog::backdrop { background: rgba(31, 42, 46, 0.48); }
.config-dialog form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.config-block h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.option-grid, .drink-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-pill, .drink-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.option-pill input, .drink-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--coral);
}

.drink-card {
  justify-content: space-between;
}

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .intro, .section-head, .split, .contact, .field-row { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .menu-grid, .gallery, .option-grid, .drink-options, .page-grid, .order-grid { grid-template-columns: 1fr; }
  .hero { min-height: 62vh; }
  h1 { font-size: 52px; }
  .bottom-contact-inner {
    grid-template-columns: 1fr;
  }
  .footer-links { gap: 12px; }
  .footer-links span { display: none; }
}

/* Modern motion and polish layer */
:root {
  --coral-dark: #e95527;
  --shadow-soft: 0 18px 48px rgba(90, 62, 33, 0.12);
  --shadow-lift: 0 28px 72px rgba(90, 62, 33, 0.18);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

body {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 111, 60, 0.18), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(47, 143, 107, 0.16), transparent 30%),
    linear-gradient(135deg, #fff3df 0%, #f7efe0 36%, #fff8ec 64%, #f1efe6 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 42, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 46, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 80%);
}

.topbar {
  background: rgba(255, 248, 238, 0.76);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 36px rgba(90, 62, 33, 0.06);
}

.brand,
.primary,
.secondary,
.cart-button,
.filters button,
.menu-card-foot button,
.option-pill,
.drink-card {
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.brand:hover,
.primary:hover,
.secondary:hover,
.cart-button:hover,
.filters button:hover,
.menu-card-foot button:hover,
.option-pill:hover,
.drink-card:hover {
  transform: translateY(-2px);
}

nav a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--coral);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--coral);
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary:hover,
.menu-card-foot button:hover {
  background: var(--coral-dark);
}

.cart-button,
.primary {
  box-shadow: 0 12px 28px rgba(31, 42, 46, 0.16);
}

.cart-button:hover,
.primary:hover {
  box-shadow: 0 18px 38px rgba(31, 42, 46, 0.2);
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  animation: heroIn 720ms var(--ease) both;
}

.photo-band img,
.photo-showcase > img,
.feature-image,
.gallery-photo,
.menu-card,
.event-item,
.contact-panel,
.cart-item {
  box-shadow: var(--shadow-soft);
}

.photo-band img,
.photo-showcase > img,
.feature-image,
.gallery-photo,
.menu-card,
.event-item {
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), filter 320ms ease, border-color 320ms ease;
}

.photo-band img:hover,
.photo-showcase > img:hover,
.feature-image:hover,
.gallery-photo:hover,
.menu-card:hover,
.event-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.gallery-photo:hover,
.feature-image:hover {
  filter: saturate(1.08);
}

.menu-card:hover,
.event-item:hover {
  border-color: rgba(255, 111, 60, 0.34);
}

.filters button:hover,
.option-pill:hover,
.drink-card:hover {
  border-color: rgba(47, 143, 107, 0.34);
  box-shadow: 0 12px 28px rgba(90, 62, 33, 0.08);
}

.drawer {
  backdrop-filter: blur(4px);
  transition: opacity 220ms ease;
}

.drawer-panel {
  box-shadow: -22px 0 70px rgba(31, 42, 46, 0.22);
  transition: transform 260ms var(--ease);
}

input,
select,
textarea {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 111, 60, 0.14);
}

.config-dialog {
  animation: dialogIn 240ms var(--ease) both;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Dark Teaház theme */
:root {
  --ink: #f7f0e5;
  --muted: #b8afa1;
  --cream: #121515;
  --paper: #1b2020;
  --line: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 30px 78px rgba(0, 0, 0, 0.38);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 111, 60, 0.18), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(47, 143, 107, 0.18), transparent 32%),
    linear-gradient(145deg, #101313 0%, #171b1b 42%, #201a15 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

.topbar {
  background: rgba(18, 21, 21, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand,
nav a {
  color: var(--ink);
}

nav a { color: #d7cdbf; }

.section,
.page-main,
.order-main {
  color: var(--ink);
}

.menu-card,
.event-item,
.contact-panel,
.cart-item,
.drawer-panel,
.config-dialog,
.option-pill,
.drink-card,
input,
select,
textarea {
  color: var(--ink);
  background: rgba(27, 32, 32, 0.92);
  border-color: var(--line);
}

.menu-card,
.event-item,
.contact-panel,
.photo-band img,
.photo-showcase > img,
.feature-image,
.gallery-photo {
  box-shadow: var(--shadow-soft);
}

.filters button {
  color: var(--ink);
  background: rgba(27, 32, 32, 0.9);
  border-color: var(--line);
}

.filters .active {
  color: #10201a;
  background: var(--sun);
}

.menu-card p,
.event-item p,
.empty,
.ingredients,
small,
.page-title p:last-child,
.order-title p,
.intro p:last-child,
.contact-grid,
.muted {
  color: var(--muted);
}

.drawer {
  background: rgba(0, 0, 0, 0.58);
}

.drawer-panel {
  background: #151919;
}

.menu-card-foot button,
.qty button,
.drawer-head button {
  background: #273030;
}

input::placeholder,
textarea::placeholder {
  color: #8f877b;
}

/* Cart final dark treatment */
.cart-button {
  color: #fff4e8;
  background: linear-gradient(135deg, rgba(27, 32, 32, 0.96), rgba(20, 24, 24, 0.96));
  border: 1px solid rgba(255, 111, 60, 0.28);
}

.cart-button:hover {
  background: linear-gradient(135deg, rgba(34, 40, 40, 0.98), rgba(23, 28, 28, 0.98));
}

.cart-meta span {
  color: rgba(255, 244, 232, 0.9);
}

.cart-meta small,
#cartHeaderTotal {
  color: var(--coral);
}

.drawer-panel {
  width: min(420px, 100%);
  background: #151919;
}
