/*
Theme Name: The Stamford Arms
Theme URI: http://thestamfordarms.test
Author: RKH
Description: A warm, heritage-inspired block theme for The Stamford Arms in Groby.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-stamford-arms
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, full-site-editing, block-patterns, wide-blocks, block-styles
*/

/* Double-border "picture frame" inset on buttons */
.wp-element-button {
	outline: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	outline-offset: -4px;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Gravity Forms — match theme button styles */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper input.gform_button,
.gform_wrapper button.gform_button,
.gform-theme.gform-theme--framework .gform_footer input[type="submit"],
.gform-theme.gform-theme--framework button.gform-theme-button {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	background-color: var(--wp--preset--color--accent) !important;
	color: #ffffff !important;
	border: 1px solid var(--wp--preset--color--accent) !important;
	border-radius: 0px !important;
	padding: 0.8em 1.8em !important;
	cursor: pointer;
	outline: 1px solid color-mix(in srgb, #ffffff 30%, transparent) !important;
	outline-offset: -4px;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button[type="submit"]:hover,
.gform_wrapper input.gform_button:hover,
.gform_wrapper button.gform_button:hover,
.gform-theme.gform-theme--framework .gform_footer input[type="submit"]:hover,
.gform-theme.gform-theme--framework button.gform-theme-button:hover {
	background-color: #5E2832 !important;
	border-color: #5E2832 !important;
}

/* Gravity Forms — clean up field styling */
.gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="image"]):not([type="hidden"]),
.gform_wrapper textarea,
.gform_wrapper select {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent) !important;
	border-radius: 0px !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.95rem !important;
	background: #ffffff !important;
	transition: border-color 0.2s ease;
}

.gform_wrapper input:not([type="submit"]):not([type="button"]):focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
	border-color: var(--wp--preset--color--primary) !important;
	outline: none !important;
	box-shadow: none !important;
}

.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.7rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
}

.gform_wrapper .gfield_description,
.gform_wrapper .ginput_counter {
	font-size: 0.8rem !important;
	opacity: 0.6;
}

.gform_wrapper .gfield_required {
	color: var(--wp--preset--color--accent) !important;
}

/* Contact split layout — keep columns flush on the anchored section */
.page-template-default .wp-block-columns.alignfull {
	gap: 0;
}

/* Section-green nav link hover (navigation block doesn't inherit section element styles) */
.is-style-section-green .wp-block-navigation-item__content:hover {
	color: #E8C4A0 !important;
}

/* Mobile overlay — give the Book a Table CTA more breathing room */
.rkh-overlay-ctas .wp-block-button__link {
	padding-top: 0.85em !important;
	padding-bottom: 0.85em !important;
}

/* Arrow button style — trailing arrow that slides on hover */
.is-style-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
}

.is-style-arrow .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	transition: transform 0.3s ease;
}

.is-style-arrow .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* Separators — thin 1px, inherit section text colour */
.wp-block-separator {
	border-bottom-width: 1px !important;
	color: inherit !important;
	border-color: currentColor !important;
	opacity: 0.5;
}

/* Beautiful Pubs logo — recolour dark SVG to cream (#FFF8EE) */
.is-style-section-green .beautiful-pubs-badge img {
	filter: brightness(0) invert(97%) sepia(6%) saturate(500%) hue-rotate(340deg) brightness(103%);
}

/* Active navigation link - match RKH plugin ::after underline */
.wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1) !important;
	transform-origin: left !important;
}

/* Hero — staggered entrance on page load */
@media (prefers-reduced-motion: no-preference) {
	@keyframes toh-hero-entrance {
		from { opacity: 0; transform: translateY(12px); }
		to   { opacity: 1; transform: translateY(0); }
	}

	.toh-hero-entrance > * {
		animation: toh-hero-entrance 0.6s ease-out both;
	}

	.toh-hero-entrance > *:nth-child(1) { animation-delay: 0.3s; }
	.toh-hero-entrance > *:nth-child(2) { animation-delay: 0.5s; }
	.toh-hero-entrance > *:nth-child(3) { animation-delay: 0.7s; }
	.toh-hero-entrance > *:nth-child(4) { animation-delay: 0.9s; }
	.toh-hero-entrance > *:nth-child(5) { animation-delay: 1.1s; }
}

/* Full-link cover — stretches the first link across the whole card */
.wp-block-cover.is-style-full-link {
	cursor: pointer;
	overflow: hidden;
}

.wp-block-cover.is-style-full-link .wp-block-cover__inner-container {
	position: static !important;
	z-index: 1;
}

.wp-block-cover.is-style-full-link .wp-block-cover__inner-container > * {
	position: static;
}

.wp-block-cover.is-style-full-link a::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.wp-block-cover.is-style-full-link img {
	transition: transform 0.5s ease-out;
}

.wp-block-cover.is-style-full-link:hover img {
	transform: scale(1.03);
}

.wp-block-cover.is-style-full-link a:hover {
	color: inherit;
}

