/* ============================================================================
   Site footer — theme template part, not a block.
   Source: Claude Design/homepage.html L519–578
   Canvas: top 7715px, height 501px

   Column geometry at 1440, read off the comp's vertical rules:
     rail        x85 -> x1355 (1270px)
     rule 1      x389.5   rule 2  x700   rule 3  x1120.5
     zone 1  x85    Contact         (304.5px to rule 1)
     zone 2  x430   Explore & Plan  (two link columns, x430 and x583)
     zone 3  x745   Newsletter      (paragraph 340px wide)
     zone 4  x1148+ Association badges
   ============================================================================ */

.nqc-footer {
	background: var(--nqc-footer-bg);  /* L520 — #211A13 */
	color: var(--nqc-footer-ink);
	padding: 32px 0 0;
}

/*
   The comp's rail is 1270px inside a 1440px page — i.e. an 85px margin either
   side, which is exactly 1270 centred. Adding a gutter INSIDE that rail (as
   this did) narrowed every column by ~144px and wrapped the address and email
   onto extra lines, measuring the footer 163px taller than the comp.
   The gutter only comes back once the viewport is narrower than the rail.
*/
.nqc-footer__inner {
	width: 100%;
	max-width: 1270px;                 /* the comp's rail — 85px margins at 1440 */
	margin-inline: auto;
}

/* 1439.98, not 1440: a `max-width: 1440px` query MATCHES at 1440, so the
   fluid gutter was still shrinking the rail on the comp's own canvas width. */
@media (max-width: 1439.98px) {
	.nqc-footer__inner { padding-inline: var(--nqc-gutter); }
}

.nqc-footer a { color: inherit; text-decoration: none; }
.nqc-footer a:hover { color: var(--nqc-gold); }

/* ---- top row -------------------------------------------------------------- */
.nqc-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 48px;
	padding-bottom: 33px;              /* logo top 32 -> rule 113 */
}

/* display:flex, not block — a block anchor leaves the inline baseline gap under
   the image and measured 68px against the comp's 44px. */
.nqc-footer__logo {
	position: relative;
	display: block;
	width: 235px;                      /* L522 */
	height: 44px;
	overflow: hidden;
	flex: none;
}

/*
   Same story as the hero badge: logo.png is a 311x94 canvas holding 225x39 of
   artwork. `contain` fitted the canvas and drew the wordmark at 145.6px instead
   of the comp's 225px. L523 renders it at natural size (132.34% x 213.636% of
   the 235x44 window) and centres it, so only the transparent margin is clipped.
*/
/* Qualified with the parent: the token reset's `.nqc-block img { max-width:
   100% }` is (0,1,1) and was clamping this back to the 235px window. */
/*
   `fill`, not `cover`. The comp states this as `background-size: 132.34%
   213.636%`, and a background-size percentage STRETCHES the image to exactly
   that box — it does not preserve the aspect ratio. `cover` does preserve it
   and crops the overflow instead, which is the same thing only while the box
   keeps the comp's 235x44 proportions. At 190x44 it stopped agreeing and ate
   29px off each end, cropping the "9" off the wordmark.
*/
.nqc-footer__logo .nqc-footer__logo-img {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 132.34%;                    /* L523 — 311px */
	height: 213.636%;                  /* L523 — 94px */
	max-width: none;
	object-fit: fill;
}

.nqc-footer__social {
	display: flex;
	flex-direction: row;
	gap: 40px;                         /* L525 */
	margin: 0;
	padding: 0;
	list-style: none;
}

.nqc-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;                      /* L526 */
	color: var(--nqc-footer-ink);
	transition: color .25s ease;
}

.nqc-footer__social svg {
	display: block;
	width: 39px;
	height: 39px;                      /* L527 */
}

/* ---- rules ---------------------------------------------------------------- */
.nqc-footer__rule {
	height: 1px;
	background: var(--nqc-footer-rule);   /* L529 */
}

/* ---- columns -------------------------------------------------------------- */
/*
   The comp's four zones become a four-track grid. The 1px vertical rules
   (L532–535) are drawn as column borders so they cannot drift out of
   alignment the way absolutely-positioned rules would.
*/
.nqc-footer__cols {
	display: grid;
	grid-template-columns: 304.5px 310.5px 420.5px minmax(0, 1fr);
	padding-block: 31px 14px;          /* rule 113 -> headings 144 */
	align-items: start;
}

.nqc-footer__col {
	padding-inline: 0 32px;
	min-height: 294px;                 /* L532 — the rule height */
}

.nqc-footer__col + .nqc-footer__col {
	border-left: 1px solid var(--nqc-footer-rule);
	padding-left: 40px;
}

.nqc-footer__h {
	margin: 0 0 20px;
	font: 300 28px/100% var(--nqc-sans);   /* L536 */
	height: 43px;                      /* L536 — a 43px box around 28px type;
	                                      without it each column's content sat
	                                      15px high of the comp */
	color: var(--nqc-gold);
	white-space: nowrap;
}

/* ---- contact -------------------------------------------------------------- */
.nqc-footer__address {
	display: flex;
	flex-direction: column;
	gap: 28px;                         /* lines at 207 / 265 / 320 */
	font-style: normal;                /* <address> italicises by default */
}

.nqc-footer__line {
	display: block;
	font: 400 20px/30px var(--nqc-sans);   /* L540 */
	color: var(--nqc-footer-ink);
	transition: color .25s ease;
}

