/* Ruff Ryders Lux — compatibility layer between the compiled Tailwind CSS and WordPress core blocks. */
/* Metric-adjusted fallbacks, exactly as next/font generated them, so text reflows the same before the web fonts load. */
@font-face { font-family: "Cormorant Garamond Fallback"; src: local("Times New Roman"); ascent-override: 95.27%; descent-override: 29.59%; line-gap-override: 0%; size-adjust: 96.98%; }
@font-face { font-family: "Montserrat Fallback"; src: local(Arial); ascent-override: 85.79%; descent-override: 22.25%; line-gap-override: 0%; size-adjust: 112.83%; }

/* next/font exposed these on <html> through a hashed class; here they live on :root. */
:root {
	--font-cormorant: "Cormorant Garamond", "Cormorant Garamond Fallback";
	--font-montserrat: "Montserrat", "Montserrat Fallback";
	--font-display: var(--font-cormorant), "Cormorant Garamond", Georgia, serif;
}

/* The original stylesheet has two UNLAYERED rules that beat every (layered) Tailwind utility. Flattening the layers
   would let utilities win, so they are restated with !important to keep the exact same result:
   - every border uses the hairline colour, whatever border-* colour utility an element carries;
   - keyboard focus always shows the crimson outline. */
*:not(.rr-keep-border) { border-color: var(--color-line) !important; }
:where(a, button, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--color-accent-light) !important; outline-offset: 3px; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; width: 100%; padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
main { position: relative; z-index: 1; }

/* Core blocks must not add their own spacing: the utility classes (mt-*, mb-*) own it. */
.wp-block-image:not([class*=" mb-"]):not([class*=" m-"]):not([class*=" my-"]) { margin-bottom: 0; }
.wp-block-image > img, .wp-block-image > a > img { display: block; width: 100%; height: 100%; object-fit: inherit; object-position: inherit; max-width: none; }
.wp-block-image > a { display: block; height: 100%; width: 100%; }
.wp-block-image.object-cover > img, .wp-block-image.object-cover > a > img { object-fit: cover; }
.wp-block-image.object-contain > img, .wp-block-image.object-contain > a > img { object-fit: contain; }
.wp-block-image.absolute, .wp-block-image.h-full { height: 100%; }
.wp-block-list { padding-left: 0; list-style: none; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: normal; }
/* Paragraphs that only wrap a button-like link must not create a box of their own. */
p.rr-bare { display: contents; }

/* Card links: the first heading stretches its link over the whole card. */
.rr-card { position: relative; }
.rr-stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.rr-stretched { color: inherit; text-decoration: none; }
.rr-stretched-title a { color: inherit; text-decoration: none; }
.rr-stretched-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.rr-card:hover .rr-stretched-title a { color: var(--color-accent-light); }

/* Scroll-linked parallax for photographs (the original's .parallax-img, moved to the image block's <img>). */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		@keyframes rr-parallax-drift { from { transform: translateY(-7%) scale(1.14); } to { transform: translateY(7%) scale(1.14); } }
		.rr-parallax > img { animation: rr-parallax-drift linear both; animation-timeline: view(); }
	}
}

/* Scroll reveal: starts hidden only when JS runs (html.rr-js) and never inside the block editor. */
html.rr-js .rr-reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }
.rr-reveal { transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--reveal-delay, 0s); }
.rr-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rr-reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Photo that sits inside a section's background (e.g. the concierge on the Chauffeur page): fades into the section on the left. */
.rr-has-bg-person { overflow: hidden; }
.rr-has-bg-person > .wp-block-group { position: relative; z-index: 1; }
.wp-block-image.rr-bg-person { position: absolute; z-index: 0; top: 0; bottom: 0; right: 4%; width: auto; height: 100%; aspect-ratio: 900 / 2400; margin: 0; pointer-events: none; overflow: hidden; opacity: .3; object-fit: cover; object-position: 50% 0;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 70%, transparent 100%); }
@media (min-width: 64rem) {
	.wp-block-image.rr-bg-person { right: 8%; opacity: .9; }
}

