/**
 * Gourmet Furano Seasonal Footer Manager — front-end styles.
 * Every selector is scoped under .gf-sfm-footer (spec sections 15, 16) —
 * no bare body/footer/a/img/.button/.title/.menu selectors anywhere.
 * Colors, sizes and the background image are supplied per-season via CSS
 * custom properties set inline by templates/footer.php.
 */

.gf-sfm-footer {
	position: relative;
	isolation: isolate;
	margin: 0;
	padding: 0;
	background-color: var( --gf-sfm-bg-color, #101826 );
	background-image: var( --gf-sfm-bg-image );
	background-size: cover;
	background-position: center;
	color: var( --gf-sfm-text, #d7e3f0 );
	font-size: var( --gf-sfm-text-size, 15px );
	line-height: 1.65;
	overflow: hidden;
}

/*
 * Default, CSS-only visual treatment (spec section 10): used until the
 * admin uploads a real background image for this season. These are set
 * as the plugin's own fallback value for --gf-sfm-bg-image; the moment a
 * background image is chosen, templates/footer.php sets the SAME custom
 * property inline, which always wins over this stylesheet rule.
 */
.gf-sfm-footer.gf-sfm-winter {
	--gf-sfm-bg-image: radial-gradient( circle at 15% 20%, rgba( 143, 211, 255, 0.16 ), transparent 42% ),
		radial-gradient( circle at 85% 0%, rgba( 255, 255, 255, 0.08 ), transparent 38% ),
		linear-gradient( 160deg, #0c131d 0%, #101826 55%, #17293b 100% );
}

.gf-sfm-footer.gf-sfm-summer {
	--gf-sfm-bg-image: radial-gradient( circle at 85% 10%, rgba( 107, 76, 138, 0.14 ), transparent 45% ),
		radial-gradient( circle at 10% 90%, rgba( 79, 107, 63, 0.14 ), transparent 42% ),
		linear-gradient( 160deg, #f7f4ea 0%, #f4f1e6 55%, #ece6d4 100% );
}

.gf-sfm-footer * {
	box-sizing: border-box;
}

.gf-sfm-footer .gf-sfm-overlay {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: var( --gf-sfm-overlay-op, 0.45 );
	pointer-events: none;
	z-index: 0;
}

.gf-sfm-footer .gf-sfm-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 32px 32px;
	display: grid;
	grid-template-columns: minmax( 240px, 1fr ) 2fr;
	gap: 48px;
}

.gf-sfm-footer.gf-sfm-align-center .gf-sfm-intro {
	text-align: center;
	margin-inline: auto;
}

.gf-sfm-footer.gf-sfm-align-right .gf-sfm-intro {
	text-align: right;
	margin-inline-start: auto;
}

/* ---------- Intro (logo / title / CTA) ---------- */

/*
 * Logo display area, enlarged to ~7cm x 4cm (265x151 CSS px @ 96dpi) on
 * desktop (spec: "enlarge the logo area"). The wrap is sized via
 * aspect-ratio rather than a fixed height, so on narrower columns/screens
 * it shrinks proportionally (width: 100%, capped at 265px) instead of
 * overflowing or forcing horizontal scroll. object-fit: contain on the
 * image guarantees the logo's own aspect ratio is always preserved — it
 * is never stretched or distorted, whatever its native dimensions.
 */
.gf-sfm-footer .gf-sfm-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	max-width: 265px;
	aspect-ratio: 265 / 151;
	margin: 0 0 20px;
}

.gf-sfm-footer .gf-sfm-logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gf-sfm-footer.gf-sfm-align-center .gf-sfm-logo-wrap {
	margin-inline: auto;
	justify-content: center;
}

.gf-sfm-footer.gf-sfm-align-right .gf-sfm-logo-wrap {
	margin-inline-start: auto;
	margin-inline-end: 0;
	justify-content: flex-end;
}

.gf-sfm-footer .gf-sfm-title {
	margin: 0 0 10px;
	font-size: var( --gf-sfm-heading-size, 26px );
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var( --gf-sfm-heading, #fff );
}

.gf-sfm-footer .gf-sfm-subtitle {
	margin: 0 0 14px;
	font-size: 0.95em;
	font-weight: 500;
	opacity: 0.85;
	color: var( --gf-sfm-heading, #fff );
}

.gf-sfm-footer .gf-sfm-description {
	margin: 0 0 24px;
	max-width: 42ch;
	opacity: 0.92;
}

.gf-sfm-footer .gf-sfm-intro-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.gf-sfm-footer .gf-sfm-cta {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 999px;
	font-size: var( --gf-sfm-link-size, 14px );
	font-weight: 600;
	text-decoration: none;
	background-color: var( --gf-sfm-button-bg, #2e6fa3 );
	color: var( --gf-sfm-button-text, #fff );
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.gf-sfm-footer .gf-sfm-cta-secondary {
	background-color: transparent;
	color: var( --gf-sfm-button-bg, #2e6fa3 );
	box-shadow: inset 0 0 0 1.5px var( --gf-sfm-button-bg, #2e6fa3 );
}

.gf-sfm-footer .gf-sfm-cta:hover,
.gf-sfm-footer .gf-sfm-cta:focus-visible {
	transform: translateY( -1px );
	box-shadow: 0 8px 20px rgba( 0, 0, 0, 0.25 );
	opacity: 0.94;
}

/* ---------- Columns / navigation ---------- */

.gf-sfm-footer .gf-sfm-columns {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 150px, 1fr ) );
	gap: 32px;
}

.gf-sfm-footer .gf-sfm-column-heading {
	margin: 0 0 14px;
	font-size: 0.82em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var( --gf-sfm-heading, #fff );
	opacity: 0.75;
}

.gf-sfm-footer .gf-sfm-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gf-sfm-footer .gf-sfm-link-list li {
	margin: 0 0 10px;
}

.gf-sfm-footer .gf-sfm-link-list a {
	color: var( --gf-sfm-link, #cfe8ff );
	text-decoration: none;
	font-size: var( --gf-sfm-link-size, 14px );
	display: inline-block;
	padding: 2px 0;
}

.gf-sfm-footer .gf-sfm-link-list a:hover,
.gf-sfm-footer .gf-sfm-link-list a:focus-visible {
	color: var( --gf-sfm-hover, #8fd3ff );
	text-decoration: underline;
}

/* ---------- AdSense leaderboard (728x90) ---------- */
/*
 * A dedicated horizontal area, visually separated from the navigation
 * columns by its own top border (same treatment as the social-icons
 * divider below), never overlapping text or links. The inner box caps at
 * 728px and is centered; overflow: hidden plus width: 100% means a pasted
 * AdSense snippet (including a wide iframe) can never force the footer to
 * scroll horizontally on any screen size.
 */
.gf-sfm-footer .gf-sfm-adsense {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 32px 0;
	border-top: 1px solid rgba( 255, 255, 255, 0.14 );
}

.gf-sfm-footer .gf-sfm-adsense-inner {
	max-width: 728px;
	margin: 0 auto;
	padding: 16px 0 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	width: 100%;
	overflow: hidden;
}

.gf-sfm-footer .gf-sfm-adsense-placeholder {
	width: 100%;
	max-width: 728px;
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed rgba( 255, 255, 255, 0.25 );
	border-radius: 4px;
	font-size: 0.72em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.5;
}

/* ---------- Social icons (bold, circular, bottom bar) ---------- */
/*
 * Sized to the requested 38-44px range (42px), with a visibly thicker
 * 2px ring and a filled-icon hover state so they read as clear tap
 * targets rather than faint outlines (spec: "bold, large enough, easy
 * to see" circular icon buttons).
 */
.gf-sfm-footer .gf-sfm-social {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.gf-sfm-footer .gf-sfm-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 2px solid var( --gf-sfm-button-bg, #2e6fa3 );
	color: var( --gf-sfm-button-bg, #2e6fa3 );
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.gf-sfm-footer .gf-sfm-social a svg {
	width: 20px;
	height: 20px;
}

.gf-sfm-footer .gf-sfm-social a:hover,
.gf-sfm-footer .gf-sfm-social a:focus-visible {
	background-color: var( --gf-sfm-button-bg, #2e6fa3 );
	border-color: var( --gf-sfm-button-bg, #2e6fa3 );
	color: var( --gf-sfm-button-text, #fff );
	transform: translateY( -2px );
}

/* ---------- Bottom bar ---------- */
/*
 * A compact two-side bar: copyright + legal links + powered-by credit on
 * the left, social icons + Back to Top on the right (spec section 6/8).
 * The divider above it is the section's own top border, kept thin and
 * low-opacity so it reads as a hairline, not another block of space.
 */
.gf-sfm-footer .gf-sfm-bottom {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 32px 26px;
	border-top: 1px solid rgba( 255, 255, 255, 0.14 );
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	font-size: 0.82em;
}

.gf-sfm-footer .gf-sfm-bottom-left {
	display: flex;
	flex-direction: column;
	gap: 4px;
	opacity: 0.8;
}

.gf-sfm-footer .gf-sfm-bottom-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.gf-sfm-footer .gf-sfm-copyright {
	margin: 0;
}

.gf-sfm-footer .gf-sfm-legal-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
}

.gf-sfm-footer .gf-sfm-legal-links li {
	display: flex;
	align-items: center;
}

.gf-sfm-footer .gf-sfm-legal-links li + li::before {
	content: "|";
	margin: 0 8px;
	opacity: 0.5;
}

.gf-sfm-footer .gf-sfm-legal-links a {
	color: inherit;
	text-decoration: none;
}

.gf-sfm-footer .gf-sfm-legal-links a:hover,
.gf-sfm-footer .gf-sfm-legal-links a:focus-visible {
	text-decoration: underline;
}

.gf-sfm-footer .gf-sfm-powered-by {
	margin: 0;
	font-size: 0.92em;
	opacity: 0.85;
}

.gf-sfm-footer .gf-sfm-bottom-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.gf-sfm-footer .gf-sfm-back-to-top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 0;
	padding: 6px 2px;
	margin: 0;
	font: inherit;
	font-size: 0.95em;
	font-weight: 600;
	color: var( --gf-sfm-link, #cfe8ff );
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
}

.gf-sfm-footer .gf-sfm-back-to-top-arrow {
	font-size: 1.1em;
	line-height: 1;
}

.gf-sfm-footer .gf-sfm-back-to-top:hover,
.gf-sfm-footer .gf-sfm-back-to-top:focus-visible {
	color: var( --gf-sfm-hover, #8fd3ff );
}

.gf-sfm-footer .gf-sfm-back-to-top:hover .gf-sfm-back-to-top-arrow,
.gf-sfm-footer .gf-sfm-back-to-top:focus-visible .gf-sfm-back-to-top-arrow {
	transform: translateY( -2px );
	display: inline-block;
}

/* ---------- Accessibility ---------- */

.gf-sfm-footer a:focus-visible,
.gf-sfm-footer button:focus-visible {
	outline: 2px solid var( --gf-sfm-hover, #8fd3ff );
	outline-offset: 2px;
}

/* ---------- Contact form (spec sections 16-22) ---------- */
/* Deliberately scoped to .gf-sfm-contact-form-wrap, NOT .gf-sfm-footer —
 * this renders on the dedicated Contact Us PAGE via the
 * [gf_sfm_contact_form] shortcode, independent of either footer design. */

.gf-sfm-contact-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.gf-sfm-contact-form-wrap .gf-sfm-contact-notice {
	padding: 14px 18px;
	border-radius: 6px;
	margin: 0 0 20px;
	font-weight: 600;
}

.gf-sfm-contact-form-wrap .gf-sfm-contact-success {
	background: #eaf7ee;
	color: #205a32;
	border: 1px solid #bfe6c9;
}

.gf-sfm-contact-form-wrap .gf-sfm-contact-error {
	background: #fdeceb;
	color: #7a2420;
	border: 1px solid #f3c5c1;
}

.gf-sfm-contact-form-wrap .gf-sfm-contact-hp {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect( 0 0 0 0 ) !important;
	white-space: nowrap !important;
}

.gf-sfm-contact-form-wrap .gf-sfm-field {
	margin: 0 0 18px;
}

.gf-sfm-contact-form-wrap .gf-sfm-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.gf-sfm-contact-form-wrap .gf-sfm-required {
	color: #b3261e;
}

.gf-sfm-contact-form-wrap input[type="text"],
.gf-sfm-contact-form-wrap input[type="email"],
.gf-sfm-contact-form-wrap input[type="tel"],
.gf-sfm-contact-form-wrap textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	font: inherit;
	box-sizing: border-box;
}

.gf-sfm-contact-form-wrap input:focus-visible,
.gf-sfm-contact-form-wrap textarea:focus-visible {
	outline: 2px solid #2e6fa3;
	outline-offset: 1px;
}

.gf-sfm-contact-form-wrap .gf-sfm-contact-submit {
	display: inline-block;
	padding: 13px 32px;
	border: 0;
	border-radius: 999px;
	background-color: #2e6fa3;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.gf-sfm-contact-form-wrap .gf-sfm-contact-submit:hover,
.gf-sfm-contact-form-wrap .gf-sfm-contact-submit:focus-visible {
	opacity: 0.92;
}

@media ( prefers-reduced-motion: reduce ) {
	.gf-sfm-footer .gf-sfm-cta,
	.gf-sfm-footer .gf-sfm-social a,
	.gf-sfm-footer .gf-sfm-back-to-top,
	.gf-sfm-footer .gf-sfm-back-to-top-arrow {
		transition: none;
	}
}

/* ---------- Responsive: tablet ---------- */

@media ( max-width: 900px ) {
	.gf-sfm-footer .gf-sfm-inner {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 48px 28px 32px;
	}

	.gf-sfm-footer .gf-sfm-columns {
		grid-template-columns: repeat( 2, 1fr );
	}

	.gf-sfm-footer .gf-sfm-adsense {
		padding: 24px 28px 0;
	}

	.gf-sfm-footer .gf-sfm-adsense-inner {
		padding: 18px 0 24px;
	}
}

/* ---------- Responsive: mobile (stacked layout, no horizontal scroll) ---------- */

@media ( max-width: 560px ) {
	.gf-sfm-footer .gf-sfm-inner {
		padding: 40px 20px 28px;
		gap: 28px;
	}

	.gf-sfm-footer .gf-sfm-columns {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.gf-sfm-footer .gf-sfm-title {
		font-size: calc( var( --gf-sfm-heading-size, 26px ) * 0.82 );
	}

	.gf-sfm-footer .gf-sfm-intro-actions {
		flex-direction: column;
	}

	.gf-sfm-footer .gf-sfm-cta {
		width: 100%;
		text-align: center;
	}

	.gf-sfm-footer .gf-sfm-bottom {
		padding: 18px 20px 24px;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.gf-sfm-footer .gf-sfm-bottom-left {
		align-items: center;
	}

	.gf-sfm-footer .gf-sfm-bottom-legal {
		justify-content: center;
	}

	.gf-sfm-footer .gf-sfm-bottom-right {
		justify-content: center;
	}

	/* Never force the 728px ad width on a 390px-wide screen: the inner
	 * box and placeholder are already width: 100% with a max-width cap,
	 * so they shrink to fit instead of causing horizontal scroll. */
	.gf-sfm-footer .gf-sfm-adsense {
		padding: 20px 20px 0;
	}

	.gf-sfm-footer .gf-sfm-adsense-inner {
		padding: 16px 0 20px;
		min-height: 60px;
	}

	.gf-sfm-footer .gf-sfm-adsense-placeholder {
		min-height: 60px;
		font-size: 0.66em;
	}

	.gf-sfm-footer .gf-sfm-logo-wrap {
		max-width: 200px;
	}
}