/* ---- navigation ----------------------------------------------------------- */
.nqc-footer__navs {
	display: flex;
	flex-direction: row;
	gap: 33px;                         /* columns at x430 and x583 */
}

.nqc-footer__nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nqc-footer__nav a {
	display: block;
	font: 400 20px/40.5px var(--nqc-sans);  /* L545 */
	white-space: nowrap;
	transition: color .25s ease;
}

/* ---- newsletter ----------------------------------------------------------- */
.nqc-footer__p {
	margin: 0 0 24px;
	max-width: 340px;                  /* L550 */
	font: 300 16px/26px var(--nqc-sans);
	color: var(--nqc-footer-ink);
}

/*
   The comp gives this button a sheen that sweeps across on hover (L557–565).
   Only transform and opacity animate; `left` drives the sweep inside a clipped
   box, so it never triggers layout on the page.
*/
.nqc-footer__btn {
	position: relative;
	overflow: hidden;
	min-height: 46px;                  /* L554 */
}

.nqc-footer__btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 60%;
	height: 100%;
	background: linear-gradient(100deg,
		rgba(246, 239, 226, 0) 0%,
		rgba(246, 239, 226, .42) 50%,
		rgba(246, 239, 226, 0) 100%);
	transform: skewX(-18deg);
	pointer-events: none;
}

.nqc-footer__btn:hover {
	box-shadow:
		inset 0 0 0 1px var(--nqc-gold-lt),
		0 10px 26px rgba(158, 77, 51, .4);   /* L562 */
}

.nqc-footer__btn > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
	.nqc-footer__btn:hover::before { animation: nqc-sheen .85s var(--nqc-ease); }
}

@keyframes nqc-sheen {
	from { left: -120%; }
	to   { left: 160%; }
}

.nqc-footer__form { max-width: 340px; }

/* ---- badges ----------------------------------------------------------------
   The comp stacks these ONE PER ROW, each centred — not a wrapping row aligned
   right (L567-570):
     b1  x 1208..1290   y 149..223
     b2  x 1148.5..1348.5  y 245.5..293.5
     b3  x 1191..1309   y 307.6..363.6
     b4  x 1219..1304   y 379..440
   Every box centres on x≈1249, and 239px of badge over a 291px span leaves
   three 17.33px gaps. The 22.5px left inset (rather than the 40px the other
   columns carry) is what puts that centre at 1249 — and it has to, because
   badge-b is 200px wide and would not fit a 194.5px padded box.
   -------------------------------------------------------------------------- */
.nqc-footer__col + .nqc-footer__col--badges {
	padding-left: 22.5px;
	padding-right: 0;
}

.nqc-footer__badges {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 17.33px;
	margin: 5px 0 0;                   /* badges start at 149, headings at 144 */
	padding: 0;
	list-style: none;
}

/*
   Each badge carries its own intrinsic size from the comp (L567-570), applied
   inline by render.php. Without `flex: none` the row shrank them to ~50x25.
*/
.nqc-footer__badges li { flex: none; }

.nqc-footer__badge {
	display: block;
	object-fit: contain;
}

/* ---- bottom --------------------------------------------------------------- */
.nqc-footer__bottom {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding-block: 16px 13px;          /* rule 452 -> meta 468, footer ends 501 */
}

.nqc-footer__meta {
	margin: 0;
	font: 400 14px/19.2px var(--nqc-sans);   /* L572 */
	letter-spacing: 1.68px;
	color: var(--nqc-footer-meta);
}

.nqc-footer__cr {
	margin: 0;
	font: 200 14px/100% var(--nqc-sans);     /* L576 */
	color: var(--nqc-footer-ink);
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1200px) {
	.nqc-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px;
	}

	/* With two tracks the "every column but the first" rule would draw a border
	   mid-row, so borders are reassigned to the second column of each row. */
	.nqc-footer__col + .nqc-footer__col {
		border-left: 0;
		padding-left: 0;
	}

	.nqc-footer__col:nth-child(even) {
		border-left: 1px solid var(--nqc-footer-rule);
		padding-left: 40px;
	}

	.nqc-footer__col { min-height: 0; }

	/* Two-up columns: the badges go back to a wrapping row, left aligned. */
	.nqc-footer__col + .nqc-footer__col--badges { padding-left: 0; }

	.nqc-footer__badges {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: 22px 18px;
		margin-top: 0;
	}
}

@media (max-width: 900px) {
	.nqc-footer__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.nqc-footer__col:nth-child(even) {
		border-left: 0;
		padding-left: 0;
	}

	.nqc-footer__col { padding-right: 0; }

	.nqc-footer__h { font-size: 24px; margin-bottom: 16px; }

	.nqc-footer__line,
	.nqc-footer__nav a { font-size: 18px; }

	.nqc-footer__nav a { line-height: 34px; }

	.nqc-footer__address { gap: 18px; }
}

@media (max-width: 600px) {
	.nqc-footer { padding-top: 24px; }

	.nqc-footer__top {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding-bottom: 24px;
	}

	/* Height scales with the width so the wordmark keeps its proportions —
	   190/235 x 44. */
	.nqc-footer__logo  { width: 190px; height: 35.57px; }
	.nqc-footer__social { gap: 20px; }

	.nqc-footer__social a { width: 40px; height: 40px; }
	.nqc-footer__social svg { width: 32px; height: 32px; }

	.nqc-footer__navs { gap: 24px; }

	.nqc-footer__p { max-width: none; }

	.nqc-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding-block: 16px 24px;
	}

	.nqc-footer__meta { letter-spacing: 1.2px; }
}
