/* ============================================
   OCHA MATCHA BAR — Stylesheet
   ============================================ */

:root {
  --forest: #1f3d20;
  --forest-dark: #16301a;
  --sage: #7c9a5e;
  --sage-light: #9db97e;
  --hero-green: #718A40;
  --cream: #f5f0e2;
  --cream-2: #eee7d6;
  --paper: #faf7ee;
  --gold: #c9a86a;
  --text-dark: #24291f;
  --text-muted: #5c6152;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(31, 61, 32, 0.08);
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
  --font-head: 'Poppins', 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Zen Kaku Gothic New', 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* No focus/active outline box on links, buttons, or other controls */
a, button, .btn, input, textarea, summary {
  outline: none;
}
a:focus, a:active,
button:focus, button:active,
.btn:focus, .btn:active,
input:focus, input:active,
textarea:focus, textarea:active {
  outline: none;
  box-shadow: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

/* Keep the fixed header from covering anchor targets on direct/cross-page jumps */
#home, #location, #shop, #menu, #about, #journal,
#hot-drinks, #iced-drinks, #sweets {
  scroll-margin-top: 100px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; }

/* ============ Preloader — noren (暖簾) curtain reveal ============ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex;
  overflow: hidden;
  pointer-events: auto;
}
.preloader.done { display: none; }
.preloader-panel {
  flex: 1 1 50%;
  background: var(--forest);
  position: relative;
  transition: transform 1.15s cubic-bezier(.76,0,.24,1);
}
.preloader-panel::before {
  /* subtle woven-fabric texture, like dyed cloth panels */
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 42px);
}
.preloader-panel-left { transform: translateX(0); }
.preloader-panel-left::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 2px;
  background: rgba(245,240,226,0.18);
}
.preloader-panel-right { transform: translateX(0); }
.preloader-panel-right::after {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 2px;
  background: rgba(245,240,226,0.18);
}
.preloader.hidden .preloader-panel-left { transform: translateX(-101%); }
.preloader.hidden .preloader-panel-right { transform: translateX(101%); }

/* Deep-link arrivals (e.g. LOCATION from another page) skip the curtain
   show entirely — no slide, no fade, just gone. */
.preloader.no-anim,
.preloader.no-anim .preloader-panel,
.preloader.no-anim .preloader-crest {
  transition: none !important;
}

.preloader-crest {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 1;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(.76,0,.24,1);
}
.preloader-crest-mark {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 15px;
  color: var(--cream);
  opacity: 0.9;
}
.preloader.hidden .preloader-crest {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}
.preloader-cup svg circle {
  animation: spin-dash 1.1s linear infinite;
  stroke: var(--gold);
}
@keyframes spin-dash {
  0% { transform: rotate(0deg); stroke-dashoffset: 180; }
  50% { stroke-dashoffset: 40; }
  100% { transform: rotate(360deg); stroke-dashoffset: 180; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--forest-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(31,61,32,0.28);
}
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
  transform: translateY(-3px);
}

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  background: rgba(250, 247, 238, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition), padding var(--transition);
  padding: 6px 0;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(31,61,32,0.08);
  border-color: rgba(31,61,32,0.08);
  padding: 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--forest);
  display: flex; align-items: baseline; gap: 8px;
}
.logo span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.main-nav {
  display: flex; gap: 34px;
}
.main-nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--forest);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.header-actions {
  display: flex; align-items: center; gap: 18px;
}
.cart-btn {
  color: var(--forest);
  transition: transform var(--transition);
}
.cart-btn:hover { transform: scale(1.15) rotate(-6deg); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 1100;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--forest);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 340px);
  background: var(--cream);
  z-index: 1050;
  display: flex; flex-direction: column; gap: 6px;
  padding: 110px 36px 40px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 50px rgba(0,0,0,0.15);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-size: 16px; font-weight: 700; letter-spacing: 0.04em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(31,61,32,0.1);
  color: var(--forest);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-nav.open a { opacity: 1; transform: translateX(0); }
.mobile-nav.open a:nth-child(1) { transition-delay: .05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: .1s; }
.mobile-nav.open a:nth-child(3) { transition-delay: .15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: .2s; }
.mobile-nav.open a:nth-child(5) { transition-delay: .25s; }
.mobile-nav.open a:nth-child(6) { transition-delay: .3s; }
.mobile-nav.open a:nth-child(7) { transition-delay: .35s; }
.mobile-nav .btn { margin-top: 20px; border-bottom: none; text-align: center; }
.mobile-nav a.btn-primary { color: var(--cream); }

