/* ==========================================================================
   Toastie Foods — theme styles
   ========================================================================== */

:root {
	/*
	 * --tf-primary is the brand colour. --tf-green is kept as an alias because
	 * the plugin stylesheet and older rules still reference it; both resolve to
	 * whatever the admin picks in Customizer → Brand Colours.
	 */
	--tf-primary: #e02b20;
	--tf-green: var(--tf-primary);
	--tf-primary-soft: rgba(224, 43, 32, 0.10);
	--tf-primary-tint: rgba(224, 43, 32, 0.14);
	--tf-primary-ring: rgba(224, 43, 32, 0.20);
	--tf-red: #a81b12;
	--tf-gold: #f6a01a;
	--tf-ink: #10120f;
	--tf-ink-soft: #1d211c;
	--tf-body: #4a5250;
	--tf-line: #e6e8e4;
	--tf-bg: #ffffff;
	--tf-bg-alt: #f7f8f5;
	--tf-radius: 14px;
	--tf-shadow: 0 18px 45px rgba(16, 18, 15, 0.09);
	--tf-heading-font: "Bricolage Grotesque", "Proxima Nova", "Mulish", ui-sans-serif, system-ui, sans-serif;
	--tf-body-font: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tf-wrap: 1200px;

	/* Surfaces that need to invert in dark mode. */
	--tf-card: #ffffff;
	--tf-header: rgba(255, 255, 255, 0.96);
	--tf-footer: #10120f;
}

/*
 * Dark mode. The palette is desaturated rather than simply inverted, so the
 * brand green stays legible against dark surfaces. `data-theme` is written by
 * the toggle and wins over the system preference in both directions.
 */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--tf-ink: #f2f4f0;
		--tf-ink-soft: #dfe3dc;
		--tf-body: #b3bcb6;
		--tf-line: #2c322d;
		--tf-bg: #111412;
		--tf-bg-alt: #181c19;
		--tf-card: #181c19;
		--tf-header: rgba(17, 20, 18, 0.96);
		--tf-footer: #0b0d0b;
		--tf-primary: #ff6a5e;
		--tf-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
	}
}

:root[data-theme="dark"] {
	--tf-ink: #f2f4f0;
	--tf-ink-soft: #dfe3dc;
	--tf-body: #b3bcb6;
	--tf-line: #2c322d;
	--tf-bg: #111412;
	--tf-bg-alt: #181c19;
	--tf-card: #181c19;
	--tf-header: rgba(17, 20, 18, 0.96);
	--tf-footer: #0b0d0b;
	--tf-primary: #ff6a5e;
	--tf-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

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

body {
	margin: 0;
	font-family: var(--tf-body-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--tf-body);
	background: var(--tf-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--tf-green); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { color: var(--tf-red); }

h1, h2, h3, h4, h5, h6 { font-family: var(--tf-heading-font); color: var(--tf-ink); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }

:focus-visible { outline: 3px solid var(--tf-gold); outline-offset: 3px; }

/* ---------- Layout helpers ---------- */

.tf-wrap { width: 100%; max-width: var(--tf-wrap); margin: 0 auto; padding: 0 22px; }
.tf-section { padding: clamp(56px, 8vw, 104px) 0; }
.tf-section--alt { background: var(--tf-bg-alt); }
/*
 * A deliberately dark band. It must stay dark in BOTH colour schemes, so it
 * uses the always-dark footer token rather than --tf-ink (which flips light in
 * dark mode and turned this section white-on-white).
 */
.tf-section--dark { background: var(--tf-footer); color: rgba(255, 255, 255, 0.78); }
.tf-section--dark h1, .tf-section--dark h2, .tf-section--dark h3, .tf-section--dark h4 { color: #fff; }
/* Plain links go gold; buttons keep their own colours (:not excludes them). */
.tf-section--dark a:not(.tf-btn) { color: var(--tf-gold); }

.tf-section-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 60px); text-align: center; }

.tf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--tf-body-font);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tf-green);
	margin-bottom: 12px;
}

.tf-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--tf-gold); }
.tf-section-head .tf-eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--tf-gold); }

.tf-grid { display: grid; gap: 26px; }
.tf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tf-grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tf-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Buttons ---------- */

.tf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 14px 30px;
	border: 2px solid var(--tf-green);
	border-radius: 50px;
	background: var(--tf-green);
	color: #fff;
	font-family: var(--tf-body-font);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tf-btn:hover, .tf-btn:focus { background: var(--tf-red); border-color: var(--tf-red); color: #fff; transform: translateY(-2px); }

.tf-btn--ghost { background: transparent; color: var(--tf-ink); }
.tf-section--dark .tf-btn--ghost, .tf-hero .tf-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }

/* Gold is a light surface in both schemes, so the label must stay fixed dark —
 * var(--tf-ink) flips to near-white in dark mode and made the text disappear. */