/* Looping background clip behind a section (The Experience): sits under the content, quiet enough to keep the cards readable. */
.rr-has-bg-video { overflow: hidden; }
.rr-has-bg-video > .wp-block-group { position: relative; z-index: 1; }
.wp-block-video.rr-bg-video { position: absolute; z-index: 0; inset: 0; margin: 0; pointer-events: none; opacity: .38; }
.wp-block-video.rr-bg-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .wp-block-video.rr-bg-video video { display: none; } }

/* ------------------------------------------------------------------ header: floating glass pill */
.site-header { isolation: isolate; }
.site-header .wp-block-image { margin: 0; }
.rr-pill.is-scrolled, .rr-pill.is-menu-open { background-color: rgb(246 246 245 / .95); box-shadow: var(--shadow-soft); }
.rr-pill.is-menu-open { border-radius: 1.5rem; }

/* Desktop navigation (lg and up): core Navigation block styled as the original pill links. */
nav.rr-nav-desktop { display: none; }
@media (min-width: 64rem) {
	nav.rr-nav-desktop { display: flex !important; align-items: center; }
	.rr-nav-desktop .wp-block-navigation__container { display: flex; align-items: center; gap: .25rem; flex-wrap: nowrap; }
	.rr-nav-desktop .wp-block-navigation-item__content {
		display: block; white-space: nowrap; border-radius: 9999px; padding: .5rem .75rem; text-decoration: none; transition: color .15s;
		font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; line-height: 1rem; color: rgb(19 19 19 / .75);
	}
	.rr-nav-desktop .wp-block-navigation-item__content:hover { color: var(--color-bone); }
	.rr-nav-desktop .is-current > .wp-block-navigation-item__content { background-color: var(--color-accent-tint); color: var(--color-accent-light); }
}
/* Mobile panel: expands inside the pill */
.rr-mobile-menu { visibility: hidden; max-height: 0; }
.rr-mobile-menu.is-open { visibility: visible; max-height: 85vh; }
.rr-nav-mobile, .rr-nav-mobile .wp-block-navigation__container { display: block; width: 100%; }
.rr-nav-mobile .wp-block-navigation__container > .wp-block-navigation-item { display: block; border-top: 1px solid var(--color-line); }
.rr-nav-mobile .wp-block-navigation__container > .wp-block-navigation-item:first-child { border-top: 0; }
.rr-nav-mobile .wp-block-navigation-item__content {
	display: flex; width: 100%; min-height: 3rem; align-items: center; justify-content: space-between; padding: .75rem 0; text-decoration: none;
	font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 2rem; color: var(--color-bone);
}
.rr-nav-mobile .wp-block-navigation-item__content::after { content: "\2192"; font-family: var(--font-sans); font-weight: 400; font-size: 1rem; color: var(--color-faint); }
.rr-nav-mobile .is-current > .wp-block-navigation-item__content { color: var(--color-accent-light); }
.rr-menu-toggle[aria-expanded="true"] > span > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rr-menu-toggle[aria-expanded="true"] > span > span:nth-child(2) { opacity: 0; }
.rr-menu-toggle[aria-expanded="true"] > span > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ FAQ (core Details blocks) */
.rr-faq-item { display: block; }
.rr-faq-item > summary {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; cursor: pointer; text-align: left;
	font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 2rem; color: var(--color-bone); list-style: none; transition: color .3s;
}
.rr-faq-item > summary::-webkit-details-marker { display: none; }
.rr-faq-item > summary::marker { content: ""; }
.rr-faq-item > summary::after { content: "+"; flex-shrink: 0; font-family: var(--font-sans); font-size: 1.25rem; line-height: 1.75rem; color: var(--color-gold-bright); transition: transform .3s; }
.rr-faq-item[open] > summary { color: var(--color-accent-light); }
.rr-faq-item[open] > summary::after { transform: rotate(45deg); }

