/**
 * Gourmet Furano Hero Banner Builder — front-end stylesheet.
 * Every selector is scoped under .gfhero-wrapper (spec sections 20, 21):
 * no bare `body`, `h1`, `button`, `a`, `img` rules anywhere. Dynamic
 * admin-configured values arrive as CSS custom properties set inline on
 * `.gfhero-wrapper` by templates/hero.php — this file only consumes
 * `var(--gfhero-*, fallback)`.
 */

.gfhero-wrapper,
.gfhero-wrapper *,
.gfhero-wrapper *::before,
.gfhero-wrapper *::after {
	box-sizing: border-box;
}

.gfhero-wrapper {
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	isolation: isolate; /* keep the wrapper its own stacking context — never bleeds z-index into the rest of the page */
}

.gfhero-wrapper img {
	max-width: 100%;
	display: block;
}

.gfhero-wrapper a {
	text-decoration: none;
	color: inherit;
}

.gfhero-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Header ---------- */

.gfhero-wrapper .gfhero-header {
	background: var(--gfhero-header-bg, #F8F4EA);
	color: var(--gfhero-header-text, #18231F);
	position: relative;
	z-index: 20;
}
.gfhero-wrapper.gfhero-sticky-header .gfhero-header {
	position: sticky;
	top: 0;
}
.gfhero-wrapper.gfhero-transparent-header .gfhero-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	background: transparent;
}

.gfhero-wrapper .gfhero-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 14px 24px;
}