.tf-btn--gold { background: var(--tf-gold); border-color: var(--tf-gold); color: #10120f; }
.tf-btn--gold:hover { background: var(--tf-red); border-color: var(--tf-red); color: #fff; }

.tf-btn--sm { padding: 10px 20px; font-size: 0.72rem; }

/* ---------- Top bar ---------- */

.tf-topbar { background: var(--tf-ink); color: rgba(255, 255, 255, 0.72); font-size: 0.83rem; }

.tf-topbar .tf-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 26px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.tf-topbar__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.tf-topbar a { color: rgba(255, 255, 255, 0.82); }
.tf-topbar a:hover { color: var(--tf-gold); }

/* ---------- Social buttons ---------- */

.tf-social { display: flex; align-items: center; gap: 9px; list-style: none; margin: 0; padding: 0; }

.tf-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.tf-social a:hover, .tf-social a:focus { background: var(--tf-gold); color: var(--tf-ink); transform: translateY(-2px); }
.tf-social svg { width: 16px; height: 16px; fill: currentColor; }
.tf-social--light a { background: rgba(16, 18, 15, 0.06); color: var(--tf-ink); }
.tf-social--lg a { width: 44px; height: 44px; }
.tf-social--lg svg { width: 19px; height: 19px; }

.tf-social-float {
	position: fixed;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 850;
	flex-direction: column;
	background: var(--tf-card);
	padding: 10px 7px;
	border-radius: 40px;
	box-shadow: var(--tf-shadow);
}

@media (max-width: 900px) { .tf-social-float { display: none; } }

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

.tf-header { position: sticky; top: 0; z-index: 900; background: var(--tf-card); border-bottom: 1px solid var(--tf-line); transition: box-shadow 0.25s ease; }
.tf-header.is-stuck { box-shadow: 0 8px 28px rgba(16, 18, 15, 0.09); }
.tf-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }

.tf-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tf-brand img { max-height: 62px; width: auto; border-radius: 8px; }
.tf-brand__text .tf-brand__name { font-family: var(--tf-heading-font); font-size: 1.35rem; font-weight: 700; color: var(--tf-ink); line-height: 1.1; display: block; }
.tf-brand__text .tf-brand__tag { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tf-green); }

.tf-header__actions { display: flex; align-items: center; gap: 14px; }

.tf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.tf-nav li { position: relative; }

.tf-nav a { display: block; padding: 10px 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tf-ink); }
.tf-nav a:hover, .tf-nav .current-menu-item > a, .tf-nav .current_page_item > a { color: var(--tf-green); }

.tf-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: var(--tf-card);
	border-radius: 10px;
	box-shadow: var(--tf-shadow);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.tf-nav li:hover > .sub-menu, .tf-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.tf-nav .sub-menu a { padding: 9px 18px; text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; font-weight: 500; }
.tf-nav .sub-menu .sub-menu { top: 0; left: 100%; }

.tf-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--tf-line);
	border-radius: 10px;
	background: var(--tf-card);
	cursor: pointer;
}

.tf-nav-toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--tf-ink); transition: transform 0.25s ease, opacity 0.2s ease; }
.tf-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tf-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tf-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
	.tf-nav-toggle { display: flex; }

	/* Full-screen panel, so nothing of the page shows through beside it. */
	.tf-nav {
		position: fixed;
		inset: 0;
		width: 100%;
		display: flex;
		flex-direction: column;
		background: var(--tf-card, #fff);
		padding: 20px 22px 32px;
		overflow-y: auto;
		/* Clear the fixed header, and respect the notch / gesture bar. */
		padding-top: max(84px, calc(env(safe-area-inset-top) + 74px));
		padding-bottom: max(32px, env(safe-area-inset-bottom));
		transform: translateX(100%);
		transition: transform 0.3s ease;
		z-index: 950;
	}

	.tf-nav.is-open { transform: translateX(0); }
	.tf-nav ul { flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; width: 100%; }
	.tf-nav li { border-bottom: 1px solid var(--tf-line); }

	/* Compact, left-aligned rows. */
	.tf-nav a {
		display: flex;
		align-items: center;
		padding: 13px 2px;
		font-family: var(--tf-heading-font);
		font-size: 0.95rem;
		font-weight: 600;
		color: var(--tf-ink);
	}

	.tf-nav .current-menu-item > a,
	.tf-nav .current_page_item > a { color: var(--tf-primary); }

	/* Submenus indent slightly and read smaller. */
	.tf-nav .sub-menu a { padding-left: 16px; font-size: 0.88rem; font-weight: 500; }

	/*
	 * The panel is full width, so it would otherwise cover the header's own
	 * controls. Lifting the actions above it keeps the close button and the
	 * theme switch reachable while the menu is open.
	 */
	.tf-header__actions { position: relative; z-index: 960; }

	.tf-brand { position: relative; z-index: 960; }

	/* Hide the logo while the full-screen menu is open. */
	body.tf-nav-open .tf-brand { opacity: 0; visibility: hidden; }

	.tf-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 16px; }

	/*
	 * Sits below the header (z-index 900) so it can never paint over the
	 * full-screen menu panel, which lives inside the header.
	 */
	.tf-nav-backdrop {
		position: fixed;
		inset: 0;
		background: rgba(16, 18, 15, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s;
		z-index: 890;
	}

	.tf-nav-backdrop.is-open { opacity: 1; visibility: visible; }
	.tf-header__actions .tf-btn { display: none; }
}

