/* ============================================================================
   nqc/closing-cta
   Source: Claude Design/homepage.html L496–517
   Canvas: top 7023px, height 692.5px

   Layering, from the comp:
     photo   top 84px, height 608.5px      (L497–500)
     scrim   top 84px, height 346px        (L501–504) cream -> transparent
     copy    top 0,   height 296px         (L505)
   So the copy sits on paper and the photograph carries the lower two-thirds.
   Text tops: kicker 0, heading 45, ornament 131, body 165.99, button 242.
   ============================================================================ */

.nqc-cta {
	position: relative;
	min-height: 692.5px;               /* L496 */
	overflow: hidden;
	background: var(--nqc-paper);
	isolation: isolate;
}

/* ---- photograph ----------------------------------------------------------- */
.nqc-cta__bg {
	position: absolute;
	left: 0;
	right: 0;
	top: 84px;                         /* L498 */
	height: 608.5px;
	z-index: 0;
}

.nqc-cta__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* object-position comes from the block's crop control; the homepage's
	   50% 0 (L499), anchored to the top of the frame, is its default. */
}

/* Cream scrim fading the paper ground down into the photograph. */
.nqc-cta__scrim {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 346px;                     /* L502 */
	background: linear-gradient(180deg,
		#FBF7EF 0%,
		rgba(251, 247, 239, .5) 47.6%,
		rgba(251, 247, 239, 0) 100%);  /* L503 */
	pointer-events: none;
}

/* ---- copy ----------------------------------------------------------------- */
.nqc-cta__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1040px;
	margin-inline: auto;
	padding: 0 var(--nqc-gutter);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.nqc-cta__kicker { margin: 0; }

.nqc-cta__heading {
	margin: 20px 0 0;                  /* kicker (25) ends 25 -> heading 45 */
	font: 600 66px/66px var(--nqc-serif);   /* L509 */
	color: var(--nqc-ink);
	text-align: center;
	white-space: nowrap;
}

.nqc-cta__orn {
	--nqc-orn-w: 70px;                 /* L512 */
	min-height: 14.99px;               /* L511 */
	margin-top: 20px;                  /* heading (66) ends 111 -> ornament 131 */
}

.nqc-cta__body {
	margin: 20px 0 0;                  /* ornament (15) ends 146 -> body 165.99 */
	max-width: 566px;                  /* L514 */
	font: 400 18px/28px var(--nqc-sans);
	color: var(--nqc-body-3-alt);      /* L515 — #6F665A */
	text-align: center;
}

/*
   An inline link inside the body copy — the phone number on the homepage. It
   keeps the body's own colour rather than taking the gold, so a quiet closing
   band stays quiet; the underline is what marks it, and the gold arrives on
   hover. currentColor for the underline so it tracks any band variant.
*/
.nqc-cta__body a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	white-space: nowrap;               /* never break a phone number across lines */
	transition: color .3s ease, text-decoration-color .3s ease;
}

.nqc-cta__body a:hover,
.nqc-cta__body a:focus-visible {
	color: var(--nqc-gold-dk);
	text-decoration-color: currentColor;
}

.nqc-cta__btn {
	margin-top: 20px;                  /* body ends 221.99 -> button 242 (L513-517) */
	min-height: 54px;                  /* L517 — the comp sets an explicit height */
}

/* ============================================================================
   Shallow variant                        your-stay.html L472–494 (.ct .ct-*)
   Canvas: top 5330px, height 692.5px

   Same layering, with the cream fade stopping 95px sooner so more of the
   photograph shows behind the copy, and a wider measure for the longer body.
   ============================================================================ */
.nqc-cta.is-shallow .nqc-cta__scrim { height: 251px; }   /* L479 */

.nqc-cta.is-shallow .nqc-cta__body { max-width: 832px; } /* L491 */

/* lodging.html L419–423 — the deepest fade of the three, so the copy sits on
   cream almost to the button and only the lower third is photograph. */
.nqc-cta.is-full-fade .nqc-cta__scrim { height: 484px; }

.nqc-cta.is-full-fade .nqc-cta__body { max-width: 652px; }   /* L429 */

/* rates.html L498–518 — a taller band: the photograph starts 182px down rather
   than 84, the fade runs 356px, and the copy sits 90px in from the top. */
