/* ===== Hana Japan sticky bar: site-matched theme ===== */
:root{
  /* tweak these to your exact theme colors if needed */
  --hana-red: #C83B2E;    /* hero button red */
  --hana-red-dark: #A93026;
  --hana-ink: #111111;
  --hana-bg: #ffffff;
  --hana-radius: 16px;
  --hana-gap: .55rem;
}

/* container */
.hana-sticky{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex; gap: var(--hana-gap);
  padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom));
  background: var(--hana-bg);
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -8px 24px rgba(0,0,0,.12);
  z-index: 99999;
  font-family: inherit; /* follow site font */
}

/* buttons – share hero button DNA */
.hana-btn{
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  padding: .9rem .9rem;
  line-height: 1;
  border-radius: var(--hana-radius);
  border: 2px solid transparent;
  transition: transform .06s ease, background-color .08s ease, border-color .08s ease;
}

/* primary = Reserve */
.hana-btn--primary{
  background: var(--hana-red);
  color: #fff;
  border-color: var(--hana-red);
}
.hana-btn--primary:hover,
.hana-btn--primary:focus{ background: var(--hana-red-dark); border-color: var(--hana-red-dark); }

/* outline = Call */
.hana-btn--outline{
  background: var(--hana-bg);
  color: var(--hana-ink);
  border-color: var(--hana-ink);
}
.hana-btn--outline:hover,
.hana-btn--outline:focus{ border-color: var(--hana-red); color: var(--hana-red); }

/* subtle tap feedback */
.hana-btn:active{ transform: translateY(1px); }

/* keep it mobile only (your plugin already hides ≥782px; keep for safety) */
@media (min-width: 782px){ .hana-sticky{ display:none; } }

/* prevent bar from covering content on mobile */
@media (max-width: 781px){
  body{ padding-bottom: 110px; } /* increase if buttons wrap to 2 lines */
}

/* if the four buttons feel tight on small phones, stack them nicely */
@media (max-width: 375px){
  .hana-sticky{ flex-wrap: wrap; }
  .hana-btn{ flex: 1 1 calc(50% - var(--hana-gap)); }
}
/* === Shrink Sticky Bar by ~5% on mobile === */
@media (max-width: 781px){
  .hana-sticky{
    padding: .60rem .60rem calc(.60rem + env(safe-area-inset-bottom));
  }
  .hana-sticky .hana-btn{
    padding: .80rem .85rem;
    font-size: 0.95rem;
  }
  body{ padding-bottom: 105px; } /* prevent overlap */
}
/* === Keep Reserve buttons aligned with location info === */
#hana-location-bar .hana-loc{
  display: flex;
  flex-wrap: nowrap;      /* keep on one row */
  align-items: center;    /* vertically aligned */
  justify-content: flex-start;
  gap: 6px;
}

/* If the screen is very small, allow wrapping but keep Reserve last */
@media (max-width: 400px){
  #hana-location-bar .hana-loc{
    flex-wrap: wrap; 
  }
  #hana-location-bar .hana-res{
    order: 99;            /* always moves Reserve to the end */
  }
}
/* Sticky bar responsive layout rules */
.hjs-sticky.hana-sticky {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.75rem;
  column-gap: 0.75rem;
  padding: 0.75rem 1rem 1rem;
  background: #fff;
}

.hjs-sticky .hana-btn {
  text-align: center;
  flex: 1 1 calc(50% - 0.75rem);
  max-width: calc(50% - 0.75rem);
  white-space: normal;
  line-height: 1.2;
  font-size: 16px;
  padding: 0.9rem 0.75rem;
  box-sizing: border-box;
}

/* Make the 5th button (Takeout & To Go) full width */
.hjs-sticky .hana-btn:nth-child(5) {
  flex: 1 1 100%;
  max-width: 100%;
}

@media (max-width: 360px) {
  .hjs-sticky .hana-btn {
    font-size: 15px;
    padding: 0.8rem 0.6rem;
  }
}
/* Hide the mobile sticky action bar on desktop/tablet */
@media (min-width: 768px) {
  .hjs-sticky.hana-sticky {
    display: none !important;
  }
}

.menu-item-right .menu-item-price{display:none!important;}

/* Reservations box: make the whole card clickable */
.icon-grid-column{position:relative}
.icon-grid-column .wp-block-image a::after{content:"";position:absolute;inset:0;z-index:1}
.icon-grid-column .wp-block-heading {
	font-family: Jost, arial, sans-serif;
	font-size: var(--hj_font_size_24);
	font-weight: 700;
	line-height: 1.3;
}