/* ---------- Hero (full-width banner) ---------- */

.tf-hero { position: relative; display: flex; align-items: center; min-height: clamp(460px, 78vh, 720px); background: var(--tf-ink) center/cover no-repeat; color: #fff; overflow: hidden; }
.tf-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16, 18, 15, 0.92) 0%, rgba(16, 18, 15, 0.72) 45%, rgba(16, 18, 15, 0.35) 100%); }

.tf-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.tf-hero__inner { position: relative; z-index: 2; max-width: 640px; padding-top: 70px; padding-bottom: 70px; }
.tf-hero h1 { color: #fff; margin-bottom: 18px; }
.tf-hero p { font-size: 1.08rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 30px; }
.tf-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero: text + image accordion ---------- */

/*
 * Brand hero. The background is a gradient between two shades of the brand
 * colour, generated in PHP from whatever the admin picks, so this stays on
 * brand if the colour changes. Everything inside is re-tuned for contrast on a
 * saturated background — plain body/link colours are unreadable there.
 */
.tf-hero-split {
	position: relative;
	padding: clamp(44px, 6vw, 90px) 0;
	background: linear-gradient(135deg, var(--tf-primary, #e02b20) 0%, var(--tf-primary-deep, #9d1e16) 100%);
	color: rgba(255, 255, 255, 0.9);
	overflow: hidden;
}

/* A soft highlight behind the headline keeps the red from reading as flat. */
.tf-hero-split::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 18% 22%, var(--tf-primary-light, #e54d44) 0%, transparent 58%);
	opacity: 0.5;
	pointer-events: none;
}

/* Admin-supplied image blended over the brand background (opacity is inline). */
.tf-hero-split__overlay {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 0;
}

.tf-hero-split__inner { position: relative; z-index: 1; }

.tf-hero-split__title,
.tf-hero-split h1 { color: #fff; }

.tf-hero-split__lede { color: rgba(255, 255, 255, 0.9); }

/* Gold reads clearly on red; the brand green never did. */
.tf-hero-split .tf-eyebrow { color: var(--tf-gold); }
.tf-hero-split .tf-eyebrow::before,
.tf-hero-split .tf-eyebrow::after { background: var(--tf-gold); }

/* Solid white primary button — red on red has almost no contrast. */
.tf-hero-split .tf-btn {
	background: #fff;
	border-color: #fff;
	color: var(--tf-primary, #e02b20);
}

.tf-hero-split .tf-btn:hover,
.tf-hero-split .tf-btn:focus {
	background: var(--tf-gold);
	border-color: var(--tf-gold);
	color: var(--tf-ink);
}

.tf-hero-split .tf-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.tf-hero-split .tf-btn--ghost:hover,
.tf-hero-split .tf-btn--ghost:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

.tf-hero-split :focus-visible { outline-color: #fff; }
.tf-hero-split__inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 56px); }

@media (min-width: 992px) { .tf-hero-split__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

.tf-hero-split__title { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px; }
.tf-hero-split__lede { font-size: 1.08rem; max-width: 34em; margin-bottom: 28px; }
.tf-hero-split__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tf-hero-split__phone { margin-top: 20px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }

/* Gold, not the brand colour — a red link on a red background disappears. */
.tf-hero-split__phone a { font-weight: 700; color: var(--tf-gold); }
.tf-hero-split__phone a:hover,
.tf-hero-split__phone a:focus { color: #fff; text-decoration: underline; }

.tf-accordion { display: flex; flex-direction: row; align-items: stretch; gap: 12px; height: clamp(360px, 52vh, 460px); }

/*
 * Panels animate on flex-grow against a zero basis. Growing from a fixed pixel
 * basis to `auto` does not animate (auto is not interpolable), so the panel
 * would snap. min-width keeps collapsed panels tappable.
 */
.tf-accordion__panel {
	position: relative;
	flex: 1 1 0%;
	min-width: 62px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 18px;
	background-color: var(--tf-ink);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	cursor: pointer;
	overflow: hidden;
	transition: flex-grow 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-accordion__panel::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(16, 18, 15, 0.72) 0%, rgba(16, 18, 15, 0.25) 45%, rgba(16, 18, 15, 0.12) 100%);
	transition: background 0.4s ease;
}

.tf-accordion__panel.is-active { flex-grow: 5; }
.tf-accordion__panel:focus-visible { outline: 3px solid var(--tf-gold); outline-offset: 3px; }

.tf-accordion__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* Collapsed captions read bottom-to-top via writing-mode (no rotate clip). */
.tf-accordion__caption {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	max-height: calc(100% - 60px);
	padding: 0 4px;
	font-family: var(--tf-heading-font);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fff;
	text-shadow: 0 1px 12px rgba(16, 18, 15, 0.5);
	transition: font-size 0.35s ease;
}

.tf-accordion__panel.is-active .tf-accordion__caption {
	writing-mode: horizontal-tb;
	transform: none;
	bottom: 26px;
	max-height: none;
	font-size: 1.35rem;
}

.tf-accordion__link {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: -40px;
	transform: translateX(-50%);
	opacity: 0;
	transition: opacity 0.3s ease 0.15s, bottom 0.3s ease 0.15s;
}

.tf-accordion__link a {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--tf-ink);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.tf-accordion__link a:hover { background: var(--tf-gold); }
.tf-accordion__panel.is-active .tf-accordion__link { bottom: 68px; opacity: 1; }

@media (max-width: 991px) {
	.tf-accordion { height: 340px; gap: 10px; }
	.tf-accordion__panel { min-width: 54px; }
	.tf-accordion__caption { font-size: 0.9rem; }
}

/* Mobile: the accordion becomes a swipeable, auto-advancing carousel. */
@media (max-width: 768px) {
	.tf-accordion {
		height: 330px;
		gap: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		border-radius: 18px;
	}

	.tf-accordion::-webkit-scrollbar { display: none; }

	.tf-accordion__panel,
	.tf-accordion__panel.is-active {
		flex: 0 0 100%;
		min-width: 0;
		width: 100%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
		border-radius: 18px;
		transition: none;
	}

	.tf-accordion__caption,
	.tf-accordion__panel.is-active .tf-accordion__caption {
		writing-mode: horizontal-tb;
		transform: none;
		max-height: none;
		bottom: 68px;
		font-size: 1.35rem;
	}

	.tf-accordion__link,
	.tf-accordion__panel.is-active .tf-accordion__link { bottom: 24px; opacity: 1; }

	.tf-accordion-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
	.tf-accordion-nav[hidden] { display: flex; }
}

.tf-accordion-nav { display: none; }

.tf-accordion-nav__arrow {
	width: 40px;
	height: 40px;
	border: 1px solid var(--tf-line);
	border-radius: 50%;
	background: var(--tf-card);
	color: var(--tf-ink);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tf-accordion-nav__arrow:hover { background: var(--tf-green); border-color: var(--tf-green); color: #fff; }
.tf-accordion-nav__dots { display: flex; align-items: center; gap: 8px; }

.tf-accordion-nav__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tf-line);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.tf-accordion-nav__dot.is-active { width: 26px; border-radius: 6px; background: var(--tf-green); }

/* Page banner for interior pages */

.tf-banner { position: relative; background: var(--tf-green) center/cover no-repeat; color: #fff; text-align: center; padding: clamp(52px, 8vw, 86px) 0; }
.tf-banner::after { content: ""; position: absolute; inset: 0; background: rgba(16, 18, 15, 0.55); }
.tf-banner .tf-wrap { position: relative; z-index: 2; }
.tf-banner h1 { color: #fff; margin-bottom: 8px; }

.tf-breadcrumbs { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }
.tf-breadcrumbs a { color: #fff; }
.tf-breadcrumbs span + span::before { content: " / "; opacity: 0.6; }

/* ---------- Cards ---------- */

.tf-card { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: var(--tf-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.tf-card:hover { transform: translateY(-5px); box-shadow: var(--tf-shadow); }
.tf-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--tf-bg-alt); overflow: hidden; }
.tf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tf-card:hover .tf-card__media img { transform: scale(1.06); }
.tf-card__badge { position: absolute; top: 14px; left: 14px; background: var(--tf-gold); color: var(--tf-ink); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 30px; }
.tf-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.tf-card__body h3 { margin-bottom: 8px; }
.tf-card__body p { font-size: 0.95rem; }
.tf-card__foot { margin-top: auto; padding-top: 14px; }

/* Feature blocks */

.tf-feature { text-align: center; padding: 30px 22px; }
.tf-feature__icon { width: 68px; height: 68px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tf-primary-soft); color: var(--tf-green); font-size: 1.6rem; }

/* Stats */

.tf-stat { text-align: center; }
.tf-stat__num { font-family: var(--tf-heading-font); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--tf-gold); line-height: 1; display: block; }
.tf-stat__label { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 10px; display: block; }

/* Split media/text block */

.tf-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 5vw, 60px); align-items: center; }
.tf-split__media img { border-radius: var(--tf-radius); width: 100%; }

/* Locations */

.tf-location { background: var(--tf-card); border: 1px solid var(--tf-line); border-left: 4px solid var(--tf-green); border-radius: var(--tf-radius); padding: 26px; }
.tf-location h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tf-location p { margin-bottom: 8px; font-size: 0.96rem; }

/* Testimonials */

.tf-quote { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: var(--tf-radius); padding: 28px; }
.tf-quote__stars { color: var(--tf-gold); letter-spacing: 2px; margin-bottom: 10px; }
.tf-quote__author { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-weight: 700; color: var(--tf-ink); }

/* ---------- Footer ---------- */

/* --tf-footer stays dark in both schemes; --tf-ink flips light in dark mode. */
.tf-footer { background: var(--tf-footer); color: rgba(255, 255, 255, 0.68); padding-top: clamp(50px, 7vw, 84px); font-size: 0.95rem; }
.tf-footer h3, .tf-footer .widget-title { color: #fff; font-size: 1.05rem; letter-spacing: 0.06em; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.tf-footer h3::after, .tf-footer .widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 2px; background: var(--tf-gold); }
.tf-footer a { color: rgba(255, 255, 255, 0.72); }
.tf-footer a:hover { color: var(--tf-gold); }
.tf-footer ul { list-style: none; margin: 0; padding: 0; }
.tf-footer li { margin-bottom: 9px; }
.tf-footer__brand img { max-height: 74px; margin-bottom: 18px; border-radius: 8px; }
.tf-footer__bottom { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.86rem; }

/* Back to top */

.tf-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--tf-green);
	color: #fff;
	font-size: 1.1rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
	z-index: 860;
}

.tf-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tf-to-top:hover { background: var(--tf-red); }

/* ---------- Content / posts ---------- */

.tf-content { max-width: 820px; }
.tf-content img { border-radius: var(--tf-radius); }
.tf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.tf-layout--sidebar { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 992px) { .tf-layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; } }

.tf-entry-meta { font-size: 0.86rem; letter-spacing: 0.04em; margin-bottom: 16px; color: var(--tf-body); }

.tf-sidebar .widget { background: var(--tf-bg-alt); border-radius: var(--tf-radius); padding: 24px; margin-bottom: 24px; }
.tf-sidebar .widget-title { font-family: var(--tf-heading-font); font-size: 1.15rem; color: var(--tf-ink); margin-bottom: 14px; }
.tf-sidebar ul { list-style: none; margin: 0; padding: 0; }
.tf-sidebar li { margin-bottom: 9px; }

.tf-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tf-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--tf-line); border-radius: 8px; color: var(--tf-ink); font-weight: 600; }
.tf-pagination .page-numbers.current, .tf-pagination .page-numbers:hover { background: var(--tf-green); border-color: var(--tf-green); color: #fff; }

/* Forms */

input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], input[type="password"], select, textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--tf-line);
	border-radius: 10px;
	background: var(--tf-card);
	font-family: inherit;
	font-size: 1rem;
	color: var(--tf-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus { border-color: var(--tf-green); box-shadow: 0 0 0 3px var(--tf-primary-ring); outline: none; }

label { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; color: var(--tf-ink); margin-bottom: 7px; }

.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--tf-line); padding: 18px 0; }