/* ============ Hero ============ */
.hero {
  margin-top: 88px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  min-height: 640px;
  min-height: max(560px, calc(100vh - 88px));
  background: var(--hero-green);
  position: relative;
  overflow: hidden;
}
.hero-left {
  padding: 90px 60px 60px 60px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(31,61,32,0.75);
}
.hero-title {
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 0.94;
  color: var(--paper);
  -webkit-text-stroke: 1px rgba(31,61,32,0.15);
}
.hero-title .line {
  display: block;
  animation: rise-in 0.9s cubic-bezier(.16,1,.3,1) both;
}
.hero-title .line:nth-child(1) { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) { animation-delay: 0.3s; }
.hero-title .line:nth-child(3) { animation-delay: 0.45s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-desc {
  font-size: 15px;
  color: var(--forest);
  font-weight: 500;
  line-height: 1.6;
}
.hero-left .btn { margin-top: 10px; }

.matcha-whisking-slot {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  /* Match hero-left's own bottom padding so the icon group sits with
     equal breathing room above (from the button) and below (to the
     edge of the hero box) once centered in the remaining space. */
  margin-top: 42px;
}
.matcha-whisking {
  display: flex; align-items: center;
  gap: 20px;
  max-width: 380px;
}
.mw-scene {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}
.mw-divider {
  width: 1px;
  align-self: stretch;
  min-height: 54px;
  background: rgba(31,61,32,0.25);
  flex-shrink: 0;
}
.mw-caption {
  display: flex; flex-direction: column; gap: 3px;
}
.mw-caption strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--forest);
}
.mw-caption span {
  font-size: 12px;
  color: rgba(31,61,32,0.65);
}
.mw-steam {
  position: absolute;
  top: 6%; left: 62%;
  width: 40px; height: 60px;
  pointer-events: none;
}
.mw-steam-wisp {
  position: absolute;
  bottom: 0; left: 0;
  width: 6px; height: 22px;
  background: linear-gradient(to top, rgba(31,61,32,0.32), rgba(31,61,32,0));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
  animation: mw-steam-rise 2.8s ease-in infinite;
}
.mw-steam-2 { left: 14px; animation-delay: 0.9s; }
.mw-steam-3 { left: 26px; animation-delay: 1.8s; }
@keyframes mw-steam-rise {
  0% { transform: translate(0, 0) scaleX(1); opacity: 0; }
  18% { opacity: 0.65; }
  55% { transform: translate(8px, -24px) scaleX(1.3) rotate(5deg); opacity: 0.45; }
  100% { transform: translate(-6px, -46px) scaleX(1.6) rotate(-6deg); opacity: 0; }
}
.mw-whisk {
  transform-box: fill-box;
  transform-origin: 50% 20%;
  animation: mw-froth 0.5s ease-in-out infinite;
}
@keyframes mw-froth {
  0%, 100% { transform: rotate(-12deg) translateX(-1.5px); }
  50% { transform: rotate(12deg) translateX(1.5px); }
}
.mw-liquid {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: mw-liquid-wobble 0.5s ease-in-out infinite;
}
@keyframes mw-liquid-wobble {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.035); }
}
.mw-foam { transform-box: fill-box; transform-origin: 50% 50%; animation: mw-foam-pulse 1.3s ease-in-out infinite; }
.mw-foam-1 { animation-delay: 0s; }
.mw-foam-2 { animation-delay: 0.35s; }
.mw-foam-3 { animation-delay: 0.7s; }
@keyframes mw-foam-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