/* ------------------------------------------------------------------ Contact Form 7 (matches the original form controls) */
.wpcf7 form { display: block; }
.wpcf7-form-control-wrap { display: block; }
.rr-form { min-width: 0; --rr-gap: 1.5rem; }
.rr-form.space-y-8 { --rr-gap: 2rem; }
/* gap between the form's top-level blocks = the original's space-y-N */
.wpcf7-form > :not(.screen-reader-response):not(.hidden-fields-container):not(.wpcf7-response-output) ~ :not(.screen-reader-response):not(.hidden-fields-container):not(.wpcf7-response-output) { margin-top: var(--rr-gap); }
.wpcf7 select, .wpcf7 input, .wpcf7 textarea { max-width: 100%; min-width: 0; }
.wpcf7 form label { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 input[type="date"], .wpcf7 input[type="time"],
.wpcf7 select, .wpcf7 textarea {
	display: block; width: 100%; min-height: 2.75rem; margin: 0; border: 1px solid var(--color-line-strong); border-radius: .75rem; background: var(--color-card); color: var(--color-bone);
	padding: .75rem 1rem; font-family: var(--font-sans), system-ui, sans-serif; font-size: 1rem; line-height: 1.5rem; text-transform: none; letter-spacing: normal;
}
@media (min-width: 40rem) { .wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 input[type="date"], .wpcf7 input[type="time"], .wpcf7 select, .wpcf7 textarea { font-size: .875rem; line-height: 1.25rem; } }
.wpcf7 textarea { resize: vertical; }
.wpcf7 ::placeholder { color: var(--color-faint); }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; box-shadow: 0 0 0 2px rgb(200 32 47 / .3); }
.wpcf7 fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Radio / checkbox groups: CF7's own spans step aside so the tiles are the grid items */
.wpcf7 .wpcf7-form-control-wrap:has(> .wpcf7-radio), .wpcf7 .wpcf7-form-control-wrap:has(> .wpcf7-checkbox), .wpcf7 .wpcf7-radio, .wpcf7 .wpcf7-checkbox { display: contents; }
.wpcf7 .wpcf7-list-item { display: block; margin: 0; }
.wpcf7 .wpcf7-list-item label {
	display: block; cursor: pointer; border: 1px solid var(--color-line-strong); border-radius: .75rem; padding: .75rem 1rem; font-size: .875rem; line-height: 1.25rem; letter-spacing: normal; text-transform: none;
	color: var(--color-mute); transition: border-color .2s, color .2s, background-color .2s;
}
.wpcf7 .wpcf7-list-item label:hover { color: var(--color-bone); }
.wpcf7 .wpcf7-list-item label:has(input:checked) { background: var(--color-gold-tint); color: var(--color-bone); }
.wpcf7 .wpcf7-list-item input { position: absolute; width: 1px; height: 1px; opacity: 0; }
/* consent checkbox */
.wpcf7 label:has(.wpcf7-acceptance) { display: flex; align-items: flex-start; gap: .75rem; font-size: .75rem; line-height: 1.625; text-transform: none; letter-spacing: normal; color: var(--color-mute); }
.wpcf7 .wpcf7-acceptance { display: block; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { display: block; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item label { display: block; border: 0; border-radius: 0; padding: 0; background: transparent !important; color: inherit; font-size: 0; line-height: 0; }
.wpcf7 .wpcf7-acceptance input { display: block; position: static; opacity: 1; width: 1rem; height: 1rem; margin: .125rem 0 0; accent-color: var(--color-gold); }
.wpcf7 button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7-response-output { border: 1px solid var(--color-line-strong) !important; border-radius: .75rem; color: var(--color-mute); font-size: .875rem; margin: 1.5rem 0 0 !important; padding: .875rem 1.25rem !important; }
.wpcf7-not-valid-tip { color: #b42318; font-size: .75rem; margin-top: .35rem; display: block; }
.wpcf7 form.sent .wpcf7-response-output { background: var(--color-gold-tint); color: var(--color-bone); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { color: #b42318; }
/* Request Service: category groups (assets/js/site.js shows the chosen one) */
.rr-cat[hidden], .rr-after-choice[hidden] { display: none !important; }
.rr-req-error { margin-top: .35rem; font-size: .75rem; color: #b42318; }