/* WordPress core alignment classes */

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 0 auto 1.5em; }
.alignwide { max-width: min(1100px, 96vw); margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }

.wp-caption-text, .wp-block-image figcaption { font-size: 0.85rem; text-align: center; color: var(--tf-body); }
.sticky .tf-card { border-color: var(--tf-gold); }

.tf-empty { background: var(--tf-bg-alt); border-radius: var(--tf-radius); padding: 40px; text-align: center; }

/* ---------- Motion ---------- */

.tf-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.tf-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.tf-reveal { opacity: 1; transform: none; }
}

/* ---------- Small screens ---------- */

/* Hide the top contact bar on phones/tablets to reclaim vertical space. */
@media (max-width: 768px) {
	.tf-topbar { display: none; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.tf-brand img { max-height: 48px; }
	.tf-hero__actions .tf-btn,
	.tf-hero-split__actions .tf-btn { width: 100%; }
	.tf-footer__bottom { justify-content: center; text-align: center; }

	/* Keep everything inside the viewport. */
	.tf-wrap { padding-left: 18px; padding-right: 18px; }
	.tf-split { gap: 26px; }
	.tf-grid { gap: 18px; }
}

/* ---------- Mobile safeguards ----------
 * Blanket rules so no single wide element can force the page to scroll
 * sideways, which is the most common way a responsive layout breaks.
 */

img,
video,
iframe,
embed,
object { max-width: 100%; }

img,
video { height: auto; }

@media (max-width: 782px) {
	/* Nothing may push the document wider than the screen. */
	html,
	body { max-width: 100%; overflow-x: hidden; }

	/* Long words and URLs wrap instead of stretching their container. */
	body { overflow-wrap: break-word; word-wrap: break-word; }

	/* Wide content scrolls inside itself rather than widening the page. */
	.tf-content table,
	.tf-content pre { display: block; max-width: 100%; overflow-x: auto; }

	/* 16px minimum stops iOS zooming in when a field is focused. */
	input,
	select,
	textarea { font-size: 16px; }

	/* Comfortable tap targets throughout. */
	.tf-btn,
	.tf-nav a,
	button { min-height: 44px; }

	.tf-section { padding: 52px 0; }
	h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
	h2 { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
}

/* ---------- Light / dark mode toggle ---------- */

.tf-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--tf-line);
	border-radius: 50%;
	background: transparent;
	color: var(--tf-ink);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tf-theme-toggle:hover {
	border-color: var(--tf-green);
	color: var(--tf-green);
}

.tf-theme-toggle:focus-visible {
	outline: 3px solid var(--tf-gold);
	outline-offset: 2px;
}

.tf-theme-toggle svg { width: 19px; height: 19px; }

/* Show the icon for the mode you would switch *to*. */
.tf-theme-toggle__moon { display: none; }
.tf-theme-toggle[aria-pressed="true"] .tf-theme-toggle__sun { display: none; }
.tf-theme-toggle[aria-pressed="true"] .tf-theme-toggle__moon { display: block; }

/* Surfaces that must follow the scheme rather than stay hard-coded white. */
:root[data-theme="dark"] .tf-header,
:root[data-theme="dark"] .tf-card,
:root[data-theme="dark"] .fmos-card,
:root[data-theme="dark"] .fmos-summary,
:root[data-theme="dark"] .fmos-modal__content,
:root[data-theme="dark"] .fmos-service,
:root[data-theme="dark"] .fmos-event,
:root[data-theme="dark"] .fmos-size,
:root[data-theme="dark"] .fmos-select,
:root[data-theme="dark"] .fmos-search,
:root[data-theme="dark"] .fmos-input,
:root[data-theme="dark"] .fmos-field input,
:root[data-theme="dark"] .fmos-field select,
:root[data-theme="dark"] .fmos-field textarea,
:root[data-theme="dark"] .fmos-qty,
:root[data-theme="dark"] .fmos-qty input,
:root[data-theme="dark"] .fmos-qty__btn {
	background-color: var(--tf-card);
	color: var(--tf-ink);
	border-color: var(--tf-line);
}

:root[data-theme="dark"] .fmos-modal__actionbar { background: var(--tf-bg-alt); }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .tf-header,
	:root:not([data-theme="light"]) .tf-card,
	:root:not([data-theme="light"]) .fmos-card,
	:root:not([data-theme="light"]) .fmos-summary,
	:root:not([data-theme="light"]) .fmos-modal__content,
	:root:not([data-theme="light"]) .fmos-service,
	:root:not([data-theme="light"]) .fmos-event,
	:root:not([data-theme="light"]) .fmos-size,
	:root:not([data-theme="light"]) .fmos-select,
	:root:not([data-theme="light"]) .fmos-search,
	:root:not([data-theme="light"]) .fmos-input,
	:root:not([data-theme="light"]) .fmos-field input,
	:root:not([data-theme="light"]) .fmos-field select,
	:root:not([data-theme="light"]) .fmos-field textarea,
	:root:not([data-theme="light"]) .fmos-qty,
	:root:not([data-theme="light"]) .fmos-qty input,
	:root:not([data-theme="light"]) .fmos-qty__btn {
		background-color: var(--tf-card);
		color: var(--tf-ink);
		border-color: var(--tf-line);
	}
}