/* ── Picture frames for image ticker ─────────────────────────────
   Toggle: add class "has-frames" to the ticker block in the editor.
   Creates 5 cycling frame styles evoking a pub gallery wall.
   ──────────────────────────────────────────────────────────────── */

/* Container adjustments — room for frames + shadows */
.wp-block-text-ticker-ticker-block.content-type-images.has-frames .text-ticker-container {
	padding: 2em 0;
}

.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-scroll-gsap {
	gap: calc(var(--ticker-item-spacing, 16px) * 2);
}

/* Base frame — shared mat + positioning */
.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image {
	position: relative;
	padding: 12px;
	background-color: #F5F0E8 !important;
	box-sizing: border-box;
	overflow: hidden;
}

/* Constrain image + figure within the frame */
.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image figure {
	overflow: hidden;
}

.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image img {
	object-fit: cover !important;
	max-height: 100%;
}

/* Subtle inset shadow on images — simulates glass/rebate edge */
.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image img {
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Frame 1: Ornate Gold */
.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+1) {
	padding: 14px;
	background-color: #FAF4E8 !important;
	border: 5px solid #C19A4E;
	outline: 2px solid #A67C3D;
	outline-offset: -1px;
	box-shadow:
		inset 0 2px 4px rgba(212, 175, 97, 0.5),
		inset 2px 0 4px rgba(212, 175, 97, 0.3),
		inset 0 -2px 3px rgba(100, 70, 20, 0.3),
		inset -2px 0 3px rgba(100, 70, 20, 0.2),
		0 4px 12px rgba(0, 0, 0, 0.25),
		0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Frame 2: Dark Walnut */
.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+2) {
	padding: 12px;
	background-color: #EDE7D9 !important;
	border: 6px solid #3B2314;
	outline: 1px solid #2A1A0E;
	outline-offset: 0px;
	box-shadow:
		inset 0 2px 3px rgba(90, 55, 25, 0.4),
		inset 0 -2px 3px rgba(20, 10, 5, 0.5),
		inset 2px 0 3px rgba(120, 70, 30, 0.25),
		0 5px 15px rgba(0, 0, 0, 0.3),
		0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Frame 3: Thin Gilt */
.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+3) {
	padding: 10px;
	background-color: #FAF6EE !important;
	border: 3px solid #B8922F;
	outline: 1px solid #D4AF61;
	outline-offset: 1px;
	box-shadow:
		inset 0 1px 2px rgba(212, 175, 97, 0.6),
		inset 0 -1px 2px rgba(80, 55, 15, 0.35),
		0 3px 8px rgba(0, 0, 0, 0.2),
		0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Frame 4: Aged Brass */
.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+4) {
	padding: 11px;
	background-color: #F0EBE0 !important;
	border: 4px solid #7A6B3A;
	outline: 1px solid #5C5228;
	outline-offset: 0px;
	box-shadow:
		inset 0 1px 3px rgba(140, 125, 70, 0.4),
		inset 0 -1px 2px rgba(50, 40, 15, 0.4),
		inset 1px 0 2px rgba(80, 90, 50, 0.2),
		0 4px 10px rgba(0, 0, 0, 0.22),
		0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Frame 5: Black & Gold */
.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+5) {
	padding: 13px;
	background-color: #F5F0E6 !important;
	border: 5px solid #1C1917;
	outline: 2px solid #C19A4E;
	outline-offset: -7px;
	box-shadow:
		inset 0 0 4px rgba(193, 154, 78, 0.3),
		inset 0 2px 3px rgba(0, 0, 0, 0.15),
		inset 0 -2px 3px rgba(0, 0, 0, 0.25),
		0 5px 14px rgba(0, 0, 0, 0.3),
		0 2px 5px rgba(0, 0, 0, 0.18);
}