/* 156px spacers, including core Spacer blocks that set the height inline. */
.wp-block-spacer[style*="--wp--preset--spacing--156-pixels"] {
	height: 100px !important;
}

/* Header location line, previously a CSS ::after from WPCode. */
header .header-logo > a {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
}
header .header-logo img {
	display: block;
	margin-bottom: 4px;
}
header .header-logo .logo-places {
	display: block;
	margin-top: 0;
	font-family: Jost, arial, sans-serif;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #f1f1f1;
	white-space: nowrap;
	line-height: 1;
}
@media (max-width: 767px) {
	header .header-logo .logo-places {
		font-size: 9px;
		letter-spacing: 0.12em;
		margin-top: 0;
	}
}

/* Reservation dropdown previously injected in the header. */
.hj-res-dd { position: relative; display: inline-block; }
.hj-res-dd > a.button { display: inline-flex; align-items: center; gap: 8px; }
.hj-res-dd > a.button::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s;
}
.hj-res-dd.open > a.button::after { transform: rotate(-135deg) translateY(-2px); }
.hj-res-menu {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	min-width: 100%;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #111;
	border: 1px solid #2a2a2a;
	box-shadow: 0 8px 24px rgba(0,0,0,.45);
	z-index: 9999;
}
.hj-res-dd.open .hj-res-menu,
.hj-res-dd:focus-within .hj-res-menu { display: block; }
@media (hover: hover) {
	.hj-res-dd:hover .hj-res-menu { display: block; }
}
.hj-res-menu a {
	display: block;
	padding: 12px 18px;
	color: #f1f1f1;
	font-family: Jost, arial, sans-serif;
	font-size: 16px;
	white-space: nowrap;
	text-decoration: none;
}
.hj-res-menu a:hover,
.hj-res-menu a:focus { background: #a8352a; color: #fff; }

/* Mobile sticky bar spacing previously added by WPCode. */
@media (max-width: 781px) {
	.hjs-sticky.hana-sticky {
		row-gap: 6px !important;
		padding-top: 6px !important;
		padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
	}
	.hjs-sticky.hana-sticky .hana-btn {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
		min-height: 44px;
	}
}

/* Shortcodes previously styled by the SEO plugin. */
.hjs-btn { display: inline-block; padding: .75rem 1rem; border-radius: .75rem; text-decoration: none; border: 1px solid transparent; font-weight: 600; }
.hjs-policies h4 { margin-bottom: .25rem; }
.hjs-faq__item { margin: .5rem 0; }
.hjs-location { border: 1px solid #ddd; padding: 1rem; border-radius: .75rem; margin: .5rem 0; }

/* Footer headings need 4.5:1 on #121212. The previous red measured 4.16:1. */
.footer-section .heading-5 span,
.footer-section h3.heading-5 span {
	color: #ff3a12;
	text-shadow: none;
}

/* Keyboard focus is visible on both light and dark surfaces. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
.submenu-icon:focus-visible {
	outline: 3px solid #C83B2E !important;
	outline-offset: 3px !important;
}
.screen-reader-text:focus,
.screen-reader-text:focus-visible {
	outline-color: #111 !important;
}

/* Still frame sits above the video until playback starts, under the hero gradient. */
.hero-home-image .wp-block-video,
.hero-post-image .wp-block-video {
	position: relative;
}
.hj-hero-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.hero-home-image .wp-block-video video,
.hero-post-image .wp-block-video video {
	opacity: 0;
}
.hero-home-image .wp-block-video.is-playing video,
.hero-post-image .wp-block-video.is-playing video {
	opacity: 1;
}
.wp-block-video.is-playing .hj-hero-poster {
	visibility: hidden;
}

/* Homepage location line under the hero. */
.hero-subline-section {
	margin: 0;
}
.hero-subline-section .hero-subline {
	margin-top: 16px;
	margin-bottom: 16px;
}
.hero-subline-section .hero-subline a,
.hero-subline-section .hero-subline a:visited {
	color: inherit;
	border-bottom-color: currentColor;
}
.hero-subline-section .hero-subline a:hover,
.hero-subline-section .hero-subline a:focus-visible,
.hero-subline-section .hero-subline a:active {
	color: var(--hj_link_color_hover, #b92615);
	border-bottom-color: var(--hj_link_color_hover, #b92615);
}

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