/* ---------- Animated edge line on the active menu card ---------- */

@property --tf-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

/*
 * A light travels the card's edge while it is hovered, focused or open. The
 * gradient is masked to the border only, so the card face stays untouched.
 */
.fmos-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: transparent;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	box-shadow: none;
}

.fmos-card:hover::after,
.fmos-card:focus-visible::after,
.fmos-card.is-active::after {
	opacity: 1;
	background: conic-gradient(
		from var(--tf-angle),
		transparent 0deg,
		var(--tf-primary, #e02b20) 40deg,
		var(--tf-gold, #f6a01a) 70deg,
		transparent 110deg,
		transparent 360deg
	);
	animation: tf-edge 2.6s linear infinite;
}

@keyframes tf-edge {
	to { --tf-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
	.fmos-card:hover::after,
	.fmos-card:focus-visible::after,
	.fmos-card.is-active::after {
		animation: none;
		background: var(--tf-primary, #e02b20);
	}
}

/* Banner video sits under the dark scrim, above the background image. */
.tf-banner__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* ---------- Decorative floating food ---------- */

.tf-float {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

/*
 * Content sits above the artwork.
 *
 * The header is deliberately NOT listed here. It already carries
 * `position: sticky; z-index: 900`, which is well clear of the artwork — and
 * giving it `z-index: 1` would open a stacking context that traps the mobile
 * navigation panel (fixed, z-index 950) inside it, leaving the menu stranded
 * behind the backdrop and unclickable.
 */
.tf-main,
.tf-topbar,
.tf-footer { position: relative; z-index: 1; }

.tf-float__item {
	position: absolute;
	width: clamp(120px, 16vw, 230px);
	opacity: 0.22;
	filter: blur(6px);
	will-change: transform;
	animation: tf-drift 26s ease-in-out infinite alternate;
}

:root[data-theme="dark"] .tf-float__item { opacity: 0.16; }

.tf-float__item--1 { top: 6%;  left: -3%;  animation-duration: 24s; }
.tf-float__item--2 { top: 34%; right: -4%; animation-duration: 31s; animation-delay: -6s; filter: blur(8px); }
.tf-float__item--3 { top: 63%; left: 4%;   animation-duration: 28s; animation-delay: -12s; }
.tf-float__item--4 { top: 12%; right: 12%; animation-duration: 35s; animation-delay: -3s; filter: blur(9px); opacity: 0.16; }
.tf-float__item--5 { top: 82%; right: 8%;  animation-duration: 30s; animation-delay: -18s; }

@keyframes tf-drift {
	from { transform: translate3d(0, 0, 0) rotate(-6deg); }
	to   { transform: translate3d(26px, -38px, 0) rotate(8deg); }
}

@media (max-width: 768px) {
	/* Fewer, smaller shapes so phones are not doing needless paint work. */
	.tf-float__item--2,
	.tf-float__item--4 { display: none; }
	.tf-float__item { opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
	.tf-float__item { animation: none; }
}

/* ---------- Food icon background pattern ---------- */

/*
 * A tiled line-art pattern (fork, leaf, pepper) drawn as an inline SVG data URI
 * so it costs no extra request. Applied to alternating sections so pages read
 * as textured rather than plain white.
 */
.tf-has-pattern .tf-pattern,
.tf-has-pattern .tf-section--alt {
	position: relative;
	background-image: var(--tf-pattern, none);
	background-size: var(--tf-pattern-size, 240px) var(--tf-pattern-size, 240px);
	background-repeat: repeat;
}

.tf-has-pattern .tf-pattern--soft { background-size: 300px 300px; }

/* Keep the pattern from fighting the text in dark mode. */
:root[data-theme="dark"] .tf-has-pattern .tf-pattern,
:root[data-theme="dark"] .tf-has-pattern .tf-section--alt { background-blend-mode: soft-light; }

/* ---------- Blog / gallery / shared page furniture ---------- */

.tf-section--tight { padding-top: clamp(34px, 5vw, 56px); padding-bottom: 0; }
.tf-content--narrow { max-width: 780px; margin: 0 auto; }
.tf-rounded { border-radius: var(--tf-radius); }

.tf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.tf-step { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: var(--tf-radius); padding: 28px; }
.tf-step__num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--tf-green); color: #fff; font-weight: 700; margin-bottom: 14px; }
.tf-step h3 { margin-bottom: 8px; }
.tf-step p { margin: 0; }

.tf-card { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: var(--tf-radius); padding: 26px; }

.tf-lead { display: grid; gap: 26px; margin-bottom: 44px; }
@media (min-width: 860px) { .tf-lead { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.tf-lead__media img { width: 100%; border-radius: var(--tf-radius); }
.tf-lead h2 { margin-bottom: 8px; }
.tf-lead h2 a { color: var(--tf-ink); }
.tf-lead h2 a:hover { color: var(--tf-green); }

.tf-postcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tf-postcard__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tf-postcard__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tf-postcard__body h3 { margin: 0; font-size: 1.15rem; }
.tf-postcard__body h3 a { color: var(--tf-ink); }
.tf-postcard__body h3 a:hover { color: var(--tf-green); }
.tf-postcard__body p { margin: 0; font-size: 0.94rem; }

.tf-entry-meta { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--tf-body); opacity: 0.8; }

/* Share buttons */

.tf-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.tf-share__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tf-body); }
.tf-share .tf-social a { width: 36px; height: 36px; }
.tf-share .tf-social svg { width: 15px; height: 15px; }

/* Gallery */

.tf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tf-gallery__item { position: relative; display: block; border-radius: var(--tf-radius); overflow: hidden; aspect-ratio: 1; }
.tf-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tf-gallery__item:hover img { transform: scale(1.06); }
.tf-gallery__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(16, 18, 15, 0.45); color: #fff; opacity: 0; transition: opacity 0.25s ease; }
.tf-gallery__item:hover .tf-gallery__overlay { opacity: 1; }
.tf-gallery__overlay svg { width: 30px; height: 30px; }

.tf-empty { text-align: center; padding: 44px 22px; background: var(--tf-bg-alt); border-radius: var(--tf-radius); }

.tf-cta__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .tf-cta__inner { grid-template-columns: 1.4fr 1fr; } }
.tf-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tf-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.tf-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--tf-line); border-radius: 10px; color: var(--tf-ink); }
.tf-pagination .page-numbers.current { background: var(--tf-green); border-color: var(--tf-green); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.tf-gallery__item img { transition: none; }
}

/* ---------- Contact page ---------- */

.tf-contactcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

.tf-contactcard {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 26px;
	background: var(--tf-card);
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	color: var(--tf-ink);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a.tf-contactcard:hover { transform: translateY(-4px); border-color: var(--tf-green); box-shadow: var(--tf-shadow); color: var(--tf-ink); }

.tf-contactcard__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 10px;
	border-radius: 12px;
	background: var(--tf-primary-tint);
	color: var(--tf-green);
}

.tf-contactcard__icon svg { width: 21px; height: 21px; }
.tf-contactcard__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tf-green); }
.tf-contactcard strong { font-size: 1.05rem; }
.tf-contactcard__alt { font-size: 0.92rem; opacity: 0.75; }