/* Mobile — scale down frames */
@media (max-width: 768px) {
	.wp-block-text-ticker-ticker-block.content-type-images.has-frames .text-ticker-container {
		padding: 1.5em 0;
	}

	.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-scroll-gsap {
		gap: calc(var(--ticker-item-spacing, 16px) * 2);
	}

	.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image {
		padding: 8px;
	}

	.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+1) {
		border-width: 4px;
		padding: 10px;
	}

	.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+2) {
		border-width: 4px;
		padding: 9px;
	}

	.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+3) {
		border-width: 2px;
		padding: 7px;
	}

	.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+4) {
		border-width: 3px;
		padding: 8px;
	}

	.wp-block-text-ticker-ticker-block.content-type-images.has-frames .ticker-item-image:nth-child(5n+5) {
		border-width: 4px;
		outline-offset: -6px;
		padding: 9px;
	}
}
/* Stamford Arms first-pass site */
:root { --sa-wine: #702b27; --sa-deep: #331f1c; --sa-gold: #d49a44; --sa-cream: #fbf6eb; --sa-ink: #2d2521; }
html { scroll-behavior: smooth; }
body { background: var(--sa-cream); color: var(--sa-ink); }
.sa-page, .sa-page * { box-sizing: border-box; }
.sa-page { font-family: var(--wp--preset--font-family--body), sans-serif; line-height: 1.65; }
.sa-page h1, .sa-page h2, .sa-page h3 { font-family: var(--wp--preset--font-family--display), Georgia, serif; font-weight: 500; line-height: 1.04; margin: 0 0 .55em; }
.sa-page h1 { font-size: clamp(3.3rem, 7vw, 7rem); }
.sa-page h2 { font-size: clamp(2.7rem, 5vw, 5rem); }
.sa-page h3 { font-size: clamp(2rem, 3vw, 3rem); }
.sa-page p { margin: 0 0 1.15em; }
.sa-page address { font-style: normal; }
.sa-wrap { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.sa-section { padding: clamp(4rem, 8vw, 8rem) 0; }
.sa-section.sa-tint { background: #f2e7d4; }
.sa-section.sa-burgundy { background: var(--sa-wine); color: var(--sa-cream); }
.sa-eyebrow { color: #a65f39; font-size: .78rem; font-weight: 700; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; }
.sa-burgundy .sa-eyebrow, .sa-hero .sa-eyebrow { color: #f3bc64; }
.sa-lead { font-family: var(--wp--preset--font-family--display), Georgia, serif; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.25; max-width: 780px; }
.sa-small { font-size: .88rem; opacity: .75; }
.sa-button { display: inline-flex; gap: 1.2rem; justify-content: space-between; align-items: center; min-width: 172px; padding: .9rem 1.25rem; background: var(--sa-wine); border: 1px solid var(--sa-wine); color: #fff !important; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.sa-button:hover { background: var(--sa-deep); transform: translateY(-2px); }
.sa-button-light { background: transparent; border-color: #fff8; }
.sa-button-light:hover { background: #fff2; }
.sa-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.sa-hero { min-height: min(760px, 85svh); background-size: cover; background-position: center; color: #fff; position: relative; display: flex; align-items: center; }
.sa-hero-inner { padding-block: 6rem; }
.sa-hero h1 { max-width: 900px; text-wrap: balance; }
.sa-hero-inner > p:not(.sa-eyebrow) { max-width: 560px; font-size: 1.2rem; }
.sa-image-note { position: absolute; bottom: .8rem; right: 1rem; font-size: .65rem; opacity: .85; }
.sa-intro { max-width: 850px; margin: auto; text-align: center; }
.sa-intro p { font-size: 1.12rem; }
.sa-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.sa-split > div { max-width: 550px; }
.sa-split.sa-reverse > div { order: 2; }
.sa-split.sa-reverse > figure { order: 1; }
.sa-picture { margin: 0; }
.sa-picture img { display: block; width: 100%; height: clamp(300px, 36vw, 500px); object-fit: cover; }
.sa-picture figcaption { padding-top: .4rem; color: #76665d; font-size: .67rem; }
.sa-drinks, .sa-center { max-width: 850px; margin: auto; text-align: center; }
.sa-drinks > p:not(.sa-eyebrow), .sa-center > p:not(.sa-eyebrow) { font-size: 1.12rem; }
.sa-visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); }
.sa-visit-grid > div + div { border-left: 1px solid #6f292544; padding-left: clamp(2rem, 6vw, 6rem); }
.sa-page-hero { background: var(--sa-wine); color: var(--sa-cream); padding-block: clamp(5rem, 9vw, 9rem); }
.sa-page-hero .sa-wrap { max-width: 1050px; }
.sa-page-hero h1 { max-width: 950px; }
.sa-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.sa-card { padding: clamp(2rem, 4vw, 3.5rem); background: var(--sa-cream); border-top: 5px solid var(--sa-gold); }
.sa-card h2 { font-size: clamp(2rem, 3vw, 3.2rem); }
.sa-faq { max-width: 850px; margin-inline: auto; }
.sa-faq h2 { font-size: 2.7rem; margin-top: 1.5em; }
.sa-faq h2:first-child { margin-top: 0; }
.sa-faq details { border-top: 1px solid #702b2744; padding: 1.2rem 0; }
.sa-faq summary { cursor: pointer; font-size: 1.12rem; font-weight: 600; }
.sa-faq details p { padding: 1rem 2rem 0 0; }
.sa-faq details:last-of-type { border-bottom: 1px solid #702b2744; }
/* WordPress header and footer parts */
.sa-header { background: #e9d9bd; border-bottom: 1px solid #702b2730; position: relative; z-index: 20; }
body .wp-block-navigation__responsive-container.is-menu-open { background: #e9d9bd !important; }
.sa-header-inner { width: min(100% - 3rem, 1200px); margin: auto; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.sa-header-logo img { display: block; width: auto !important; height: 48px; object-fit: contain; }
.sa-header-logo { width: auto !important; margin: 0; line-height: 0; }
.sa-nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 2.5vw, 2.5rem); align-items: center; }
.sa-nav a { color: var(--sa-wine); text-decoration: none; text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .1em; }
.sa-nav a:hover, .sa-nav a:focus { text-decoration: underline; text-underline-offset: .35em; }
@media (max-width: 800px) { .sa-split, .sa-visit-grid, .sa-card-grid { grid-template-columns: 1fr; } .sa-split.sa-reverse > div, .sa-split.sa-reverse > figure { order: initial; } .sa-visit-grid > div + div { border-left: 0; border-top: 1px solid #6f292544; padding: 2rem 0 0; } .sa-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .sa-wrap { width: min(100% - 2rem, 1200px); } .sa-nav { gap: .6rem 1rem; } .sa-nav a { font-size: .66rem; } .sa-hero { min-height: 640px; } .sa-hero-inner { padding-block: 4rem; } .sa-footer-inner { grid-template-columns: 1fr; } }
/* Keep page sections edge to edge inside the WordPress constrained post-content wrapper. */
.sa-page { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.sa-hero h1, .sa-page-hero h1, .sa-burgundy h2, .sa-burgundy h3 { color: var(--sa-cream); }
/* The post-content block inherits WordPress root padding even at full width. */
.wp-block-post-content:has(> .sa-page) { padding-left: 0 !important; padding-right: 0 !important; }
.sa-page { margin-left: 0; }
/* A gentle sliding gallery of framed images. */
.sa-frames-section { overflow: hidden; background: #e9d9bd; padding: clamp(4rem,7vw,6rem) 0 3.5rem; text-align: center; }
.sa-frames-section h2 { color: var(--sa-wine); }
.sa-frames-note { color: #624c3e; font-size: .7rem !important; margin: 0; }
/* September review: clearer page titles, livelier food feature, sample menus. */
.sa-page-hero { padding-block: clamp(4.5rem, 7vw, 7rem); }
.sa-page-hero .sa-eyebrow { color: #f6d18e; font-size: .9rem; letter-spacing: .16em; }
.sa-page-hero h1 { color: #f6d18e; font-size: clamp(3.25rem, 6.3vw, 6rem); line-height: 1.08; }
.sa-page-hero .sa-lead { color: #fffaf0; }
.sa-food-feature { background: var(--sa-wine); color: var(--sa-cream); overflow: hidden; }
.sa-food-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(3rem, 7vw, 8rem); }
.sa-food-copy { max-width: 590px; padding-block: 2rem; }
.sa-food-copy .sa-eyebrow { color: #f6d18e; }
.sa-food-copy h2 { color: #f6d18e; font-size: clamp(3.5rem, 6vw, 6.5rem); }
.sa-food-copy h2 em { font-weight: 400; }
.sa-food-copy p:not(.sa-eyebrow) { font-size: 1.1rem; }
.sa-food-photo { margin: 0; position: relative; transform: rotate(2deg); }
.sa-food-photo-frame { padding: clamp(.6rem, 1.3vw, 1.2rem); border: 6px ridge #d9a350; background: #ead6b0; box-shadow: 0 18px 28px #2d1615a0; }
.sa-food-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sa-food-photo figcaption { transform: rotate(-2deg); color: #fff8e5; font-size: .68rem; padding-top: .9rem; }
.sa-sample-menus { background: #efe2cb; }
.sa-sample-heading { max-width: 800px; margin: 0 auto 3rem; text-align: center; }
.sa-sample-heading h2 { color: var(--sa-wine); }
.sa-sample-heading > p:last-child { font-size: 1.05rem; }
.sa-pdf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.sa-pdf-card { background: var(--sa-deep); color: var(--sa-cream); display: grid; grid-template-columns: 92px 1fr; gap: 1.2rem; padding: 1.1rem; min-height: 175px; align-items: center; }
.sa-pdf-preview { background: #fff9ed; padding: .25rem; align-self: stretch; display: flex; align-items: center; }
.sa-pdf-preview img { display: block; width: 100%; max-height: 155px; object-fit: contain; }
.sa-pdf-copy .sa-eyebrow { color: #f6d18e; font-size: .57rem; letter-spacing: .12em; }
.sa-pdf-copy h3 { color: #f6d18e; font-size: clamp(1.65rem, 2.2vw, 2.2rem); margin-bottom: 1rem; }
.sa-pdf-copy a { display: inline-flex; gap: .8rem; color: #fff9ed; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-underline-offset: .3em; }
@media (max-width: 900px) { .sa-pdf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .sa-food-grid { grid-template-columns: 1fr; } .sa-food-photo { max-width: 540px; margin-inline: auto; } }
@media (max-width: 560px) { .sa-pdf-grid { grid-template-columns: 1fr; } .sa-pdf-card { grid-template-columns: 90px 1fr; } }
/* Keep the working PDF menus near the top of the Menus page. */
.sa-menus-page .sa-page-hero { padding-block: clamp(2.5rem, 4vw, 4rem); }
.sa-menus-page .sa-page-hero h1 { font-size: clamp(3rem, 5.5vw, 5.2rem); margin-bottom: .25em; }
.sa-menus-page .sa-page-hero .sa-lead { margin-bottom: 0; }
.sa-menu-intro { padding-block: clamp(2rem, 3vw, 3rem); }
.sa-menu-intro .sa-intro { max-width: 920px; }
.sa-menu-intro .sa-intro p { font-size: 1rem; margin-bottom: .65rem; }
.sa-menu-intro .sa-intro p:last-child { margin-bottom: 0; }
.sa-menus-page .sa-sample-menus { padding-block: clamp(2rem, 3vw, 3rem) clamp(3rem, 5vw, 5rem); }
.sa-menus-page .sa-sample-heading { margin-bottom: 1.75rem; }
.sa-menus-page .sa-sample-heading h2 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: .2em; }
.sa-menus-page .sa-sample-heading > p:last-child { margin-bottom: 0; }
.sa-events-intro { padding-block: clamp(3rem,5vw,5rem); text-align: center; }
.sa-events-intro .sa-wrap { max-width: 820px; }
.sa-events-intro h2 { color: var(--sa-wine); }
.sa-events-intro p:last-child { font-size: 1.1rem; }
.sa-events-list { background: #f0e4d0; padding-top: 1rem; }
.sa-events-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.sa-event-card { background: var(--sa-cream); border-bottom: 5px solid var(--sa-gold); }
.sa-event-image img { display: block; width: 100%; height: 225px; object-fit: cover; }
.sa-event-body { padding: 1.6rem; }
.sa-event-body .sa-eyebrow { font-size: .65rem; }
.sa-event-body h2 { color: var(--sa-wine); font-size: clamp(2.3rem,3vw,3.4rem); }
.sa-event-status { display: inline-block; color: var(--sa-wine); border: 1px solid #702b2766; padding: .55rem .8rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sa-events-note { margin: 1.5rem 0 0 !important; font-size: .72rem; opacity: .7; }
@media (max-width: 850px) { .sa-events-grid { grid-template-columns: 1fr; } .sa-event-card { display: grid; grid-template-columns: 1fr 1.2fr; } .sa-event-image img { height: 100%; min-height: 240px; } }
@media (max-width: 560px) { .sa-event-card { display: block; } .sa-event-image img { height: 220px; min-height: 0; } }
.sa-page .sa-visit-grid address { display: block; margin-bottom: 1.75rem; line-height: 1.75; }
.sa-menus-page .sa-sample-menus { padding-top: 2rem; }
.sa-menus-page .sa-sample-heading { margin-bottom: 1.25rem; }
.sa-menus-page .sa-sample-heading h2 { font-size: clamp(2.3rem, 3.5vw, 3.5rem); }
.sa-events-page .sa-page-hero { padding-block: clamp(2.5rem, 4vw, 4rem); }
.sa-events-page .sa-events-intro { padding-block: clamp(2rem, 3vw, 3rem); }
.sa-events-page .sa-events-intro h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.sa-pdf-preview a { display: flex; align-items: center; width: 100%; height: 100%; }
.sa-pdf-preview a:focus-visible { outline: 3px solid #f6d18e; outline-offset: 3px; }

/* Native block equivalents of the original page artwork. */
.sa-hero { isolation: isolate; overflow: hidden; background: #231b17; }
.sa-hero > .sa-hero-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0; }
.sa-hero > .sa-hero-background img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sa-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29,18,17,.8), rgba(29,18,17,.26)); pointer-events: none; }
.sa-hero > .sa-hero-inner { position: relative; }
.sa-picture .sa-caption, .sa-food-photo .sa-caption { padding-top: .4rem; color: #76665d; font-size: .67rem; }
.sa-food-photo .sa-caption { color: #fff8e5; padding-top: .9rem; }
.sa-nav .wp-block-navigation-item__content { color: var(--sa-wine); }
.sa-nav .current-menu-item > .wp-block-navigation-item__content { text-decoration: underline; text-decoration-color: var(--sa-gold); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.sa-page .wp-block-button.sa-button { padding: 0; min-width: 0; border: 0; background: transparent; }
.sa-page .wp-block-button.sa-button .wp-block-button__link { display: inline-flex; gap: 1.2rem; justify-content: space-between; align-items: center; min-width: 172px; padding: .9rem 1.25rem; border: 1px solid var(--sa-wine); border-radius: 0; background: var(--sa-wine); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sa-page .wp-block-button.sa-button-light .wp-block-button__link { border-color: #fff8; background: transparent; }
.sa-frame-ticker:not(.is-editor) { margin-block: 1.25rem 1rem; }
.sa-frame-ticker:not(.is-editor) .text-ticker-container { min-height: 410px; padding: 1.5rem 0 2rem; }
.sa-frame-ticker:not(.is-editor) .ticker-scroll-gsap .ticker-item-image,
.sa-frame-ticker:not(.is-editor) .ticker-scroll-gsap .ticker-item-image figure { height: auto; }
.sa-frame-ticker:not(.is-editor) .ticker-item-image .wp-block-image { width: clamp(220px, 24vw, 340px); padding: .65rem; background: #63352b; border: 4px ridge #a36d3e; box-shadow: 0 12px 20px #3b211d35; }
.sa-frame-ticker:not(.is-editor) .ticker-item-image:nth-child(4n+1) .wp-block-image { transform: rotate(-2deg) translateY(4px); }
.sa-frame-ticker:not(.is-editor) .ticker-item-image:nth-child(4n+2) .wp-block-image { background: #af7d35; border-color: #d3ac5d; transform: rotate(1.7deg) translateY(12px); }
.sa-frame-ticker:not(.is-editor) .ticker-item-image:nth-child(4n+3) .wp-block-image { background: #30241d; border-color: #66513b; transform: rotate(-1.2deg) translateY(-8px); }
.sa-frame-ticker:not(.is-editor) .ticker-item-image:nth-child(4n+4) .wp-block-image { transform: rotate(2.2deg) translateY(7px); }
.sa-frame-ticker:not(.is-editor) .ticker-item-image .wp-block-image img { display: block; width: 100% !important; height: 300px !important; border: .7rem solid #f8f0df; object-fit: cover !important; }
.sa-frame-ticker:not(.is-editor) .ticker-item-image .wp-block-image figcaption { display: none; }
/* Keep the four source images compact and selectable in the block editor. */
.sa-frame-ticker.is-editor .text-ticker-content .wp-block-image { width: 220px !important; min-width: 220px; height: auto !important; margin: 0 !important; }
.sa-frame-ticker.is-editor .text-ticker-content .wp-block-image img { width: 220px !important; max-width: 220px !important; height: 160px !important; object-fit: cover !important; }
.sa-frame-ticker.is-editor .components-resizable-box__container { width: 220px !important; height: 160px !important; background: transparent !important; }
.sa-frame-ticker.is-editor .ticker-notice { display: none; }
.wp-block-post-content > .sa-page.alignfull { width: 100% !important; max-width: 100% !important; margin-inline: 0 !important; }

/* The horses and shield appear as a quiet watermark in just two sections. */
body.page-id-656 .sa-page-hero,
.sa-home .sa-food-feature { position: relative; isolation: isolate; }
body.page-id-656 .sa-page-hero::before,
.sa-home .sa-food-feature::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	right: 1rem;
	width: 390px;
	height: 300px;
	background: url('assets/logos/stamford-arms-logo-transparent.png') center top / 390px auto no-repeat;
	opacity: .24;
	transform: translateY(-50%);
	pointer-events: none;
}
.sa-home .sa-food-feature::before { right: auto; left: clamp(1rem, 4vw, 5rem); opacity: .16; }
@media (max-width: 700px) {
	body.page-id-656 .sa-page-hero::before,
	.sa-home .sa-food-feature::before { right: -9rem; left: auto; width: 300px; height: 230px; background-size: 300px auto; opacity: .12; }
}

/* Stamford Arms food photography, editable as native Image blocks. */
.sa-menu-food { background: #f2e7d4; }
.sa-menu-food h2 { margin-bottom: 1.75rem; }
.sa-menu-food-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.sa-menu-food-grid > .wp-block-image { min-width: 0; margin: 0; }
.sa-menu-food-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.sa-menu-food-grid figcaption { margin: .75rem 0 0; color: var(--sa-wine); font: italic 1.35rem/1.25 var(--wp--preset--font-family--display), Georgia, serif; }
@media (max-width: 900px) { .sa-menu-food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sa-menu-food-grid { gap: 1.25rem .75rem; } .sa-menu-food-grid figcaption { font-size: 1.1rem; } }

/* Contextual venue photography. */
.sa-drinks-photo { margin: 2rem 0 0; }
.sa-drinks-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.sa-drinks-photo figcaption { color: var(--sa-cream); font-style: italic; }
.sa-kitchen-split > .sa-center { max-width: none; text-align: left; }
.sa-find-us-photo { margin: 2rem 0 0; }
.sa-find-us-photo img { display: block; width: 100%; height: auto; }
.sa-find-us-photo figcaption { color: #76665d; font-size: .85rem; }
@media (max-width: 700px) { .sa-drinks-photo img { aspect-ratio: 4 / 3; } }

/* Exterior photography behind the Contact page welcome. */
.sa-page-hero.sa-photo-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 480px; display: flex; align-items: center; }
.sa-photo-hero > .sa-hero-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0; }
.sa-photo-hero > .sa-hero-background img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.sa-photo-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #1d1211d9, #1d121159); pointer-events: none; }
.sa-photo-hero > .sa-wrap { position: relative; }
@media (max-width: 700px) { .sa-page-hero.sa-photo-hero { min-height: 390px; } .sa-photo-hero > .sa-hero-background img { object-position: 40% center; } }

/* FAQ closing line. */
.sa-faq > .sa-small { margin-top: 2.5rem; text-align: center; }
.sa-visit-grid p + h2 { margin-top: 2.5rem; }

/* Contact page: compact hero, three-column details, then the form beside the map. */
.sa-contact-page .sa-page-hero.sa-photo-hero { min-height: 340px; padding-block: clamp(3rem, 5vw, 4.5rem); }
.sa-contact-details { padding-top: clamp(3rem, 6vw, 5rem); }
.sa-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.sa-contact-grid > div + div { border-left: 1px solid #6f292544; padding-left: clamp(1.5rem, 4vw, 3.5rem); }
.sa-page .sa-contact-grid h2 { font-size: clamp(2rem, 2.8vw, 2.6rem); }
.sa-contact-grid p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.sa-contact-grid p:has(.sa-button) { margin-top: 1.5rem; }
.sa-contact-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid #6f292544; }
.sa-page .sa-contact-form-main h2 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); margin-bottom: .35em; }
.sa-contact-form-main > p:not(.sa-eyebrow) { max-width: 32rem; margin: 0 0 2rem; line-height: 1.7; }
.sa-contact-form .sa-map { margin: 0; min-height: 420px; }
.sa-contact-form .sa-map iframe { height: 100%; min-height: 420px; }
@media (max-width: 1100px) {
	.sa-contact-grid { grid-template-columns: 1fr 1fr; }
	.sa-contact-grid > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 1.5rem; border-top: 1px solid #6f292544; }
}
@media (max-width: 900px) {
	.sa-contact-form { grid-template-columns: 1fr; }
	.sa-contact-form .sa-map, .sa-contact-form .sa-map iframe { min-height: 340px; }
}
@media (max-width: 600px) {
	.sa-contact-grid { grid-template-columns: 1fr; }
	.sa-contact-grid > div + div { grid-column: auto; border-left: 0; padding-left: 0; padding-top: 1.5rem; border-top: 1px solid #6f292544; }
}
/* The ID outranks Gravity Forms' inline per-form variables. */
.sa-contact-form #gform_wrapper_1.gform-theme {
	--gf-color-primary: var(--sa-wine);
	--gf-color-primary-darker: var(--sa-deep);
	--gf-color-primary-contrast: #fff;
	--gf-color-in-ctrl: #fff;
	--gf-color-in-ctrl-contrast: var(--sa-ink);
	--gf-ctrl-border-color: #70292533;
	--gf-ctrl-border-color-hover: #70292599;
	--gf-ctrl-border-color-focus: var(--sa-wine);
	--gf-ctrl-radius: 0;
	--gf-ctrl-size: 3.1rem;
	--gf-ctrl-font-family: var(--wp--preset--font-family--body), sans-serif;
	--gf-ctrl-font-size: 1rem;
	--gf-ctrl-outline-color-focus: #70292522;
	--gf-ctrl-label-color-primary: var(--sa-ink);
	--gf-ctrl-label-color-secondary: #2d252199;
	--gf-ctrl-label-color-req: #a65f39;
	--gf-field-gap-y: 1.6rem;
	position: relative;
	padding: clamp(1.75rem, 4vw, 3rem);
	background: #fff;
	border: 1px solid #70292522;
	box-shadow: 0 0 0 6px var(--sa-cream), 0 0 0 7px #70292522, 0 24px 48px -32px #331f1c66;
}
.sa-contact-form .gform_wrapper .gform_heading { display: none; }
.sa-contact-form .gform_wrapper .gfield_label { margin-bottom: .6rem; color: var(--sa-ink); font-size: .72rem !important; font-weight: 700 !important; letter-spacing: .14em; text-transform: uppercase; }
.sa-contact-form .gform_wrapper .gform-field-label--type-sub { font-size: .78rem; }
.sa-contact-form .gform_wrapper input:not([type=submit]), .sa-contact-form .gform_wrapper textarea { background: #fdfaf4; transition: border-color .2s, background .2s; }
.sa-contact-form .gform_wrapper input:not([type=submit]):focus, .sa-contact-form .gform_wrapper textarea:focus { background: #fff; }
.sa-contact-form .gform_wrapper textarea { min-height: 9rem; }
.sa-contact-form .gform_wrapper .charleft { color: #2d252180; font-size: .75rem; }
.sa-contact-form .gform_wrapper .gform_footer { margin-top: 1.75rem; padding: 0; }
.sa-contact-form .gform_wrapper .gform_footer .gform_button { min-width: 190px; background-color: var(--sa-wine) !important; border-color: var(--sa-wine) !important; }
.sa-contact-form .gform_wrapper .gform_footer .gform_button:hover { background-color: var(--sa-deep) !important; border-color: var(--sa-deep) !important; }
.sa-contact-form .gform_confirmation_message { font: 1.4rem/1.4 var(--wp--preset--font-family--display), Georgia, serif; color: var(--sa-wine); }
@media (max-width: 800px) {
	.sa-contact-form #gform_wrapper_1.gform-theme { box-shadow: 0 0 0 4px var(--sa-cream), 0 0 0 5px #70292522; }
}


/* Footer: collective badge, three columns, centred sign-off. */
.sa-footer { background: var(--sa-deep); color: var(--sa-cream); padding: 4.5rem 1.5rem 2rem; }
.sa-footer a { color: var(--sa-cream); text-decoration: none; }
.sa-footer a:hover { text-decoration: underline; }
.sa-footer p { margin: 0; font-size: .9rem; line-height: 1.7; }
.sa-footer h3 { margin: 0 0 .75rem; color: #e9d9bdcc; font: 500 .7rem/1.2 var(--wp--preset--font-family--body), sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.sa-footer p + h3 { margin-top: 1.5rem; }
.sa-footer p + p { margin-top: .75rem; }
.sa-footer-collective { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: min(100%, 1200px); margin: 0 auto; padding-bottom: 3rem; border-bottom: 1px solid #fff4; text-align: center; }
.sa-footer-collective p { font: italic 1.1rem/1.1 var(--wp--preset--font-family--display), Georgia, serif; }
.sa-footer-collective .sa-collective-logo { margin: 0; }
.sa-footer-collective .sa-collective-logo img { display: block; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.sa-footer-inner { width: min(100%, 1200px); margin: 0 auto; padding: 3rem 0; border-bottom: 1px solid #fff4; display: grid; grid-template-columns: 40% 25% 1fr; gap: 0; }
.sa-footer-logo { width: fit-content; max-width: 100%; margin: 0; background: var(--sa-cream); padding: 1rem .85rem .75rem; border: 1px solid var(--sa-gold); border-radius: 5rem 5rem .2rem .2rem; outline: 1px solid #d69d3d55; outline-offset: 5px; }
.sa-footer-logo img { display: block; }
.sa-footer-nav { gap: .35rem; }
.sa-footer-nav .wp-block-navigation-item__content { color: var(--sa-cream); font-size: .9rem; font-weight: 700; }
.sa-footer-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--sa-gold); }
.sa-footer-bottom { width: min(100%, 1200px); margin: 1.5rem auto 0 !important; text-align: center; font-size: .75rem !important; font-weight: 700; letter-spacing: .05em; opacity: .7; }
@media (max-width: 800px) { .sa-footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } .sa-footer-inner > :first-child { grid-column: 1 / -1; } }
@media (max-width: 540px) { .sa-footer-inner { grid-template-columns: 1fr; } }

/* Sticky, slimmer header. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; }
.sa-header { box-shadow: 0 2px 12px #3b211d14; }
.sa-header-logo { margin: 0; }
@media (max-width: 600px) { .wp-site-blocks > header.wp-block-template-part { top: 0; } }

/* Image-only gallery pattern (Menus, Events). */
.sa-frames-gallery { padding-block: 2.5rem 1.5rem; }
.sa-frames-gallery .sa-frame-ticker:not(.is-editor) { margin-block: 0; }
.sa-frames-gallery .sa-frame-ticker:not(.is-editor) .text-ticker-container { min-height: 370px; }
/* Gallery continues the colour of the section above it. */
.sa-section + .sa-frames-gallery { background: var(--sa-cream); }
.sa-tint + .sa-frames-gallery { background: #f2e7d4; }
.sa-burgundy + .sa-frames-gallery { background: var(--sa-wine); }
.sa-events-list + .sa-frames-gallery { background: #f0e4d0; }
.sa-section + .sa-frames-gallery { padding-top: 0; }
.sa-section:has(+ .sa-frames-gallery) { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 540px) { .sa-header-inner { width: min(100% - 2rem, 1200px); } }

/* Mobile menu overlay: big, full-width tap targets with keylines. */
.sa-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem 1.5rem 2rem; }
.sa-nav .is-menu-open .wp-block-navigation__responsive-close { width: 100%; }
.sa-nav .is-menu-open .wp-block-navigation__responsive-container-close { padding: .5rem; }
.sa-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
.sa-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 3.5rem !important; }
.sa-nav .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; border-top: 1px solid #702b2730; }
.sa-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid #702b2730; }
.sa-nav .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 1.1rem .25rem !important; text-align: center; font: 500 2rem/1.1 var(--wp--preset--font-family--display), Georgia, serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--sa-wine); }
.sa-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { text-decoration: none; color: var(--sa-gold); }
.sa-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.sa-nav .wp-block-navigation__responsive-container-open { padding: .4rem; margin-right: -.4rem; }

/* Contact page Google map. */
.sa-map { margin-top: clamp(2.5rem, 5vw, 4rem); overflow: hidden; border: 1px solid #702b2730; }
.sa-map iframe { display: block; width: 100%; height: 450px; }
@media (max-width: 600px) { .sa-map iframe { height: 340px; } }
