/* ============================================================================
   Nine Quarter Circle — design tokens + shared primitives
   ----------------------------------------------------------------------------
   The ONLY global stylesheet. Everything section-specific lives in the owning
   block's style.css (block.json "style", tree-shaken by WordPress).

   Only primitives that repeat across 8+ sections live here:
     .nqc-orn / .nqc-rule-g / .nqc-dia   gold rule + diamond ornament
     .nqc-btn--fill / .nqc-btn--ghost    the two buttons
     .nqc-link                           underlined uppercase link
     .nqc-chev                           chevron glyph
     .nqc-bullet                         ruled bullet row
     .nqc-reveal                         scroll-in motion

   Values are verbatim from Claude Design/homepage.html — see
   design-reference/homepage-audit.css for line-by-line citations.

   Breakpoints (deliberate, derived from the comp's own 1200px content rail):
     1440+  pixel-exact to the comp
     1200   rails compress, overlaps retained
      900   two-column sections stack, grids halve
      600   single column, padding compresses
   ============================================================================ */

:root {
	/* ---- ground + ink ---- */
	--nqc-navy:        #1C2634;
	--nqc-navy-deep:   #141C28;
	--nqc-ink:         #1C2634;
	--nqc-footer-bg:   #211A13;

	/* ---- metal ---- */
	--nqc-gold:        #B1894F;
	--nqc-gold-lt:     #C2A15F;
	--nqc-gold-dk:     #937538;

	/* ---- accent ---- */
	--nqc-brick:       #9E4D33;
	--nqc-brick-hover: #8A4029;
	--nqc-brick-link:  #7F3820;

	/* ---- paper ---- */
	--nqc-cream:       #F6EFE2;
	--nqc-cream-2:     #F4ECDD;
	--nqc-paper:       #FBF7EF;
	--nqc-paper-2:     #FDFAF5;   /* rates.html L24 — a hair warmer than paper */
	--nqc-sand:        #EFE4CF;

	/* ---- body copy ---- */
	--nqc-body:        #544C40;
	--nqc-body-2:      #5C5346;
	--nqc-body-3:      #736A5C;
	--nqc-body-3-alt:  #6F665A;
	--nqc-bullet-ink:  #3F382E;
	--nqc-sub-ink:     #2F2A22;

	/* ---- rules + card ink ---- */
	--nqc-rule:        #E2D6BD;
	--nqc-rule-2:      #DDCEB0;
	--nqc-card-ink:    #DCD3C4;

	/* ---- footer ---- */
	--nqc-footer-ink:  #D7CDBB;
	--nqc-footer-meta: #8F8674;
	--nqc-footer-rule: rgba(255, 255, 255, .22);

	/* ---- type ---- */
	--nqc-serif: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
	--nqc-sans:  Spectral, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	             "Helvetica Neue", Arial, sans-serif;

	/* ---- easing ---- */
	--nqc-ease:      cubic-bezier(.22, .61, .36, 1);
	--nqc-ease-soft: cubic-bezier(.22, .7, .2, 1);

	/* ---- layout ---- */
	--nqc-rail:   1200px;                    /* the comp's own content rail */
	--nqc-gutter: clamp(20px, 5vw, 120px);
}

/* ============================================================================
   Defensive reset — WordPress themes bleed borders, outlines and shadows into
   block roots. Every nqc block root carries .nqc-block.
   ============================================================================ */
.nqc-block {
	border: none;
	outline: none;
	box-shadow: none;
	margin: 0;
	position: relative;
	box-sizing: border-box;
	contain: layout style paint;

	/*
	 * NOTE: no `padding: 0` here. Every section states its own padding, and this
	 * rule carries the same (0,1,0) specificity — so whichever stylesheet loads
	 * last would win. WordPress prints per-block styles before plugin styles,
	 * which silently flattened the vertical padding of nine sections (measured:
	 * feature-cards short by exactly its own 150px, kids by exactly 229px).
	 * The load order is now pinned in nqc-blocks.php as well, but the reset
	 * still declines to own a property the blocks themselves set.
	 */

	/*
	 * Typography reset — NOT cosmetic.
	 *
	 * The Luna theme's theme.json publishes a root font-size of 18.3072px, a
	 * variable weight of 430 and a computed line-height, and every one of those
	 * cascades into a block that does not state its own. Anything inheriting
	 * (buttons, badges, ornaments, tag labels) then measures wrong, which is how
	 * a "pixel perfect" build silently drifts: the headings look right because
	 * they set their own size, and everything between them does not.
	 *
	 * The comp's own baseline is 16px / 400 / normal — homepage.html L35–40.
	 */
	font-family: var(--nqc-sans);
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	color: var(--nqc-ink);
}

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

