/*
 * Site footer — handle "tfp-site-footer" (blocks/site-footer/). Solid ink instead of the old photo background:
 * off-white text, yellow headings (yellow is allowed as text on ink, never on light), 1px lines, 4px radius,
 * no shadows or gradients. Hover: colour to yellow and a 2px nudge, both off under reduced motion.
 * Tokens fall back to the live values so the footer never depends on another block's stylesheet.
 */

.site-footer {
	--ft-ink: var(--ind-ink, #0D3556);
	--ft-ink-deep: #0B1E32;   /* the header's darkest ink (site-header.css --ink), Danny 2026-09-25 */
	--ft-yellow: var(--ind-yellow, #FAC410);
	--ft-text: #E2E8F0;
	--ft-muted: rgba(226, 232, 240, .78);
	--ft-line: rgba(255, 255, 255, .14);
	--ft-radius: 4px;
	--ft-mono: var(--ind-mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
	--ft-fade: color .15s ease-out, transform .15s ease-out, border-color .15s ease-out, background-color .15s ease-out;
	background: var(--ft-ink-deep);
	color: var(--ft-text);
	font-size: 15px;
	line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) { .site-footer { --ft-fade: none; } }
.ft-wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding-left: clamp(1rem, 3.5vw, 4rem); padding-right: clamp(1rem, 3.5vw, 4rem); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; padding: 0; }
.site-footer li::before { content: none; }
.site-footer p { margin: 0; }
/* The parent theme colours and underlines links site-wide and sizes a bare svg to 100% wide; the footer sets its own. */
.site-footer a:not(.button) { color: var(--ft-text) !important; text-decoration: none !important; transition: var(--ft-fade); }
.site-footer a:not(.button):hover, .site-footer a:not(.button):focus-visible { color: var(--ft-yellow) !important; }
.site-footer a:focus-visible { outline: 2px solid var(--ft-yellow); outline-offset: 2px; border-radius: 2px; }
.site-footer svg { flex: none; width: 16px; height: 16px; }
.site-footer .ft-social svg { width: 18px; height: 18px; }
.site-footer .ft-acc__icon { width: 18px; height: 18px; }
.site-footer svg.tel-flag { width: 19px; height: 10px; }

/* ---- Pre-footer CTA band ------------------------------------------------ */

.ft-cta { background: var(--ft-ink); border-bottom: 1px solid var(--ft-line); padding: clamp(2.25rem, 4vw, 3.5rem) 0; }
.ft-cta__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; }
.ft-cta__title { margin: 0 0 .4rem; color: #fff; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.ft-cta__copy { max-width: 60ch; color: rgba(255, 255, 255, .86); font-size: 17px; }
.site-footer .ft-cta__btn.button { margin: 0; }
html[data-theme="light"] .ft-cta { background: var(--ft-yellow); border-bottom-color: transparent; }
html[data-theme="light"] .ft-cta__title { color: var(--ft-ink); }
html[data-theme="light"] .ft-cta__copy { color: var(--ind-steel, #204368); }
html[data-theme="light"] .ft-cta__btn.button { background: var(--ft-ink); color: #fff; }   /* no yellow button on the yellow band */

/* ---- Main grid: brand + three link columns + contact -------------------- */

.ft-main { padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.ft-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px)  { .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; } .ft-brand, .ft-contact { grid-column: span 3; } }
@media (min-width: 1100px) { .ft-grid { grid-template-columns: 1.35fr 1fr 1fr 1fr 1.3fr; gap: 2.5rem; } .ft-brand, .ft-contact { grid-column: auto; } }

.ft-heading { margin: 0 0 1rem; color: var(--ft-yellow); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ft-label { margin-top: 1.5rem !important; margin-bottom: .5rem !important; color: var(--ft-muted); font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }

.ft-logo { display: inline-block; line-height: 0; }
.ft-logo img { display: block; width: 160px; height: auto; }
.ft-brand__line { margin-top: 1.25rem !important; max-width: 34ch; color: var(--ft-text); }
.ft-standards { font-family: var(--ft-mono); font-size: 13px; letter-spacing: .02em; color: var(--ft-text); }
.ft-social { display: flex; gap: 8px; }
.ft-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ft-line); border-radius: var(--ft-radius); color: var(--ft-text); }
.ft-social a:hover { border-color: var(--ft-yellow); color: var(--ft-yellow); }

.ft-links li + li { margin-top: .15rem; }
.ft-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ft-text); }
.ft-links a:hover, .ft-links a:focus-visible { color: var(--ft-yellow); transform: translateX(2px); }

/* Link columns are <details>: a plain heading on desktop (site-footer's script keeps them open), accordions under 768px. */
.ft-acc > summary { display: block; list-style: none; cursor: default; }
.ft-acc > summary::-webkit-details-marker { display: none; }
.ft-acc > summary::marker { content: ""; }
.ft-acc__icon { display: none; }
@media (max-width: 767px) {
	.ft-acc { border-top: 1px solid var(--ft-line); }
	.ft-acc:last-of-type { border-bottom: 1px solid var(--ft-line); }
	.ft-grid { gap: 0; }
	.ft-brand { padding-bottom: 2rem; }
	.ft-contact { padding-top: 2rem; }
	.ft-acc > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; }
	.ft-acc .ft-heading { margin: 0; flex: 1 1 auto; }
	.ft-acc__icon { display: block; color: var(--ft-yellow); }
	.ft-acc[open] .ft-acc__v { display: none; }   /* + becomes − */
	.ft-acc .ft-links { padding-bottom: 1rem; }
	.ft-links a { min-height: 44px; }
}

