/* MENCHDERNK LLC - vintage Japanese wood style with editorial food-magazine layout */

:root {
  --coffee-dark: #3d2b1f;
  --coffee: #5c4033;
  --coffee-light: #8b6914;
  --cream: #faf6f0;
  --cream-warm: #f5ebe0;
  --wood: #c4a882;
  --wood-dark: #a08060;
  --accent: #b8860b;
  --text: #2c2419;
  --text-muted: #6b5d4f;
  --border: rgba(92, 64, 51, 0.15);
  --shadow: 0 8px 32px rgba(61, 43, 31, 0.12);
  --radius: 4px;
  --max-width: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coffee);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--coffee-dark);
  text-transform: uppercase;
}

.logo span {
  font-weight: 400;
  font-size: 0.75rem;
  display: block;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-desktop a {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--coffee-dark);
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--coffee);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--coffee);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* -- Animated hero -- */
.hero {
  margin-top: var(--header-h);
  position: relative;
  height: min(85vh, 720px);
  overflow: hidden;
  background: var(--coffee-dark);
}

.hero-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(250, 246, 240, 0.18) 0%, transparent 45%),
    linear-gradient(160deg, #2f2119 0%, #5c4033 45%, #3d2b1f 100%);
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 18%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(circle at 50% 35%, #faf6f0 0%, #e8dcc8 55%, #c4a882 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hero-visual::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 47%;
  width: 14px;
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(to bottom, rgba(250, 246, 240, 0.75), rgba(250, 246, 240, 0.15));
  animation: pourStream 1.4s ease-in-out infinite;
}

.hero-steam {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 120px;
  height: 80px;
  transform: translateX(-50%);
}

.hero-steam span {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 48px;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.45);
  animation: steamRise 2.4s ease-in-out infinite;
}

.hero-steam span:nth-child(1) { left: 24px; animation-delay: 0s; }
.hero-steam span:nth-child(2) { left: 58px; animation-delay: 0.6s; }
.hero-steam span:nth-child(3) { left: 92px; animation-delay: 1.2s; }

@keyframes steamRise {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.25; }
  50% { transform: translateY(-18px) scaleY(1.15); opacity: 0.7; }
}

@keyframes pourStream {
  0%, 100% { opacity: 0.35; height: 70px; }
  50% { opacity: 0.75; height: 95px; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(61, 43, 31, 0.85) 0%,
    rgba(61, 43, 31, 0.35) 45%,
    rgba(61, 43, 31, 0.15) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 24px 64px;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 16px;
}

.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  max-width: 14ch;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 1.05rem;
  color: rgba(250, 246, 240, 0.85);
  max-width: 480px;
  font-weight: 400;
}

.hero-cta {
  margin-top: 32px;
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-primary {
  background: var(--cream);
  color: var(--coffee-dark);
  border-color: var(--cream);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 246, 240, 0.5);
}

.btn-outline:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.btn-coffee {
  background: var(--coffee);
  color: var(--cream);
  border-color: var(--coffee);
}

.btn-coffee:hover {
  background: var(--coffee-dark);
  border-color: var(--coffee-dark);
  color: var(--cream);
}

/* -- Inner page hero -- */
.page-hero {
  margin-top: var(--header-h);
  padding: 80px 24px 64px;
  background: var(--cream-warm);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero .eyebrow {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wood-dark);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--coffee-dark);
}

.page-hero p {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sections ── */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--cream-warm);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .eyebrow {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wood-dark);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--coffee-dark);
}

.section-header p {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Magazine intro ── */
.magazine-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.magazine-intro.reverse {
  direction: rtl;
}

.magazine-intro.reverse > * {
  direction: ltr;
}

.magazine-intro .lead {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
}

.magazine-intro .lead em {
  font-style: italic;
  color: var(--coffee);
}

.drop-cap::first-letter {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  float: left;
  line-height: 0.85;
  margin: 4px 12px 0 0;
  color: var(--coffee);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(250, 246, 240, 0.3);
  pointer-events: none;
}

/* ── Locations ── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.location-card {
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.location-card:hover {
  box-shadow: var(--shadow);
}

.location-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.location-body {
  padding: 28px;
}

.location-body h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--coffee-dark);
  margin-bottom: 8px;
}

.location-hours {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.location-address {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ── Products ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-body {
  padding: 28px;
}

.product-origin {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wood-dark);
  margin-bottom: 8px;
}

.product-body h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  color: var(--coffee-dark);
  margin-bottom: 8px;
}

.roast-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--cream-warm);
  color: var(--coffee);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.product-flavor {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
}

.product-price {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  color: var(--coffee);
}

/* ── Rewards ── */
.rewards-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--coffee-dark);
  color: var(--cream);
  padding: 64px;
  border-radius: var(--radius);
}

.rewards-banner h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.rewards-banner p {
  color: rgba(250, 246, 240, 0.8);
  margin-bottom: 24px;
}

.rewards-list {
  list-style: none;
}

.rewards-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(250, 246, 240, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.rewards-list li::before {
  content: '◆';
  font-size: 0.5rem;
  color: var(--wood);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  color: var(--coffee-dark);
  margin-bottom: 24px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wood-dark);
  margin-bottom: 6px;
}

.contact-item p,
.contact-item a {
  font-size: 1.05rem;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--coffee);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Legal / About prose ── */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  color: var(--coffee-dark);
  margin: 40px 0 16px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 16px;
  color: var(--text);
}

.prose ul {
  margin: 16px 0 16px 24px;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 8px;
}

.prose code {
  font-size: 0.9em;
  background: var(--cream-warm);
  padding: 2px 6px;
  border-radius: 3px;
}

.prose .updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── About timeline ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
  background: var(--cream);
}

.value-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  color: var(--coffee-dark);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Footer ── */
.site-footer {
  background: var(--coffee-dark);
  color: rgba(250, 246, 240, 0.7);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(250, 246, 240, 0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 240, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

.location-status {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--cream-warm);
  color: var(--accent);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.product-note {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  color: var(--wood-dark);
  font-style: italic;
}

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 2.5rem;
}

.mt-xl {
  margin-top: 5rem;
}

.opening-banner {
  margin-top: 48px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  background: var(--cream);
  text-align: center;
}

.opening-banner p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 16px 24px 24px;
  background: rgba(47, 33, 25, 0.96);
  color: var(--cream);
  border-top: 1px solid rgba(250, 246, 240, 0.12);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1 1 420px;
  margin: 0;
  color: rgba(250, 246, 240, 0.85);
  font-size: 0.95rem;
}

.cookie-banner a {
  color: var(--wood);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-decline {
  color: var(--cream);
  border-color: rgba(250, 246, 240, 0.35);
}

.cookie-decline:hover {
  border-color: var(--cream);
  color: var(--cream);
}

body.has-cookie-banner {
  padding-bottom: 96px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .magazine-intro,
  .rewards-banner,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .magazine-intro.reverse {
    direction: ltr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .rewards-banner {
    padding: 40px 28px;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: min(70vh, 560px);
  }

  .footer-inner {
    gap: 32px;
  }
}