.hero-right {
  position: relative;
}
.hero-img {
  height: 100%;
  min-height: 400px;
  background:
    radial-gradient(circle at 65% 30%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(135deg, #2c1e14, #4a3323 55%, #6b4a2e);
}
.whisk-anim {
  position: absolute; top: 32%; left: 50%;
  transform: translate(-50%, -50%);
}
.whisk-rotate {
  transform-origin: 60px 36px;
  animation: whisk-spin 1.6s ease-in-out infinite;
}
@keyframes whisk-spin {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(18deg); }
}
.ripple {
  position: absolute; top: 55%; left: 50%;
  width: 60px; height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  animation: ripple-out 2.4s ease-out infinite;
}
@keyframes ripple-out {
  0% { width: 20px; height: 8px; opacity: 0.9; }
  100% { width: 140px; height: 46px; opacity: 0; }
}

.badge-circle {
  position: absolute;
  bottom: 26px; right: 26px;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  animation: spin-slow 22s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============ Placeholder Images ============ */
.img-placeholder {
  position: relative;
  width: 100%; height: 100%;
  min-height: 160px;
  background:
    repeating-linear-gradient(45deg, rgba(31,61,32,0.05) 0 10px, rgba(31,61,32,0.02) 10px 20px),
    linear-gradient(135deg, #dbe3cb, #c7d3ac);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 250% 250%;
  background-position: 120% 0;
  transition: background-position 1.2s ease;
}
.img-placeholder:hover::before { background-position: -20% 0; }
.img-placeholder::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: rgba(31,61,32,0.55);
  background: rgba(255,255,255,0.55);
  padding: 6px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
/* When a real photo is present, make it fill the box uniformly
   (equal heights, product centered/cropped consistently) and
   drop the placeholder caption + pattern since it's no longer needed. */
.img-placeholder img,
.img-placeholder video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-placeholder:has(img)::after,
.img-placeholder:has(video)::after {
  display: none;
}

/* ============ Features ============ */
.features {
  background: var(--cream);
  padding: 40px 0;
  border-bottom: 1px solid rgba(31,61,32,0.08);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
}
.feature {
  display: flex; align-items: center; gap: 14px;
  padding: 0 10px;
  border-left: 1px solid rgba(31,61,32,0.12);
}
.feature:first-child { border-left: none; }
.feature svg,
.feature img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.feature:hover svg,
.feature:hover img { transform: scale(1.15) rotate(-6deg); }
.feature div { display: flex; flex-direction: column; gap: 3px; }
.feature strong { font-size: 12px; letter-spacing: 0.04em; }
.feature span { font-size: 12px; color: var(--text-muted); }

/* ============ Signatures ============ */
.signatures { padding: 110px 0 60px; background: var(--paper); }
.signatures-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}
.signatures-head h2, .shop-head h2 {
  font-size: 34px;
  line-height: 1.05;
  color: var(--forest);
  margin-bottom: 10px;
}
.squiggle {
  display: block;
  color: var(--sage);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.squiggle.light { color: rgba(245,240,226,0.6); }
.signatures-head p, .shop-head p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 260px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  min-width: 0;
}
.product-card {
  display: flex; flex-direction: column; gap: 4px;
  transition: transform var(--transition);
}
.product-card:hover { transform: translateY(-8px); }
.product-card .img-placeholder {
  aspect-ratio: 3/4;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition);
}
.product-card:hover .img-placeholder {
  box-shadow: 0 20px 40px rgba(31,61,32,0.18);
}
.product-card h3 { font-size: 13px; letter-spacing: 0.03em; color: var(--text-dark); }
.product-card .jp { font-size: 12px; color: var(--text-muted); }
.product-card .price { font-size: 13.5px; font-weight: 700; color: var(--forest); margin-top: 2px; }

.view-all {
  display: block;
  text-align: center;
  margin: 46px auto 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  width: fit-content;
  border-bottom: 1.5px solid var(--forest);
  padding-bottom: 4px;
  transition: gap var(--transition), color var(--transition);
}
.view-all span { display: inline-block; transition: transform var(--transition); margin-left: 4px; }
.view-all:hover span { transform: translateX(6px); }

/* ============ Story ============ */
.story {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  background: var(--forest);
  min-height: 480px;
}
.story-text {
  padding: 90px 70px;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--cream);
}
.story-text h2 { font-size: 32px; margin-bottom: 6px; }
.story-text p { font-size: 14.5px; line-height: 1.8; color: rgba(245,240,226,0.85); margin-bottom: 16px; max-width: 420px; }
.story-text .signature { font-family: 'Poppins', cursive; font-style: italic; color: var(--gold); font-size: 16px; margin-top: 10px; }

/* White variant — used where a story section should sit on a plain
   background instead of the dark forest one */