.nqc-cta.is-tall { min-height: 790.5px; }

.nqc-cta.is-tall .nqc-cta__bg { top: 182px; }

.nqc-cta.is-tall .nqc-cta__scrim { height: 356px; }

.nqc-cta.is-tall .nqc-cta__inner { padding-top: 90px; }

.nqc-cta.is-tall .nqc-cta__body { max-width: 832px; }

/* the-week.html L466–478 — tall's fade on a band only 8px deeper than the
   default: the photograph starts 92px down rather than 84, the fade runs 356px,
   and the paragraph takes the wide measure because it is set as two lines. */
.nqc-cta.is-wide-fade { min-height: 700.5px; }

.nqc-cta.is-wide-fade .nqc-cta__bg { top: 92px; }

.nqc-cta.is-wide-fade .nqc-cta__scrim { height: 356px; }

.nqc-cta.is-wide-fade .nqc-cta__body { max-width: 832px; }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1200px) {
	.nqc-cta { min-height: 600px; }

	.nqc-cta.is-shallow .nqc-cta__body { max-width: 700px; }
	.nqc-cta.is-full-fade .nqc-cta__body { max-width: 620px; }
	.nqc-cta.is-tall { min-height: 620px; }
	.nqc-cta.is-tall .nqc-cta__body { max-width: 700px; }
	.nqc-cta.is-wide-fade { min-height: 600px; }
	.nqc-cta.is-wide-fade .nqc-cta__body { max-width: 700px; }

	.nqc-cta__heading { font-size: 54px; line-height: 56px; }
}

@media (max-width: 900px) {
	.nqc-cta {
		min-height: 520px;
		padding-top: 56px;
	}

	.nqc-cta__bg { top: 60px; height: calc(100% - 60px); }

	/*
	   At 1440 the copy is four short centred lines and clears the scrim. On a
	   phone the same copy wraps to eight, so the body ran off the cream and sat
	   directly on the photograph at roughly 1.9:1 — unreadable. The scrim is
	   measured from the copy instead of the comp here: it fades out below the
	   button rather than at a fixed 240px.
	*/
	/* is-tall restated with the rest: its rules are (0,2,1) and would keep
	   their desktop values at every width otherwise. */
	.nqc-cta.is-tall { min-height: 520px; }
	.nqc-cta.is-tall .nqc-cta__bg { top: 60px; height: calc(100% - 60px); }
	.nqc-cta.is-tall .nqc-cta__inner { padding-top: 0; }
	.nqc-cta.is-wide-fade { min-height: 520px; }
	.nqc-cta.is-wide-fade .nqc-cta__bg { top: 60px; height: calc(100% - 60px); }

	.nqc-cta__scrim,
	.nqc-cta.is-shallow .nqc-cta__scrim,
	.nqc-cta.is-full-fade .nqc-cta__scrim,
	.nqc-cta.is-tall .nqc-cta__scrim,
	.nqc-cta.is-wide-fade .nqc-cta__scrim {
		height: 100%;
		background: linear-gradient(180deg,
			#FBF7EF 0%,
			#FBF7EF 42%,
			rgba(251, 247, 239, .82) 62%,
			rgba(251, 247, 239, 0) 100%);
	}

	.nqc-cta__heading { font-size: 40px; line-height: 44px; }

	.nqc-cta__orn { --nqc-orn-w: 52px; }

	.nqc-cta__btn { margin-top: 36px; }
}

@media (max-width: 600px) {
	.nqc-cta {
		min-height: 440px;
		padding-top: 44px;
	}

	.nqc-cta__bg,
	.nqc-cta.is-tall .nqc-cta__bg,
	.nqc-cta.is-wide-fade .nqc-cta__bg { top: 44px; height: calc(100% - 44px); }

	.nqc-cta.is-tall,
	.nqc-cta.is-wide-fade { min-height: 440px; }

	.nqc-cta__heading {
		font-size: 30px;
		line-height: 34px;
		white-space: normal;           /* the comp's nowrap overflows here */
	}

	.nqc-cta__orn  { --nqc-orn-w: 40px; }

	.nqc-cta__body { font-size: 16px; line-height: 26px; }

	.nqc-cta__btn  { margin-top: 28px; }
}