.nqc-block img { display: block; max-width: 100%; }

/*
 * Anchor reset. `.nqc-block a` is (0,1,1) — a class plus a type — so it
 * outranks the single-class `.nqc-btn` / `.nqc-link` rules that follow and was
 * repainting every button label in body ink instead of cream. Excluding the
 * components restores their own colour without weakening the reset for ordinary
 * links.
 */
.nqc-block a:not( .nqc-btn ):not( .nqc-link ) {
	color: inherit;
}

.nqc-block a { text-decoration: none; }

/*
   …except a link inside running copy, which has to look like one. The rule
   above strips every underline on the site, which is right for buttons and
   nav but leaves an inline link in a bullet or a paragraph indistinguishable
   from the text around it.

   These are the same declarations the closing CTA's body links already use —
   a 45% underline at a 3px offset, going full-strength and gold on hover — so
   an inline link reads the same wherever it appears.
*/
.nqc-bullet p a,
.nqc-check__text a,
.nqc-prose__body a,
.nqc-about__copy a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .3s ease, text-decoration-color .3s ease;
}

.nqc-bullet p a:hover,
.nqc-bullet p a:focus-visible,
.nqc-check__text a:hover,
.nqc-check__text a:focus-visible,
.nqc-prose__body a:hover,
.nqc-prose__body a:focus-visible,
.nqc-about__copy a:hover,
.nqc-about__copy a:focus-visible {
	color: var(--nqc-gold-dk);
	text-decoration-color: currentColor;
}

/* Content rail shared by every section. */
.nqc-rail {
	width: 100%;
	max-width: var(--nqc-rail);
	margin-inline: auto;
}

/* ============================================================================
   Ornament — gold rule + rotated diamond.       audit L1 / homepage L44–52
   Rule WIDTH varies per section (44/56/64/70px) and is set by the owning
   block via --nqc-orn-w. Default 56px = the most common value.
   ============================================================================ */
.nqc-orn {
	display: flex;
	flex-direction: row;
	gap: 16px;
	align-items: center;
	justify-content: center;
}

.nqc-orn__rule {
	height: 1px;
	background: var(--nqc-gold);
	flex: none;
	width: var(--nqc-orn-w, 56px);
}

.nqc-orn__dia {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	/* 6px square rotated 45deg occupies 8.485px; 7px -> 9.899px */
	width:  var(--nqc-dia-box, 8.485px);
	height: var(--nqc-dia-box, 8.485px);
}

.nqc-orn__dia i {
	display: block;
	background: var(--nqc-gold);
	transform: rotate(45deg);
	width:  var(--nqc-dia, 6px);
	height: var(--nqc-dia, 6px);
}

/* 7px variant — hero, feature-cards, horse, weeks, closing-cta */
.nqc-orn--lg { --nqc-dia-box: 9.899px; --nqc-dia: 7px; }

/*
   Gold-on-dark uses the LIGHTER gold.

   Deliberate deviation from the comp, which draws the ornament in --gold
   everywhere. On the paper ground that is right; on the navy bands it lands at
   about 2.6:1 and reads as a ghost — the rules are 1px, so there is very little
   of it to see. The comp already establishes this pairing for its own gold
   marks on dark (the included checks and the quote mark are both --gold-lt);
   this applies the same rule to the ornament.

   Scoped to the dark sections so the paper ones are untouched.
*/
.nqc-incl .nqc-orn__rule,
.nqc-horse .nqc-orn__rule,
.nqc-quote .nqc-orn__rule,
.nqc-hero .nqc-orn__rule,
.nqc-band .nqc-orn__rule,
.nqc-incl .nqc-orn__dia i,
.nqc-horse .nqc-orn__dia i,
.nqc-quote .nqc-orn__dia i,
.nqc-hero .nqc-orn__dia i,
.nqc-band .nqc-orn__dia i {
	background: var(--nqc-gold-lt);
}