.story.story-white { background: var(--paper); }
.story.story-white .story-text { color: var(--forest); }
.story.story-white .story-text p { color: var(--text-muted); }
.story-img .img-placeholder {
  border-radius: 0;
  min-height: 480px;
  background:
    repeating-linear-gradient(45deg, rgba(31,61,32,0.08) 0 10px, rgba(31,61,32,0.03) 10px 20px),
    linear-gradient(160deg, #cfd9b8, #a9bd85);
}
.noren {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  background: var(--sage);
  color: var(--paper);
  padding: 10px 30px;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}

/* ============ Shop ============ */
.shop { padding: 100px 0; background: var(--cream); }
.shop-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 50px;
}
.shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ============ Visit Us ============ */
.visit {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  background: var(--paper);
  min-height: 520px;
}
.visit-img .img-placeholder {
  border-radius: 0;
  min-height: 520px;
  background:
    repeating-linear-gradient(45deg, rgba(31,61,32,0.06) 0 10px, rgba(31,61,32,0.02) 10px 20px),
    linear-gradient(160deg, #cbb98f, #e4d8ba);
}
.visit-info {
  padding: 90px 70px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.visit-info h2 { font-size: 30px; color: var(--forest); }
.visit-info > p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.info-row {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 13.5px; color: var(--text-dark);
  margin-bottom: 16px; line-height: 1.6;
}
.info-row svg { flex-shrink: 0; margin-top: 2px; }
.visit-info .btn { margin: 10px 0 28px; }
.map-placeholder {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -140%);
  background: var(--forest);
  color: var(--paper);
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, -140%); }
  50% { transform: translate(-50%, -160%); }
}

/* ============ Newsletter ============ */
.newsletter { background: var(--hero-green); padding: 60px 0; }
.newsletter-inner {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.newsletter-text { flex: 1; min-width: 220px; }
.newsletter-text h3 { color: var(--paper); font-size: 20px; letter-spacing: 0.03em; }
.newsletter-text p { color: rgba(245,240,226,0.85); font-size: 13.5px; margin-top: 4px; }
.newsletter-form {
  display: flex; gap: 0;
  background: var(--paper);
  border-radius: 30px;
  padding: 6px;
  flex: 1; min-width: 260px;
  max-width: 420px;
  box-shadow: var(--shadow-soft);
}
.newsletter-form input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  padding: 10px 18px;
  font-size: 13.5px;
  font-family: inherit;
}
.newsletter-form button {
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--forest);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition);
}
.newsletter-form button:hover { background: var(--forest-dark); transform: scale(1.04); }
.newsletter-icon { flex-shrink: 0; animation: float-icon 3s ease-in-out infinite; }
@keyframes float-icon { 0%,100%{transform: translateY(0);} 50%{transform: translateY(-8px);} }

/* ============ Footer ============ */
.site-footer { background: var(--forest); color: rgba(245,240,226,0.8); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) repeat(4, minmax(0,1fr));
  gap: 30px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(245,240,226,0.15);
}
.footer-logo { color: var(--paper); margin-bottom: 14px; display: block; }
.footer-logo span { color: rgba(245,240,226,0.6); }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(245,240,226,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  transition: background var(--transition), transform var(--transition);
}
.socials a:hover { background: var(--sage); transform: translateY(-4px); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.1em; color: var(--paper); margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 13px; transition: color var(--transition), padding-left var(--transition); }
.footer-col a:hover { color: var(--paper); padding-left: 4px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--paper); }

/* ============ Back to top ============ */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--sage); transform: translateY(-4px); }

/* ============ Scroll Reveal ============ */
.reveal, .reveal-scale {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.reveal-scale { transform: scale(0.85); }
.reveal.in-view, .reveal-scale.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .main-nav { gap: 22px; }
  .main-nav a { font-size: 11.5px; }
  .header-order-btn { display: none; }

  .hero {
    grid-template-columns: 1fr;
    /* The full-viewport-height rule is only meant to stop the next section
       peeking on desktop's side-by-side layout — once hero-left/hero-right
       stack, let the section size to its actual (much shorter) content. */
    min-height: unset;
  }
  .hero-left { padding: 60px 40px 40px; }
  .hero-right { min-height: 380px; }
  .matcha-whisking-slot { display: none; }

  .features-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px; }
  .feature:nth-child(3) { border-left: none; }

  .signatures-inner, .shop-inner { grid-template-columns: 1fr; }
  .signatures-head p, .shop-head p { max-width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  .story { grid-template-columns: 1fr; }
  .story-img .img-placeholder { min-height: 320px; }
  .story-text { padding: 60px 40px; }

  .visit { grid-template-columns: 1fr; }
  .visit-img .img-placeholder { min-height: 320px; }
  .visit-info { padding: 60px 40px; }

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

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions { gap: 14px; }
  .header-inner { height: 66px; }
  .hero { margin-top: 66px; }

  .hero-left { padding: 44px 24px 36px; gap: 14px; }
  .hero-title { font-size: clamp(38px, 13vw, 54px); }
  .hero-desc { font-size: 13.5px; }
  .hero-right { min-height: 280px; }
  .badge-circle { width: 88px; height: 88px; bottom: 16px; right: 16px; }

  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature { border-left: none; border-top: 1px solid rgba(31,61,32,0.12); padding-top: 16px; }
  .feature:first-child { border-top: none; padding-top: 0; }

  .signatures { padding: 70px 0 40px; }
  .signatures-head h2, .shop-head h2 { font-size: 28px; }
  .product-grid, .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }

  .story-text, .visit-info { padding: 50px 24px; }
  .story-text h2, .visit-info h2 { font-size: 26px; }

  .shop { padding: 70px 0; }

  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); padding-bottom: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .back-to-top { width: 42px; height: 42px; bottom: 18px; right: 18px; }
}