.tf-contact-social { margin-top: 34px; text-align: center; }
.tf-contact-social .tf-social { justify-content: center; }
.tf-location h3 { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
	a.tf-contactcard:hover { transform: none; }
}

/* ---------- Mobile menu footer (contact + social + CTA) ---------- */

/* Only shown inside the slide-in panel on mobile. */
.tf-nav__footer { display: none; }

@media (max-width: 1024px) {
	/* Pinned to the bottom of the panel, below the menu list. */
	.tf-nav__footer {
		display: block;
		margin-top: auto;
		padding-top: 22px;
		border-top: 1px solid var(--tf-line);
	}

	.tf-nav__footer .tf-btn--block { width: 100%; margin-bottom: 16px; }

	.tf-nav__phone {
		display: block;
		font-family: var(--tf-heading-font);
		font-size: 1.15rem;
		font-weight: 700;
		color: var(--tf-ink);
		margin-bottom: 8px;
	}

	.tf-nav__address {
		margin: 0 0 6px;
		font-size: 0.85rem;
		line-height: 1.5;
		color: var(--tf-body);
	}

	/* Social icons kept to a single row, shrinking to fit the panel width. */
	.tf-nav__footer .tf-social {
		margin-top: 16px;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.tf-nav__footer .tf-social a { width: 38px; height: 38px; flex: 0 0 auto; }
	.tf-nav__footer .tf-social svg { width: 16px; height: 16px; }
}

/* ---------- Mobile carousels (testimonials & homepage posts) ---------- */

/*
 * On phones these grids become a horizontally swiped, snapping row so guests
 * flick through cards instead of scrolling a long stack. On desktop they stay
 * a normal grid.
 */
@media (max-width: 768px) {
	.tf-carousel {
		display: flex;
		grid-template-columns: none;
		gap: 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		/* Cards reach the screen edge, hinting there is more to swipe. */
		margin-left: -18px;
		margin-right: -18px;
		padding: 4px 18px 12px;
	}

	.tf-carousel::-webkit-scrollbar { display: none; }

	.tf-carousel > * {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}
}

/* ---------- Article (prev / next) navigation ---------- */

.tf-artnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--tf-line);
}