/* ---- Contact: this site's office first ---------------------------------- */

.ft-contact { display: grid; gap: 1.75rem; align-content: start; }
@media (min-width: 768px) and (max-width: 1099px) { .ft-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ft-office .ft-heading { margin-bottom: .75rem; }
.ft-office p { display: flex; align-items: flex-start; gap: 10px; }
.ft-office p + p { margin-top: .5rem; }
.ft-office svg { margin-top: 4px; color: var(--ft-yellow); }
.ft-office a:hover { color: var(--ft-yellow); }
.ft-office__k { color: var(--ft-muted); }
.ft-office__tel a { white-space: nowrap; }
.ft-mono { font-family: var(--ft-mono); letter-spacing: .02em; }
.ft-office__tel a { min-height: 24px; }
.ft-office__site a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 600; }
.ft-office__site .tel-flag { width: 19px; height: 10px; margin-top: 0; outline: 1px solid rgba(255, 255, 255, .25); border-radius: 1px; }

/* ---- Legal bar ---------------------------------------------------------- */

.ft-legal { border-top: 1px solid var(--ft-line); }
.ft-legal__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; color: var(--ft-muted); font-size: 14px; }
.site-footer .ft-legal p, .site-footer .ft-legal a:not(:hover):not(:focus-visible) { color: var(--ft-muted) !important; }
.ft-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.ft-legal a:hover { color: var(--ft-yellow); }
.ft-legal__top { margin-left: auto !important; }
@media (max-width: 767px) { .ft-legal__row { flex-direction: column; align-items: flex-start; gap: 0; } .ft-legal__top { margin-left: 0 !important; } }

/* Desktop type a step smaller (Danny, 2026-09-25). Set on the elements themselves: the parent theme's li / p
   sizes otherwise win over the footer's inherited 15px. Mobile keeps its larger tap-friendly sizes. */
@media (min-width: 1024px) {
	.site-footer .ft-links a,
	.site-footer .ft-office p,
	.site-footer .ft-brand__line { font-size: 14px; line-height: 1.5; }
	.site-footer .ft-links a { min-height: 28px; }
	.site-footer .ft-heading { font-size: 13px; }
	.site-footer .ft-standards { font-size: 12px; }
	.site-footer .ft-legal__row, .site-footer .ft-legal p, .site-footer .ft-legal a { font-size: 13px; }
}