@media (max-width: 400px) {
  .product-grid, .shop-grid, .footer-grid { grid-template-columns: minmax(0,1fr); }
}

/* ============================================
   SUBPAGES — Menu / About / Contact
   ============================================ */

/* ---- Page hero banner (shared) ---- */
.page-hero {
  margin-top: 88px;
  padding: 100px 0 70px;
  background: var(--hero-green);
  text-align: center;
}
.page-hero .container { display: flex; flex-direction: column; align-items: center; }
.page-hero .hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(31,61,32,0.75); margin-bottom: 10px;
}
.page-title {
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1;
  color: var(--paper);
  -webkit-text-stroke: 1px rgba(31,61,32,0.15);
  margin-bottom: 16px;
}
.page-desc {
  font-size: 15px; color: var(--forest); font-weight: 500;
  max-width: 560px; line-height: 1.7;
}

/* ---- Page CTA band (shared) ---- */
.page-cta { background: var(--hero-green); padding: 60px 0; }
.page-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.page-cta-inner h2 { color: var(--paper); font-size: 24px; margin-bottom: 6px; }
.page-cta-inner p { color: rgba(245,240,226,0.8); font-size: 14px; }

/* White variant — used where a page's CTA should sit on a plain background */
.page-cta.page-cta-white { background: var(--paper); }
.page-cta.page-cta-white .page-cta-inner h2 { color: var(--forest); }
.page-cta.page-cta-white .page-cta-inner p { color: var(--text-muted); }

/* ---- Menu page ---- */
.menu-page { padding: 90px 0 100px; background: var(--paper); }
.menu-category { margin-bottom: 64px; }
.menu-category:last-child { margin-bottom: 0; }
.menu-category-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 2px solid var(--forest);
  padding-bottom: 14px; margin-bottom: 30px;
}
.menu-category-head h2 { font-size: 26px; color: var(--forest); }
.menu-category-head .jp { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 50px;
}
.menu-item {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(31,61,32,0.1);
}
.menu-item-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
}
.menu-item-head h3 { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.menu-item-head .jp { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-left: 6px; }
.menu-item-head .price { font-size: 14px; font-weight: 700; color: var(--forest); white-space: nowrap; }
.menu-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- About page ---- */
.about-story .story-img .img-placeholder,
.about-sourcing .story-img .img-placeholder { min-height: 420px; }
.about-values { border-top: 1px solid rgba(31,61,32,0.08); border-bottom: none; }

/* ---- Contact page ---- */
.contact-section { padding: 90px 0 110px; background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.contact-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-soft);
}
.contact-form h2 { font-size: 24px; color: var(--forest); margin-bottom: 8px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--forest); }
.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1.5px solid rgba(31,61,32,0.18);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text-dark);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31,61,32,0.1);
}
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }

.contact-info h2 { font-size: 26px; color: var(--forest); }
.contact-info > p { font-size: 14px; color: var(--text-muted); margin: 0 0 22px; }
.contact-info .map-placeholder { margin-top: 8px; margin-bottom: 24px; max-width: 100%; }
.contact-socials { margin-top: 4px; }
.contact-socials a { color: var(--forest); border-color: rgba(31,61,32,0.2); }
.contact-socials a:hover { background: var(--sage); color: var(--paper); }

@media (max-width: 1024px) {
  .page-hero { padding: 80px 0 56px; }
  .menu-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px; }
}

@media (max-width: 680px) {
  .page-hero { margin-top: 66px; padding: 56px 0 40px; }
  .page-cta-inner { flex-direction: column; text-align: center; }
  .menu-category-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px; }

  /* Our Origins: show the photo above the text on mobile only (desktop
     keeps text-left/photo-right; Our Sourcing below it already reads
     photo-then-text at every size, so this just matches the two up). */
  .about-story .story-img { order: -1; }
}

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