.tf-artnav__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	background: var(--tf-card);
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	color: var(--tf-ink);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-artnav__link:hover {
	border-color: var(--tf-primary);
	transform: translateY(-3px);
	box-shadow: var(--tf-shadow);
	color: var(--tf-ink);
}

.tf-artnav__link--next { text-align: right; align-items: flex-end; }

.tf-artnav__dir {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tf-primary);
}

.tf-artnav__dir svg { width: 15px; height: 15px; }
.tf-artnav__title { font-family: var(--tf-heading-font); font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--tf-ink); }
.tf-artnav__spacer { display: block; }

@media (max-width: 560px) {
	.tf-artnav { grid-template-columns: 1fr; }
	.tf-artnav__link--next { text-align: left; align-items: flex-start; }
	.tf-artnav__spacer { display: none; }
}

/* ---------- Contact location map cards ---------- */

.tf-location { padding: 0; overflow: hidden; }
.tf-location__map { position: relative; aspect-ratio: 16 / 10; background: var(--tf-bg-alt); }
.tf-location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.95); }
.tf-location__body { padding: 24px 26px 26px; }
.tf-location__body h3 { margin-bottom: 6px; }
.tf-location__body p { margin: 0 0 8px; }

/* Dark mode: soften the bright map a touch so it sits in the page. */
:root[data-theme="dark"] .tf-location__map iframe { filter: saturate(0.9) brightness(0.85); }