.gfhero-wrapper .gfhero-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.gfhero-wrapper .gfhero-logo-align-center { margin: 0 auto; }
.gfhero-wrapper .gfhero-logo-link { display: inline-flex; }
.gfhero-wrapper .gfhero-logo {
	width: var(--gfhero-logo-w-desktop, 140px);
	height: auto;
}
.gfhero-wrapper .gfhero-site-title-link {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.gfhero-wrapper .gfhero-site-title {
	font-family: var(--gfhero-title-font, inherit);
	font-size: var(--gfhero-title-size-d, 28px);
	font-weight: var(--gfhero-title-weight, 700);
	letter-spacing: var(--gfhero-title-spacing, 0);
	color: var(--gfhero-header-text, #18231F);
}
.gfhero-wrapper .gfhero-site-title-gradient {
	background: linear-gradient(90deg, var(--gfhero-title-grad-from, #2F6B50), var(--gfhero-title-grad-to, #8B5A9E));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.gfhero-wrapper .gfhero-title-word1 { color: var(--gfhero-title-word1, inherit); }
.gfhero-wrapper .gfhero-title-word2 { color: var(--gfhero-title-word2, inherit); }
.gfhero-wrapper .gfhero-tagline {
	font-size: var(--gfhero-tagline-size, 13px);
	letter-spacing: var(--gfhero-tagline-spacing, 0.04em);
	color: var(--gfhero-tagline-color, #4E7F5F);
	font-family: var(--gfhero-tagline-font, inherit);
}

.gfhero-wrapper .gfhero-navigation { display: block; }
.gfhero-wrapper .gfhero-nav-list {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.gfhero-wrapper .gfhero-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14.5px;
	font-weight: 500;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.gfhero-wrapper .gfhero-nav-link:hover,
.gfhero-wrapper .gfhero-nav-link:focus-visible {
	color: var(--gfhero-header-hover, #2F6B50);
	border-bottom-color: var(--gfhero-header-hover, #2F6B50);
}
.gfhero-wrapper .gfhero-nav-icon svg { width: 16px; height: 16px; }

.gfhero-wrapper .gfhero-mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 8px;
	cursor: pointer;
}
.gfhero-wrapper .gfhero-mobile-toggle-bar {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: var(--gfhero-header-text, #18231F);
	transition: transform .2s ease, opacity .2s ease;
}
.gfhero-wrapper .gfhero-mobile-toggle[aria-expanded="true"] .gfhero-mobile-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gfhero-wrapper .gfhero-mobile-toggle[aria-expanded="true"] .gfhero-mobile-toggle-bar:nth-child(2) { opacity: 0; }
.gfhero-wrapper .gfhero-mobile-toggle[aria-expanded="true"] .gfhero-mobile-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.gfhero-wrapper .gfhero-mobile-menu {
	background: var(--gfhero-mobile-menu-bg, #F8F4EA);
	border-top: 1px solid rgba(0,0,0,0.08);
}
.gfhero-wrapper .gfhero-mobile-menu[hidden] { display: none; }
.gfhero-wrapper .gfhero-mobile-nav-list {
	list-style: none;
	margin: 0;
	padding: 10px 24px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.gfhero-wrapper .gfhero-mobile-nav-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 4px;
	font-size: 15px;
	min-height: 44px;
}
.gfhero-wrapper .gfhero-mobile-cta { margin-top: 8px; }

/* ---------- Hero ---------- */

.gfhero-wrapper .gfhero-hero {
	position: relative;
	height: var(--gfhero-hero-height-d, 560px);
	border-radius: var(--gfhero-hero-radius, 0);
	overflow: hidden;
}
.gfhero-wrapper.gfhero-full-width .gfhero-hero { width: 100%; }

.gfhero-wrapper .gfhero-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--gfhero-hero-object-pos, center center);
}
.gfhero-wrapper .gfhero-hero-bg-placeholder {
	background: linear-gradient(135deg, #e7e2d5, #cfd9cf);
}
.gfhero-wrapper .gfhero-hero-bg-mobile { display: none; }

.gfhero-wrapper .gfhero-hero-overlay {
	position: absolute;
	inset: 0;
	background: var(--gfhero-hero-overlay, #F8F4EA);
	opacity: var(--gfhero-hero-overlay-op, 0.45);
}

.gfhero-wrapper .gfhero-hero-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 32px 24px;
	max-width: 1280px;
	margin: 0 auto;
	gap: 18px;
}
.gfhero-wrapper.gfhero-align-left .gfhero-hero-content { align-items: flex-start; text-align: left; }
.gfhero-wrapper.gfhero-align-center .gfhero-hero-content { align-items: center; text-align: center; }
.gfhero-wrapper.gfhero-align-right .gfhero-hero-content { align-items: flex-end; text-align: right; }
.gfhero-wrapper.gfhero-valign-top .gfhero-hero-content { justify-content: flex-start; }
.gfhero-wrapper.gfhero-valign-center .gfhero-hero-content { justify-content: center; }
.gfhero-wrapper.gfhero-valign-bottom .gfhero-hero-content { justify-content: flex-end; }

.gfhero-wrapper .gfhero-hero-title {
	font-family: var(--gfhero-hero-font-family, inherit);
	font-size: var(--gfhero-hero-title-size-d, 44px);
	line-height: 1.15;
	color: var(--gfhero-hero-title-color, #18231F);
	max-width: var(--gfhero-hero-title-maxwidth, 760px);
	margin: 0;
	font-weight: 800;
}
.gfhero-wrapper .gfhero-hero-title-highlight {
	color: var(--gfhero-hero-highlight-color, #8B5A9E);
}
.gfhero-wrapper .gfhero-hero-description {
	font-size: var(--gfhero-hero-desc-size, 17px);
	color: var(--gfhero-hero-desc-color, #18231F);
	max-width: var(--gfhero-hero-desc-width, 620px);
	margin: 0;
	opacity: 0.9;
}

/* ---------- Search ---------- */

.gfhero-wrapper .gfhero-search {
	display: flex;
	align-items: stretch;
	gap: 8px;
	background: var(--gfhero-search-bg, #fff);
	border: 1px solid var(--gfhero-search-border, #4E7F5F);
	border-radius: var(--gfhero-search-radius, 999px);
	padding: 6px;
	width: 100%;
	max-width: 640px;
}
.gfhero-wrapper .gfhero-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 10px 14px;
	font-size: 15px;
	outline: none;
}
.gfhero-wrapper .gfhero-search-location {
	border: none;
	border-left: 1px solid rgba(0,0,0,0.1);
	background: transparent;
	padding: 10px 10px;
	font-size: 14px;
	max-width: 140px;
}
.gfhero-wrapper .gfhero-search-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	border-radius: calc(var(--gfhero-search-radius, 999px) - 4px);
	background: var(--gfhero-search-button-bg, #2F6B50);
	color: var(--gfhero-search-button-text, #fff);
	padding: 0 18px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
}
.gfhero-wrapper .gfhero-search-icon { width: 16px; height: 16px; }
.gfhero-wrapper .gfhero-search-input:focus-visible,
.gfhero-wrapper .gfhero-search-button:focus-visible,
.gfhero-wrapper .gfhero-nav-link:focus-visible,
.gfhero-wrapper .gfhero-button:focus-visible,
.gfhero-wrapper .gfhero-mobile-toggle:focus-visible {
	outline: 2px solid #2684FF;
	outline-offset: 2px;
}

/* ---------- CTA buttons ---------- */

.gfhero-wrapper .gfhero-cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.gfhero-wrapper .gfhero-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 600;
	background: var(--gfhero-btn-bg, #2F6B50);
	color: var(--gfhero-btn-text, #fff);
	border: 1.5px solid var(--gfhero-btn-border, var(--gfhero-btn-bg, #2F6B50));
	border-radius: var(--gfhero-btn-radius, 999px);
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.gfhero-wrapper .gfhero-button:hover {
	background: var(--gfhero-btn-hover-bg, var(--gfhero-btn-bg, #2F6B50));
	color: var(--gfhero-btn-hover-text, var(--gfhero-btn-text, #fff));
}
.gfhero-wrapper .gfhero-button-full { width: 100%; justify-content: center; }

/* ========== Tablet ========== */
@media (max-width: 1024px) {
	.gfhero-wrapper .gfhero-site-title { font-size: var(--gfhero-title-size-t, 24px); }
	.gfhero-wrapper .gfhero-hero { height: var(--gfhero-hero-height-t, 460px); }
	.gfhero-wrapper .gfhero-hero-title { font-size: var(--gfhero-hero-title-size-t, 34px); }
}

/* Hamburger takes over once the horizontal nav no longer comfortably fits. */
@media (max-width: 900px) {
	.gfhero-wrapper .gfhero-navigation { display: none; }
	.gfhero-wrapper .gfhero-mobile-toggle { display: flex; }
}

/* ========== Mobile ========== */
@media (max-width: 600px) {
	.gfhero-wrapper .gfhero-header-inner { padding: 12px 16px; }
	.gfhero-wrapper .gfhero-logo { width: var(--gfhero-logo-w-mobile, 100px); }
	.gfhero-wrapper .gfhero-site-title { font-size: var(--gfhero-title-size-m, 20px); }

	.gfhero-wrapper .gfhero-hero { height: var(--gfhero-hero-height-m, 520px); }
	.gfhero-wrapper .gfhero-hero-content { padding: 24px 16px; }
	.gfhero-wrapper .gfhero-hero-title { font-size: var(--gfhero-hero-title-size-m, 26px); }
	.gfhero-wrapper .gfhero-hero-bg-mobile { display: block; }
	.gfhero-wrapper .gfhero-hero-bg-desktop:has(~ .gfhero-hero-bg-mobile) { display: none; }

	.gfhero-wrapper .gfhero-search {
		flex-wrap: wrap;
		border-radius: 18px;
	}
	.gfhero-wrapper .gfhero-search-input { flex-basis: 100%; }
	.gfhero-wrapper .gfhero-search-location { flex: 1 1 auto; border-left: none; border-top: 1px solid rgba(0,0,0,0.1); }
	.gfhero-wrapper .gfhero-search-button { flex: 1 1 auto; justify-content: center; border-radius: 14px; }

	.gfhero-wrapper .gfhero-cta-group { flex-direction: column; }
	.gfhero-wrapper .gfhero-cta-group .gfhero-button { width: 100%; justify-content: center; }
}

/* No horizontal scrolling anywhere inside the wrapper, at any width. */
.gfhero-wrapper { max-width: 100%; overflow-x: hidden; }