/* ============================================================================
   Chevron                                        audit L1 / homepage L53–54
   ============================================================================ */
.nqc-chev {
	width: 7.54px;
	height: 10.594px;
	flex: none;
	overflow: hidden;
	display: block;
	transition: transform .35s ease;
}

.nqc-chev svg { display: block; width: 4.54px; height: 10.594px; }

/* ============================================================================
   Buttons                                        homepage L59–76, 587–593
   ============================================================================ */
.nqc-btn {
	display: inline-flex;
	flex-direction: row;
	gap: 12px;
	justify-content: center;
	align-items: center;
	color: var(--nqc-cream);
	cursor: pointer;
	width: max-content;
	transition: background-color .3s ease, box-shadow .3s ease, color .25s ease;
}

.nqc-btn span {
	font: 400 14px/100% var(--nqc-sans);
	letter-spacing: 3px;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
}

.nqc-btn--fill {
	background: var(--nqc-brick);
	box-shadow: inset 0 0 0 1px var(--nqc-gold);
	padding: 12px 16px;
}

/* The `.soft` modifier — a gold hairline at 80% and roomier padding, so the
   filled button matches the ghost button beside it. your-stay.html L64. */
.nqc-btn--fill.is-soft {
	box-shadow: inset 0 0 0 1px rgba(177, 137, 79, .8);
	padding: 16px 20px;
}

.nqc-btn--fill:hover { background: var(--nqc-brick-hover); color: var(--nqc-cream); }
.nqc-btn--fill:hover span { color: var(--nqc-cream); }

.nqc-btn--ghost {
	box-shadow: inset 0 0 0 1px rgba(246, 239, 226, .8);
	padding: 16px 20px;
}

.nqc-btn--ghost:hover {
	background: rgba(246, 239, 226, .08);
	box-shadow: inset 0 0 0 1px var(--nqc-cream);
	color: #fff;
}

.nqc-btn--ghost:hover span { color: #fff; }

.nqc-btn:hover .nqc-chev { transform: translateX(4px); }

/* ============================================================================
   Underlined link                                homepage L77–91, 593–594
   Per-instance widths in the comp (150.54 / 156.54 / 169.54 / 242.54 /
   263.54px) are text-length driven -> width:max-content, never hardcoded.
   ============================================================================ */
.nqc-link {
	display: inline-flex;
	flex-direction: row;
	gap: 12px;
	padding: 0 0 6px;
	align-items: center;
	color: var(--nqc-brick);
	height: 27px;
	position: relative;
	width: max-content;
}

.nqc-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--nqc-gold);
	transform-origin: left center;
	transition: transform .45s var(--nqc-ease), background-color .3s ease;
}

.nqc-link:hover::after { transform: scaleY(2); background: var(--nqc-brick); }

.nqc-link span {
	font: 600 14px/100% var(--nqc-sans);
	letter-spacing: 3px;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	transition: color .25s ease;
}

.nqc-link:hover span { color: var(--nqc-brick-link); }
.nqc-link:hover .nqc-chev { transform: translateX(4px); }

/* ============================================================================
   Kicker — the 25px variant.                     homepage L92–95
   NOTE: three other kicker treatments exist (hero 14px/#fff,
   band-cta 14px/gold-lt, about 14px/gold-dk rotated). Those are NOT unified
   here; each lives in its owning block's style.css.
   ============================================================================ */
.nqc-kicker {
	font: 400 25px/25px var(--nqc-sans);
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--nqc-gold-lt);
	white-space: nowrap;
}

/* ============================================================================
   Bullet row                                     homepage L96–104
   ============================================================================ */