/* ---------- Contact page (intro + toggleable map) ---------- */

.tf-contact-top {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(28px, 5vw, 56px);
	align-items: start;
}

@media (min-width: 860px) {
	.tf-contact-top { grid-template-columns: 1.1fr 1fr; }
}

.tf-contact-top__lead h1 { margin-bottom: 16px; }

.tf-contact-top__meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
}

@media (min-width: 520px) {
	.tf-contact-top__meta { grid-template-columns: 1fr 1fr; }
}

.tf-contact-meta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: var(--tf-primary-soft);
	color: var(--tf-primary);
}

.tf-contact-meta__icon svg { width: 22px; height: 22px; }
.tf-contact-meta h3 { font-size: 1.05rem; margin-bottom: 10px; }
.tf-contact-meta p { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.5; }
.tf-contact-meta .tf-social { margin-top: 12px; }

/* Full-width map band */

.tf-contact-mapwrap { position: relative; }

.tf-map-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: var(--tf-wrap);
	margin: 0 auto;
	padding: 0 22px 14px;
}

.tf-map-tab {
	padding: 10px 20px;
	border: 1px solid var(--tf-line);
	border-radius: 50px;
	background: var(--tf-card);
	color: var(--tf-ink);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tf-map-tab:hover { border-color: var(--tf-primary); }
.tf-map-tab.is-active { background: var(--tf-primary); border-color: var(--tf-primary); color: #fff; }
.tf-map-tab:focus-visible { outline: 3px solid var(--tf-gold); outline-offset: 2px; }

.tf-map {
	position: relative;
	height: clamp(340px, 46vw, 520px);
	background: var(--tf-bg-alt);
}

.tf-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
:root[data-theme="dark"] .tf-map iframe { filter: brightness(0.85) saturate(0.9); }

.tf-map__dir {
	position: absolute;
	left: clamp(16px, 4vw, 48px);
	bottom: clamp(16px, 4vw, 40px);
	box-shadow: var(--tf-shadow);
}

@media (max-width: 560px) {
	.tf-map__dir { left: 16px; right: 16px; justify-content: center; }
}