.nqc-bullets {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: flex-start;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nqc-bullet {
	border-bottom: 1px solid var(--nqc-rule);
	display: flex;
	flex-direction: row;
	gap: 16px;
	padding: 18px 0;
	align-items: flex-start;
	width: 100%;
}

.nqc-bullet__mark {
	width: 16px;
	flex: none;
	font: 400 20px/20px "Zapf Dingbats", var(--nqc-serif);
	color: var(--nqc-gold);
	font-style: normal;
}

.nqc-bullet p {
	font: 400 18px/28px var(--nqc-sans);
	color: var(--nqc-bullet-ink);
	margin: 0;
}

/* ============================================================================
   Anchor targets

   The mega menu links into sections — "The Palace", "Trail Options" — and the
   header is position: fixed at 79px. Without a scroll margin the browser stops
   with the target's first lines underneath it. 100px is the header plus a
   little air. This changes nothing about how the page looks; it only moves
   where a hash jump comes to rest.
   ============================================================================ */
main [id] { scroll-margin-top: 100px; }

/* ============================================================================
   Motion                                         homepage L580–615, 929–941
   Only transform + opacity are animated.
   ============================================================================ */
@media (prefers-reduced-motion: no-preference) {
	.nqc-reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity .9s ease, transform .9s var(--nqc-ease);
	}

	.nqc-reveal.is-in { opacity: 1; transform: none; }

	.nqc-d1 { transition-delay: .1s; }
	.nqc-d2 { transition-delay: .2s; }
	.nqc-d3 { transition-delay: .3s; }
}

/* The editor canvas must never hide content behind a scroll observer. */
.editor-styles-wrapper .nqc-reveal {
	opacity: 1 !important;
	transform: none !important;
}

/* ============================================================================
   Focus                                          homepage L590–591
   ============================================================================ */
.nqc-block a:focus-visible,
.nqc-block button:focus-visible {
	outline: 2px solid var(--nqc-gold);
	outline-offset: 3px;
}

.nqc-btn--fill:focus-visible { outline-color: var(--nqc-gold-lt); }

/* Visually-hidden, for section aria-labelledby targets. */
.nqc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ============================================================================
   Responsive primitives
   ============================================================================ */
@media (max-width: 900px) {
	.nqc-kicker { font-size: 20px; line-height: 20px; letter-spacing: 3px; }
	.nqc-bullet p { font-size: 17px; line-height: 27px; }
}

@media (max-width: 600px) {
	.nqc-kicker { font-size: 16px; line-height: 18px; letter-spacing: 2.5px; white-space: normal; }
	.nqc-bullet { padding: 14px 0; gap: 12px; }
	.nqc-bullet p { font-size: 16px; line-height: 26px; }
	/*
	   The label stays on ONE line. Letting it wrap ("LEARN MORE ABOUT YOUR
	   STAY" broke across two rows at 390px) turns a button into a paragraph;
	   trimming the tracking and size keeps it a button.
	*/
	.nqc-btn {
		width: 100%;
		padding-inline: 14px;
		gap: 8px;
	}

	/*
	   14px is the floor everywhere, including here — it used to drop to 11px to
	   keep long labels on one line, which is unreadable on the device that needs
	   it most. The label keeps its size and gives up letter-spacing instead, and
	   is allowed to wrap rather than overflow: the buttons are full-width blocks
	   at this size, so a centred second line reads correctly.
	*/
	/*
	   A long label cannot fit one line at the 14px floor, so when it wraps it
	   should look deliberate: `balance` evens the two lines instead of leaving
	   one word stranded, and the line-height keeps the button from doubling in
	   height. The chevron stays centred against the block of text.
	*/
	.nqc-btn span {
		white-space: normal;
		text-align: center;
		text-wrap: balance;
		font-size: 14px;
		line-height: 19px;
		letter-spacing: 1.5px;
	}

	.nqc-btn { align-items: center; }

	.nqc-link span {
		white-space: normal;
		font-size: 14px;
		letter-spacing: 1.5px;
	}
}
