/*
Theme Name: Rose & Key
Description: Divi child theme for the Rose & Key site: design-system CSS and site scripts.
Author: Suburban Webworks
Author URI: https://suburbanwebworks.com
Template: Divi
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rose-and-key
*/

/* Rose & Key design system.

   Precedence: these rules are the site's *defaults*. Typography is set on Divi's text container
   (.et_pb_text_inner, and headings inside it) with the class wrapped in :where(), so a rule here
   beats Divi's generic defaults but loses to anything set on a module in the Divi Builder
   (Divi writes those as .et_pb_text_N .et_pb_text_inner …, which is more specific).
   Layout rules that the design depends on (flex galleries, trust-bar marquee, property reflow,
   section paddings on phones) still use normal specificity or !important and are not builder-editable.
   Body-text alignment is NOT set here: it is saved as each module's builder Text Alignment, so the builder
   shows and controls it. Heading alignment defaults below are overridden by the builder's heading settings. */
:root {
  --rk-black: #000;
  --rk-gold: #b8860b;
  --rk-gold-text: #966d09; /* brand gold darkened to 4.5:1+ on white/off-white, for gold text under 24px */
  --rk-grey-text: #767676; /* 4.5:1 on white */
  --rk-crimson: #8b0000;
  --rk-charcoal: #2d2d2d;
  --rk-off-white: #fafbff;
  --rk-light-grey: #efefef;
  --rk-muted: #a5a5a5;
  --rk-serif: 'Playfair Display', Georgia, serif;
  --rk-sans: 'Poppins', Helvetica, Arial, sans-serif;
}

body { font-family: var(--rk-sans); font-weight: 300; color: var(--rk-charcoal); }
/* In-page links (e.g. Explore the Collection → #collection) glide to their section. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.et_pb_row { width: 90%; max-width: 1560px; }
.et_pb_row.rk-full { width: 100%; max-width: none; padding: 0; }
.et_pb_row.rk-full .et_pb_image, .rk-full .et_pb_image_wrap, .rk-full img { display: block; width: 100%; }
.rk-center { text-align: center; }

/* Type scale */
:where(.rk-title) .et_pb_text_inner :is(h1, h2) { font-family: var(--rk-serif); font-weight: 700; color: var(--rk-black); text-align: center; line-height: 1.25; padding: 0; font-size: 48px; }
:where(.rk-title) em { font-weight: 400; color: var(--rk-gold); }
:where(.rk-lead) .et_pb_text_inner { font-size: 28px; line-height: 1.43; color: var(--rk-gold); font-weight: 300; }
.rk-lead p { max-width: 1360px; margin: 0 auto; }
:where(.rk-lead.rk-lead-left) .et_pb_text_inner { font-size: 30px; }
.rk-lead.rk-lead-left p { padding-bottom: 1.1em; }
:where(.rk-kicker) .et_pb_text_inner { font-family: var(--rk-serif); font-style: italic; font-size: 20px; color: var(--rk-black); }
:where(.rk-feature) .et_pb_text_inner h4 { font-family: var(--rk-sans); font-weight: 500; font-size: 20px; line-height: 1.35; color: var(--rk-black); text-align: center; padding-bottom: 36px; }
:where(.rk-feature) .et_pb_text_inner { font-size: 16px; line-height: 1.5; }
.rk-feature ul { padding: 0 0 1em 1.4em; list-style: disc; }
/* Divi's theme sets `.entry-content ul { line-height: 26px }`; lists follow the module's text instead. */
:where(.rk-feature) .et_pb_text_inner ul { line-height: inherit; }
:where(.rk-emphasis) .et_pb_text_inner { font-family: var(--rk-serif); font-style: italic; font-size: 20px; color: var(--rk-crimson); }
.rk-emphasis p { padding-bottom: 30px; }

/* Thin rule under titles */
.et_pb_divider.rk-rule { max-width: 1045px; margin: 24px auto 40px !important; height: 1px; }
.et_pb_divider.rk-rule-left { margin: 16px 0 28px !important; max-width: 625px; }

/* Buttons: CTAs use the Rose & Key Animated Button module (rose-key-divi5-native plugin).
   The contact form's Send button gets the Transitional style via the form class `rkd5-transitional-submit`. */
.rkd5_animated_button { text-align: left; }
.rk-center .rkd5_animated_button { text-align: center; }
:where(.rk-caption) .et_pb_text_inner { font-style: italic; font-size: 13px; line-height: 1.4; color: var(--rk-gold); }
.rk-caption p { padding-top: 6px; width: 326px; }
/* "Powered by <manager>" line under Reserve Your Stay: booking happens on the manager's site (upright and grey, a note). */
:where(.rk-caption .rk-powered) { font-style: normal; color: var(--rk-grey-text); letter-spacing: .02em; }
.rk-property .rkd5_animated_button { margin-bottom: 0 !important; }

/* Header */
.rk-header .et_pb_row { padding: 0; }
.rk-header-row { display: flex; align-items: center; }
.rk-logo { text-align: center; }
.rk-logo img { width: 146px; }
.rk-header .et_pb_divider.rk-rule { margin: 14px auto 12px !important; }

/* Full-bleed photos framed in gold */
.rk-hero { border-top: 6px solid var(--rk-gold); border-bottom: 1px solid var(--rk-gold); }
.rk-hero img { max-height: 900px; object-fit: cover; }
/* Hero fills exactly the room left in the first screen, so the whole opening block (header + H1, intro band, photo,
   trust bar) is above the fold. js/site.js sets --rk-above-fold-rest (that block's height minus the photo). svh = the viewport with the
   mobile address bar showing, so the photo doesn't jump as the bar hides. The 640px default is the no-JS fallback. */
.rk-hero img { display: block; width: 100%; height: clamp(140px, calc(100svh - var(--rk-above-fold-rest, 640px)), 900px); }
/* Short screens: a more compact header and band leave the hero a useful height (builder paddings, hence !important). */
@media (max-height: 960px) {
  .et_pb_section.rk-header { padding-top: 12px !important; padding-bottom: 20px !important; }
  .rk-logo img { width: 100px; }
  .rk-header .et_pb_divider.rk-rule { margin: 10px auto 8px !important; }
}
/* Very short screens (small phones like the iPhone SE): tighter still, and a lower hero minimum. */
@media (max-height: 700px) {
  .et_pb_section.rk-header { padding-top: 8px !important; padding-bottom: 14px !important; }
  .rk-logo img { width: 80px; }
  .rk-header .et_pb_divider.rk-rule { margin: 8px auto 6px !important; }
  .et_pb_section.rk-trust { padding-top: 12px !important; padding-bottom: 7px !important; }
  .rk-hero img { height: clamp(110px, calc(100svh - var(--rk-above-fold-rest, 560px)), 900px); }
}
/* Small phones (360×640, iPhone SE): a more compact band button so the trust bar still ends on the first screen. */
@media (max-height: 700px) and (max-width: 767px) {
  .rk-band .et_pb_column { row-gap: 8px !important; }
  .rk-band .rkd5-button { min-height: 40px !important; }
}

/* Trust badges */
.rk-trust { border-bottom: 6px solid var(--rk-gold); overflow: hidden; padding: 16px 0 11px !important; } /* bottom ~5px less: the captions' line height already adds that much space under the text, so the visible space above and below is equal */
/* Trust bar: a one-line strip at every width. The body script (rk-body-scripts.html) repeats the badges
   and sets --rk-marquee-duration; .rk-marquee then loops it with translateX(-50%). Without JS it's a swipeable row. */
.rk-trust .et_pb_row.rk-badges { display: flex; flex-wrap: nowrap; align-items: flex-end; width: 100% !important; max-width: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.rk-trust .et_pb_row.rk-badges.rk-marquee { width: max-content !important; overflow: visible; animation: rk-marquee var(--rk-marquee-duration, 40s) linear infinite; }
.rk-badges.rk-marquee:hover { animation-play-state: paused; }
.rk-badges .et_pb_column { display: block; flex: 0 0 auto; width: auto !important; margin: 0 !important; padding: 0 44px; text-align: center; }
.rk-badge-logo { text-align: center; margin-bottom: 6px !important; }
.rk-badge-logo img { max-height: 40px; max-width: 120px; width: auto; }
.rk-badge-logo-wide img { max-width: 200px; } /* wide wordmarks (Booking.com, Homes & Villas), so they aren't shrunk to half the height of the others */
:where(.rk-badge) .et_pb_text_inner { font-size: 13px; letter-spacing: .02em; }
.rk-badge p { white-space: nowrap; }
.rk-badge p.rk-stars { color: var(--rk-gold); font-size: 20px; letter-spacing: 2px; line-height: 1.4; padding-bottom: 1px; } /* leaves the same visible gap to the caption as the logos (measured on screenshots: 12.5px desktop, 13.5px tablet, 10.5px phone) */
@keyframes rk-marquee { to { transform: translateX(-50%); } }

/* Black intro band */
:where(.rk-band-text) .et_pb_text_inner { font-size: clamp(18px, 1.35vw, 22px); line-height: 1.25; color: var(--rk-gold); } /* scales so its two lines stay two lines down to laptop widths */
.rk-band-text p { text-wrap: balance; }
/* Intro band: tight spacing around the text (builder paddings, hence !important). The top is ~4px less because the
   font leaves that much room above the capitals, so the visible space above and below the text is equal. */
.et_pb_section.rk-band { padding-top: 16px !important; padding-bottom: 19px !important; }
.rk-band .et_pb_row { padding-top: 0 !important; padding-bottom: 0 !important; }
/* The 6px gold rule sits on top of the band (between the H1 and the band), not between the band and the hero photo. */
.rk-band { border-top: 6px solid var(--rk-gold); }
.rk-band + .rk-hero { border-top: 0; }
/* Band CTA: the Transitional "Explore the Collection" button follows the text. From 768px up it always sits beside
   the text (the text column shrinks and wraps); on phones it drops below it, centered. */
.rk-band .et_pb_column { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; column-gap: clamp(32px, 3vw, 56px); row-gap: 14px; }
.rk-band .et_pb_module { margin-bottom: 0 !important; }
.rk-band .et_pb_text { flex: 0 1 auto; width: auto; min-width: 0; max-width: 100%; }
.rk-band .rkd5_animated_button { flex: 0 0 auto; width: auto; max-width: 100%; }
/* Outline (Transitional) button on black: the plugin's gold border (1px + 4px left bar), light text. Hover is the same
   as the Primary buttons: crimson fill, traveling gold border, white arrow. The frame stroke doesn't scale with the
   shorter-than-70px button, so it stays 1px (the left bar is non-scaling in the plugin). */
.rk-band .rkd5-button { min-width: 0; min-height: 52px; padding: 0 26px; gap: 16px; font-size: 14px; letter-spacing: 2.5px; color: #fafbff !important; }
.rk-band .rkd5-rect, .rk-band .rkd5-left { vector-effect: non-scaling-stroke; }
.rk-band .rkd5-button:hover { background: #8b0000; }
.rk-band .rkd5-button:hover .rkd5-arrow path { stroke: #fff; stroke-width: 3; }
.rk-band .rkd5-button:focus-visible { outline: 2px solid #fafbff; outline-offset: 3px; }
.rk-band .rkd5-arrow { width: 28px; height: 16px; }
/* Below ~1860px the two <br> lines no longer fit beside the button: drop the break, balance the lines, use more width. */
@media (max-width: 1859px) { .rk-band-text br { display: none; } .rk-band .et_pb_row { width: 90% !important; } }

/* Perfect For grid */
.rk-occasions .et_pb_column { text-align: center; margin-bottom: 40px; }
.rk-occasion-icon { text-align: center; margin-bottom: 18px !important; }
.rk-occasion-icon img { height: 125px; width: auto; }
:where(.rk-occasion) .et_pb_text_inner { font-size: 24px; line-height: 1.38; letter-spacing: .02em; color: var(--rk-charcoal); }

/* Three-up feature columns with hairline separators */
.rk-features .et_pb_column + .et_pb_column { border-left: 1px solid var(--rk-light-grey); padding-left: 3%; }
.rk-features .et_pb_column { padding-top: 10px; padding-bottom: 30px; }
.rk-features .rk-feature p, .rk-features .rk-feature ul { max-width: 335px; margin: 0 auto; }
.rk-features .rk-feature p + p { margin-top: 1em; }

/* Image treatment: 1px gold frame, 4px gold left bar, no drop shadow (clean edge) */
.rk-frame img { border: 1px solid var(--rk-gold); border-left: 4px solid var(--rk-gold); display: block; width: 100%; }
.rk-frame { margin-bottom: 24px !important; }
/* Video modules with .rk-frame (property showcases): the same gold frame on the module, the videos' 16:9 shape
   (.rk-ratio-3x2 for a 3:2 one), and the player or embed filling it. */
.et_pb_video.rk-frame { box-sizing: border-box; width: 100%; border: 1px solid var(--rk-gold); border-left: 4px solid var(--rk-gold); border-radius: 0; }
.et_pb_video.rk-frame .et_pb_video_box { aspect-ratio: 16 / 9; overflow: hidden; }
.et_pb_video.rk-frame.rk-ratio-3x2 .et_pb_video_box { aspect-ratio: 3 / 2; }
.et_pb_video.rk-frame .et_pb_video_box :is(.fluid-width-video-wrapper, iframe, object, embed, video) { position: absolute; inset: 0; width: 100% !important; height: 100% !important; padding: 0 !important; object-fit: cover; }
/* Play button (img/play.svg): solid black disc with a hairline gold ring and a 4px gold outlined triangle.
   Replaces Divi's icon-font glyph; same centring. */
.et_pb_video.rk-frame .et_pb_video_play { width: 88px; height: 88px; margin: -44px 0 0 -44px; font-size: 0; line-height: 0; }
.et_pb_video.rk-frame .et_pb_video_play::before { content: ''; display: block; width: 100%; height: 100%; background: url(img/play.svg?v=2) center / contain no-repeat; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
@media (max-width: 767px) { .et_pb_video.rk-frame .et_pb_video_play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } }
/* Video frame hover = the Primary button hover: the 4px left bar drops away and a gold segment travels once around the
   frame, ending on the left edge as the bar again. js/site.js adds svg.rk-frame-travel over the border box and sets the
   dash (left-edge length) and --rk-travel (minus the perimeter) from the frame's pixel size. */
.et_pb_video.rk-frame { position: relative; overflow: visible; transition: border-left-color .01s ease .8s; }
.et_pb_video.rk-frame.has-travel:hover { border-left-color: transparent; transition: border-left-color .01s; }
.rk-frame-travel { position: absolute; top: -1px; left: -4px; width: calc(100% + 5px); height: calc(100% + 2px); z-index: 11; pointer-events: none; overflow: hidden; } /* above Divi's cover image (z-index 10) */
.rk-frame-travel path { fill: none; stroke: var(--rk-gold); stroke-width: 4; opacity: 0; }
.rk-frame.has-travel:hover .rk-frame-travel path { opacity: 1; animation: rk-frame-travel var(--rk-travel-time, .8s) cubic-bezier(.77, 0, .175, 1) forwards; }
/* Same hover on the framed photos in "Exactly as pictured": the border is on the img, so the SVG sits in the image wrap
   (same size as the img's border box) and the img's left border is what drops away. */
.rk-promise .rk-frame .et_pb_image_wrap { display: block; position: relative; }
.rk-promise .rk-frame img { transition: border-left-color .01s ease .8s; }
.rk-promise .rk-frame.has-travel:hover img { border-left-color: transparent; transition: border-left-color .01s; }
.rk-promise .rk-frame .rk-frame-travel { top: 0; left: 0; width: 100%; height: 100%; }
/* …and the same darkening as Divi's video hover (rgba(0,0,0,.6), .5s ease-in-out), inside the frame, under the sweep. */
.rk-promise .rk-frame .et_pb_image_wrap::after { content: ''; position: absolute; inset: 1px 1px 1px 4px; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .5s ease-in-out; pointer-events: none; z-index: 1; }
.rk-promise .rk-frame:hover .et_pb_image_wrap::after { opacity: 1; }
@keyframes rk-frame-travel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: var(--rk-travel); } }
@media (prefers-reduced-motion: reduce) {
  .et_pb_video.rk-frame.has-travel:hover { border-left-color: var(--rk-gold); }
  .rk-frame.has-travel:hover .rk-frame-travel path { animation: none; opacity: 0; }
  .rk-promise .rk-frame.has-travel:hover img { border-left-color: var(--rk-gold); }
}

/* Split rows (image + copy) */
.rk-split { display: flex; align-items: center; }
:where(.rk-goal) .et_pb_text_inner { font-family: var(--rk-serif); font-style: italic; font-size: 20px; color: var(--rk-black); }
:where(.rk-goal) span { color: var(--rk-crimson); }

/* Nested image rows */
.et_pb_row_inner.et_block_row { width: 100%; max-width: none; padding: 0 !important; display: flex; gap: 24px; align-items: center; }
/* Divi's clearfix pseudo-elements would become extra flex items (and extra gaps). */
.et_pb_row_inner.et_block_row::before, .et_pb_row_inner.et_block_row::after { display: none; }
.et_pb_row_inner .et_pb_column { flex: 1 1 0; width: auto !important; margin: 0 !important; }

/* Property showcases */
.rk-property { display: flex; align-items: center; }
.rk-state { font-family: var(--rk-serif); font-style: italic; font-size: 96px; line-height: 1; color: var(--rk-light-grey); margin-bottom: 0; }
:where(.rk-property-name) .et_pb_text_inner h3 { font-family: var(--rk-serif); font-weight: 700; font-size: 32px; color: var(--rk-black); padding: 0; }
:where(.rk-tagline) .et_pb_text_inner { font-size: 26px; color: var(--rk-gold); line-height: 1.3; }
.rk-tagline p { padding-bottom: 30px; }
:where(.rk-property-copy) .et_pb_text_inner { font-size: 18px; line-height: 1.5; }
.rk-property-copy p { padding-bottom: 1.5em; }
/* Last line of each property description (p.rk-rate-line): the book-direct rate offer, set off like a pull quote with the
   4px gold left bar used on photos and buttons. At ≤980px (stacked showcases) js/site.js shows a copy (.rk-rate-line--phone) right above
   Reserve Your Stay instead, since the reflow puts the testimonial between the description and the button. */
:where(.rk-rate-line) { font-family: var(--rk-serif); font-style: italic; font-weight: 700; font-size: 22px; line-height: 1.35; color: var(--rk-gold-text); }
p.rk-rate-line { border-left: 4px solid var(--rk-gold); padding: 2px 0 2px 16px; }
p.rk-rate-line--phone { display: none; }
:where(.rk-property-copy) strong { font-weight: 500; color: var(--rk-black); }

/* Guest quotes */
.rk-quote blockquote { border: 0; margin: 20px auto 0; padding: 0; max-width: 560px; position: relative; }
.rk-quote blockquote::before { content: '“'; font-family: var(--rk-serif); font-style: normal; font-size: 144px; line-height: 1; color: var(--rk-light-grey); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); }
:where(.rk-quote) .et_pb_text_inner blockquote { font-family: var(--rk-serif); font-style: italic; font-size: 18px; line-height: 1.33; color: var(--rk-crimson); }
/* Quote mark centered above the text, author centered below: one vertical axis through the block. */
.rk-quote blockquote p { padding: 49px 0 0; }
/* The Visual Builder wraps the author in its own <p>: keep it tight under the text. */
.rk-quote blockquote p:has(> cite) { padding: 12px 0 0; }
.rk-quote cite { display: block; font-family: var(--rk-sans); text-align: center; font-style: normal; font-size: 12px; color: var(--rk-charcoal); }

/* "Exactly as pictured": row of 4 photos / large photo + text & quote / row of 3 photos, 24px apart.
   Gallery photos share a 3:2 crop so each row lines up. */
.et_pb_row.rk-gallery { display: flex; gap: 24px; padding: 0 !important; }
.et_pb_row.rk-gallery::before, .et_pb_row.rk-gallery::after { display: none; }
.rk-gallery > .et_pb_column { flex: 1 1 0; width: auto !important; margin: 0 !important; }
.rk-gallery .rk-frame, .rk-promise-photo .rk-frame { margin-bottom: 0 !important; }
.rk-gallery .rk-frame img { aspect-ratio: 3 / 2; object-fit: cover; }
/* Property showcases: the two small photos share one 3:2 crop, so a 4:3 upload (Vilano Rose) lines up with its neighbour. */
.rk-property .et_pb_image.rk-frame img { aspect-ratio: 3 / 2; object-fit: cover; }
.rk-promise .et_pb_row.rk-split { padding: 24px 0 !important; }
@media (min-width: 1280px) {
  /* Text + quote sit centered beside the large photo with 40px above and below; the photo fills that height. */
  .rk-promise .et_pb_row.rk-split { align-items: stretch; }
  .rk-promise .rk-split > .et_pb_column:last-child { display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
  .rk-promise-photo .rk-frame, .rk-promise-photo .et_pb_image_wrap { height: 100%; }
  .rk-promise-photo .rk-frame img { height: 100%; object-fit: cover; }
}
@media (max-width: 1279px) {
  /* Below 1280px the text would stretch the photo into a portrait crop, so this row stacks:
     full-width photo, then text + quote with equal 40px above and below. */
  .rk-promise .et_pb_row.rk-split { display: block; padding-bottom: 40px !important; }
  .rk-promise .rk-split > .et_pb_column { width: 100% !important; margin-right: 0 !important; float: none; }
  .rk-promise-photo { margin-bottom: 40px !important; }
}

/* Settle vs choose */
/* Two columns centered under the headline, split evenly by the divider (same width as the title rule). */
.et_pb_row.rk-choices { display: flex; max-width: 1045px; }
.rk-choices .et_pb_column { display: grid; grid-template-columns: 72px 1fr; column-gap: 14px; align-items: center; align-content: start; width: 50% !important; margin: 0 !important; padding: 10px 50px 30px; }
.rk-choices .et_pb_column + .et_pb_column { padding-left: 50px; }
.rk-choice-icon img { width: 68px; display: block; }
/* No module margin under the icon (Divi adds 30px on phones), so the grid centres the icon itself on the h4. */
.rk-choices .et_pb_module.rk-choice-icon { margin: 0 !important; }
.rk-choices .rk-feature { display: contents; }
:where(.rk-choices .rk-feature) .et_pb_text_inner h4 { text-align: left; color: var(--rk-crimson); padding: 0; }
.rk-choices .rk-feature .et_pb_text_inner { display: contents; }
.rk-choices .rk-feature p { grid-column: 1 / -1; margin: 40px 0 0; max-width: none; }

/* Contact form */
.et_pb_row.rk-contact-row { max-width: 846px; }
.rk-contact .input::placeholder { color: transparent; }
.rk-contact .et_pb_contact_form { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 0; }
.rk-contact .rk-field-half { width: calc(50% - 12px) !important; margin: 0 0 30px !important; padding: 0 !important; }
.rk-contact .rk-field-full { width: 100% !important; margin: 0 0 30px !important; padding: 0 !important; }
.rk-contact label, .rk-contact .et_pb_contact_form_label { display: block !important; }
:where(.rk-contact) :is(label, .et_pb_contact_form_label) { font-size: 18px; color: var(--rk-muted); margin-bottom: 12px; }
.rk-contact input.input, .rk-contact textarea.input { background: #fff !important; border: 1px solid var(--rk-muted) !important; border-radius: 0; padding: 14px; font-family: var(--rk-sans); color: var(--rk-charcoal); }
/* Field alignment (builder) centers the labels; typed text stays left-aligned. */
.rk-contact input.input, .rk-contact textarea.input { text-align: left; }
.rk-contact textarea.input { min-height: 105px; height: 105px; }
.rk-contact .et-pb-contact-message, .rk-contact .et-pb-contact-message p { text-align: center; } /* success (and error) message after sending */
.rk-contact .et_contact_bottom_container { float: none; width: 100%; display: flex; justify-content: flex-end; margin: 0; }
/* Divi's basic math captcha ("7 + 15 = [ ]"), on since 2026-10-27: one row beside Send, 24px apart. */
.rk-contact .et_contact_bottom_container { align-items: center; gap: 24px; }
.rk-contact .et_pb_contact_right { float: none; margin: 0; padding: 0; }
.rk-contact .et_pb_contact_right p { margin: 0; padding: 0; }
.rk-contact .et_pb_contact_right label { display: flex !important; align-items: center; gap: 10px; margin: 0; white-space: nowrap; }
.rk-contact input.et_pb_contact_captcha { width: 72px !important; height: 50px; padding: 0 8px; text-align: center; }

/* Footer */
.et_pb_section.rk-footer { border-top: 4px solid var(--rk-gold); }
:where(.rk-footer-text) .et_pb_text_inner { font-family: var(--rk-serif); font-style: italic; font-size: 15px; color: var(--rk-gold); }
.rk-footer-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.rk-footer-text a:hover { color: var(--rk-white, #fff); }

/* Privacy Policy page (page 3): same header and footer sections as Home, then one rk-legal text module. */
.et_pb_section.rk-legal-section { padding: 40px 0 90px; }
.rk-legal-section .et_pb_row { max-width: 780px; }
:where(.rk-legal) .et_pb_text_inner { font-size: 17px; line-height: 1.65; color: var(--rk-charcoal); }
:where(.rk-legal) .et_pb_text_inner h2 { font-family: var(--rk-serif); font-size: 26px; line-height: 1.3; color: var(--rk-black, #000); }
.rk-legal h2 { padding: 28px 0 10px; }
.rk-legal p, .rk-legal ul { padding-bottom: 1em; }
.rk-legal ul { padding-left: 1.2em; list-style: disc; }
.rk-legal li { padding-bottom: .6em; }
.rk-legal a { color: var(--rk-crimson); text-decoration: underline; text-underline-offset: 3px; }

/* Tablet */
@media (max-width: 980px) {
  :where(.rk-title) .et_pb_text_inner :is(h1, h2) { font-size: 36px; }
  .rk-hero-title h1 em { display: block; } /* second line on tablet/phone (was a separate tablet copy of the H1, which Divi swapped in by JS and caused layout shift) */
  :where(.rk-lead, .rk-lead.rk-lead-left) .et_pb_text_inner { font-size: 22px; }
  :where(.rk-band-text) .et_pb_text_inner { font-size: 16px; line-height: 1.3; }
  .et_pb_section.rk-band { padding-top: 14px !important; padding-bottom: 17px !important; }
  .rk-band .et_pb_row { width: 90% !important; }
  .rk-band .et_pb_column { column-gap: 24px; }
  .rk-band .rkd5-button { min-height: 44px; padding: 0 18px; gap: 12px; font-size: 12px; letter-spacing: 2px; }
  .rk-band .rkd5-arrow { width: 24px; height: 14px; }
  .rk-header-row, .rk-split { display: block; }
  /* Property showcases: flatten both columns, then order as
     state + name → images → supporting text → testimonial → CTA. */
  .et_pb_row.rk-property { display: flex; flex-direction: column; align-items: stretch; }
  .rk-property > .et_pb_column { display: contents; }
  .rk-property > .et_pb_column > * { width: 100% !important; }
  .rk-property .rk-frame .et_pb_image_wrap { display: block; }
  .rk-property .rk-property-name { order: 1; }
  .rk-property > .et_pb_column > .rk-frame, .rk-property .et_pb_row_inner { order: 2; }
  .rk-property .rk-rule, .rk-property .rk-tagline, .rk-property .rk-property-copy { order: 3; }
  .rk-property .rk-quote { order: 4; margin-bottom: 40px !important; }
  .rk-property .rkd5_animated_button, .rk-property .rk-caption { order: 5; }
  .rk-property .rkd5_animated_button { text-align: center; }
  /* Rate line: the description's copy is hidden and js/site.js's copy sits after the testimonial, above the button. */
  .rk-property-copy p.rk-rate-line { display: none !important; }
  .rk-property > .et_pb_column > p.rk-rate-line--phone { display: table; order: 5; width: auto !important; margin: 0 auto 14px; text-align: left; }
  .rk-property .rk-caption p { width: 100%; }
  .rk-property .rk-property-name { margin-bottom: 24px; }
  .rk-property .et_pb_row_inner { margin-bottom: 8px; }
  .et_pb_row.rk-gallery-top { flex-wrap: wrap; }
  .rk-gallery-top > .et_pb_column { flex: 1 1 calc(50% - 12px); }
  .rk-header-link, .rk-header-row .et_pb_column:first-child { display: none; }
  .rk-trust { padding: 14px 0 9px !important; }
  .rk-badges .et_pb_column { padding: 0 32px; }
  .rk-badge-logo img { max-height: 34px; max-width: 100px; }
  .rk-badge-logo-wide img { max-width: 170px; }
  :where(.rk-badge) .et_pb_text_inner { font-size: 12px; }
  .rk-badge p.rk-stars { font-size: 18px; padding-bottom: 1px; }
  .rk-features .et_pb_column + .et_pb_column { border-left: 0; border-top: 1px solid var(--rk-light-grey); padding: 40px 0 0; }
  .rk-occasions .et_pb_column { width: 47.25% !important; }
  .rk-occasions .et_pb_column:nth-child(2n) { margin-right: 0 !important; }
  .rk-state { font-size: 72px; }
}

/* Tablet only: the multi-column text rows stay side by side (three-column .rk-features rows and the
   two-column If You Settle / When You Choose row); they stack only on phones. */
@media (min-width: 768px) and (max-width: 980px) {
  .rk-choices .et_pb_column { width: 50% !important; padding: 10px 30px 30px; }
  .rk-choices .et_pb_column + .et_pb_column { border-top: 0; border-left: 1px solid var(--rk-light-grey); padding: 10px 30px 30px; }
  .et_pb_row.rk-features:not(.rk-choices) { display: flex; gap: 3%; }
  .et_pb_row.rk-features:not(.rk-choices)::before, .et_pb_row.rk-features:not(.rk-choices)::after { display: none; }
  .rk-features:not(.rk-choices) > .et_pb_column { flex: 1 1 0; width: auto !important; margin: 0 !important; padding: 10px 0 30px; }
  .rk-features:not(.rk-choices) > .et_pb_column + .et_pb_column { border-top: 0; border-left: 1px solid var(--rk-light-grey); padding: 10px 0 30px 3%; }
}

/* Tablet only: "Perfect For" icons flow as one 3-column grid. The section becomes a 6-track grid, its two
   4-icon rows are flattened (display: contents) and each icon spans 2 tracks; the last two are centered. */
@media (min-width: 768px) and (max-width: 980px) {
  .et_pb_section.rk-perfect-for { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 24px; padding-left: 10%; padding-right: 10%; }
  .rk-perfect-for > .et_pb_row:not(.rk-occasions) { grid-column: 1 / -1; width: 100%; }
  .rk-perfect-for > .et_pb_row.rk-occasions { display: contents; }
  /* Clearfix pseudo-elements of the section and flattened rows would otherwise take grid slots. */
  .et_pb_section.rk-perfect-for::before, .et_pb_section.rk-perfect-for::after,
  .rk-perfect-for > .et_pb_row.rk-occasions::before, .rk-perfect-for > .et_pb_row.rk-occasions::after { display: none; }
  .rk-perfect-for .rk-occasions > .et_pb_column { grid-column: span 2; width: auto !important; margin: 0 0 40px !important; }
  .rk-perfect-for .rk-occasions + .rk-occasions > .et_pb_column:nth-child(3) { grid-column: 2 / span 2; }
  .rk-occasion-icon img { height: 100px; }
  :where(.rk-occasion) .et_pb_text_inner { font-size: 18px; }
}

/* Phone */
@media (max-width: 767px) {
  .et_pb_text_inner :is(h1, h2) { font-size: 25px; }
  .rk-contact :is(input.input, textarea.input, input.et_pb_contact_captcha) { font-size: 16px; } /* under 16px, iOS Safari zooms in on focus now that the viewport allows zoom */ /* every H1 and H2: ties the base title rule and comes later; builder font settings (.et_pb_text_N …) still win */
  :where(.rk-lead, .rk-band-text, .rk-lead.rk-lead-left, .rk-tagline) .et_pb_text_inner { font-size: 20px; }
  .rk-band-text br { display: none; }
  :where(.rk-band-text) .et_pb_text_inner { font-size: 15px; line-height: 1.33; }
  .et_pb_section.rk-band { padding-top: 12px !important; padding-bottom: 14px !important; }
  .rk-band .et_pb_column { flex-wrap: wrap; row-gap: 10px; }
  .rk-band .et_pb_row { width: calc(100% - 32px) !important; } /* 16px side gutters */
  .rk-band .rkd5-button { min-height: 42px; padding: 0 18px; gap: 12px; font-size: 12px; letter-spacing: 2px; white-space: nowrap; }
  :where(.rk-occasion) .et_pb_text_inner { font-size: 18px; }
  .rk-occasion-icon img { height: 90px; }
  .rk-trust { padding: 12px 0 7px !important; }
  .rk-badges .et_pb_column { padding: 0 18px; }
  .rk-badge-logo { margin-bottom: 4px !important; }
  .rk-badge-logo img { max-height: 30px; max-width: 90px; }
  .rk-badge-logo-wide img { max-width: 150px; }
  :where(.rk-badge) .et_pb_text_inner { font-size: 13px; }
  .rk-badge p.rk-stars { font-size: 16px; letter-spacing: 1px; padding-bottom: 0; }
  .rk-caption p { width: 100%; }
  .et_pb_row.rk-choices { flex-direction: column; }
  .rk-choices .et_pb_column { width: 100% !important; padding: 0 0 30px; }
  .rk-choices .et_pb_column + .et_pb_column { padding: 40px 0 0; }
  .rk-contact .rk-field-half { width: 100% !important; }
  .rk-contact .et_contact_bottom_container .et_pb_button_wrapper, .rk-contact .et_contact_bottom_container .rkd5-button { width: 100%; }
  .rk-contact .et_contact_bottom_container { flex-direction: column; align-items: stretch; gap: 20px; }
  .rk-contact .et_pb_contact_right label { justify-content: center; }
  :where(.rk-property-copy) .et_pb_text_inner { font-size: 16px; }
  :where(.rk-rate-line) { font-size: 19px; }
  .et_pb_row.rk-gallery-bottom { flex-wrap: wrap; }
  .rk-gallery-bottom > .et_pb_column { flex: 1 1 calc(50% - 12px); }
  .rk-gallery-bottom > .et_pb_column:last-child { flex-basis: 100%; }
  /* Section padding from "Planning…" down: 33% less than desktop/tablet (values = round(0.67 × original)). */
  .et_pb_section.rk-planning { padding-top: 74px !important; padding-bottom: 74px !important; }
  .et_pb_section.rk-family { padding-top: 87px !important; padding-bottom: 40px !important; }
  .et_pb_section.rk-steps { padding-top: 74px !important; padding-bottom: 54px !important; }
  .et_pb_section.rk-gathering { padding-top: 74px !important; padding-bottom: 40px !important; }
  .et_pb_section.rk-gathering-features { padding-top: 40px !important; padding-bottom: 60px !important; }
  .et_pb_section.rk-property-section { padding-top: 80px !important; padding-bottom: 67px !important; }
  .et_pb_section.rk-promise { padding-top: 74px !important; padding-bottom: 74px !important; }
  .et_pb_section.rk-remember { padding-top: 54px !important; padding-bottom: 60px !important; }
  .et_pb_section.rk-find { padding-top: 67px !important; padding-bottom: 67px !important; }
  .et_pb_section.rk-contact-section { padding-top: 74px !important; padding-bottom: 60px !important; }
  .et_pb_section.rk-footer { padding-top: 17px !important; padding-bottom: 17px !important; }
}

/* Quick bar (all viewports): logo + Explore link, slides in once the hero has scrolled away (functions.php, js/site.js). */
html { scroll-padding-top: 88px; } /* in-page jumps land below the quick bar */
.rk-quick-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999; height: 72px;
  padding: 0 max(10%, calc((100% - 1560px) / 2)); /* lines up with the header row (80% wide, max 1560px) */
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rk-gold); box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transform: translateY(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
}
.rk-quick-bar.is-visible { transform: none; visibility: visible; transition: transform .3s ease; }
.rk-quick-bar__logo img { display: block; height: 56px; width: auto; }
/* Explore button: the plugin's Primary button (same look and hover as the page CTAs), compact to fit the bar. The SVG
   border is drawn for a 70px button, so its strokes are kept from scaling. */
.rk-quick-bar .rkd5-wrap { min-width: 0; }
.rk-quick-bar .rkd5-button { min-width: 0; min-height: 52px; padding: 0 26px; gap: 16px; white-space: nowrap; font-size: 14px; letter-spacing: 2.5px; }
.rk-quick-bar .rkd5-rect, .rk-quick-bar .rkd5-left { vector-effect: non-scaling-stroke; }
.rk-quick-bar .rkd5-arrow { width: 28px; height: 16px; }
/* Property row (all viewports, built by js/site.js): within the property sections it takes the quick bar's place,
   marking the current property; tapping a name scrolls to that property. */
.rk-quick-bar.is-visible.is-replaced { transform: translateY(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.rk-property-nav {
  display: flex; justify-content: center; align-items: stretch; gap: clamp(24px, 4vw, 64px);
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999; height: 72px; padding: 0 16px;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rk-gold); box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transform: translateY(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
}
.rk-property-nav.is-visible { transform: none; visibility: visible; transition: transform .3s ease; }
.rk-property-nav a {
  display: flex; align-items: center; padding: 0 8px; border-bottom: 2px solid transparent;
  font: 400 15px/1 var(--rk-sans); letter-spacing: .02em; color: var(--rk-grey-text); text-decoration: none; white-space: nowrap;
  transition: color .2s ease;
}
.rk-property-nav a:hover { color: var(--rk-charcoal); }
.rk-property-nav a[aria-current] { color: var(--rk-charcoal); font-weight: 500; border-bottom-color: var(--rk-gold); }
.rk-property-nav a:focus-visible { outline: 2px solid var(--rk-gold); outline-offset: -2px; }
body.admin-bar :is(.rk-quick-bar, .rk-property-nav) { top: 32px; } /* WordPress admin bar is fixed: 32px from 783px, 46px from 601px, scrolls away below */
@media (max-width: 782px) { body.admin-bar :is(.rk-quick-bar, .rk-property-nav) { top: 46px; } }
@media (max-width: 600px) { body.admin-bar :is(.rk-quick-bar, .rk-property-nav) { top: 0; } }

/* Phones: slimmer quick bar and property row, collapsible property descriptions, readable sizes and contrast. */
.rk-more-toggle { display: none; }
@media (max-width: 767px) {
  html { scroll-padding-top: 64px; }
  .rk-quick-bar { height: 56px; padding: 0 16px; }
  .rk-quick-bar__logo img { height: 44px; }
  /* Header: compact logo, even spacing logo → rule → H1, and 16px gutters so the H1 needs only two lines. Divi's 30px
     bottom margin on stacked columns sat under the logo. */
  .et_pb_section.rk-header { padding-top: 12px !important; padding-bottom: 16px !important; }
  .rk-header .et_pb_row { width: calc(100% - 32px) !important; }
  .rk-header-row .et_pb_column { margin-bottom: 0 !important; }
  .rk-logo img { width: 88px; }
  .rk-header .et_pb_divider.rk-rule { margin: 10px auto 10px !important; }
  .rk-quick-bar .rkd5-button { min-height: 40px; padding: 0 14px; gap: 10px; font-size: 11px; letter-spacing: 1.5px; }
  .rk-quick-bar .rkd5-arrow { width: 20px; height: 12px; }
  .rk-property-nav { justify-content: space-between; gap: 0; height: 48px; padding: 0 10px; }
  .rk-property-nav a { padding: 0 6px; font-size: 14px; }
  .rk-property-nav__rest { display: none; } /* short names so all four fit on a 320px phone */

  .rk-collapsible:not(.is-open) > p:not(:first-of-type) { display: none; }
  .rk-more-toggle {
    display: inline-flex; align-items: center; min-height: 44px; margin-top: -1em; padding: 0;
    background: none; border: 0; cursor: pointer;
    font: 500 15px/1 var(--rk-sans); color: var(--rk-crimson); text-decoration: underline; text-underline-offset: 4px;
  }

  :where(.rk-lead, .rk-tagline, .rk-caption) .et_pb_text_inner { color: var(--rk-gold-text); }
  :where(.rk-contact) :is(label, .et_pb_contact_form_label) { color: var(--rk-grey-text); }
  .rk-quote cite { font-size: 14px; }
}

/* After the phone block so it wins over its transitions. */
@media (prefers-reduced-motion: reduce) {
  .rk-quick-bar, .rk-quick-bar.is-visible, .rk-quick-bar.is-visible.is-replaced, .rk-property-nav, .rk-property-nav.is-visible { transition: none; }
}

/* Small phones: the Animated Button narrows (plugin ≤480px rules), so the caption shrinks to stay inside it. */
@media (max-width: 480px) {
  /* Wraps within the narrowest button (256px at 320px wide) rather than shrinking below 13px. */
  :where(.rk-property .rk-caption) .et_pb_text_inner { font-size: 13px; }
  .rk-property .rk-caption p { max-width: 256px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rk-trust .et_pb_row.rk-badges.rk-marquee { width: 100% !important; overflow-x: auto; animation: none; }
  .rk-badges .rk-badge-copy { display: none; }
}

/* Short phones (iPhone SE and smaller): an even smaller header. Last in the file so it beats the phone header rules. */
@media (max-height: 700px) and (max-width: 767px) {
  .et_pb_section.rk-header { padding-top: 8px !important; padding-bottom: 12px !important; }
  .rk-logo img { width: 76px; }
  .rk-header .et_pb_divider.rk-rule { margin: 8px auto 8px !important; }
}

/* Inner shadow on every photo: a soft vignette drawn on a layer over the picture (an inset box-shadow on an <img>
   would sit under the image). Framed photos keep it inside the gold border (1px, 4px left); their ::after is the hover
   darkening, so the shadow uses ::before. Video covers are background images, so the inset shadow paints over them
   directly. Icons and logos are left alone. */
:root { --rk-inner-shadow: inset 0 0 28px rgba(0, 0, 0, .32), inset 0 0 6px rgba(0, 0, 0, .18); }
:is(.rk-hero-image, .rk-wide-image, .rk-frame) .et_pb_image_wrap { position: relative; display: block; }
:is(.rk-hero-image, .rk-wide-image, .rk-frame) .et_pb_image_wrap::before { content: ''; position: absolute; inset: 0; box-shadow: var(--rk-inner-shadow); pointer-events: none; z-index: 1; }
.rk-frame .et_pb_image_wrap::before { inset: 1px 1px 1px 4px; }
:is(.rk-hero-image, .rk-wide-image) .et_pb_image_wrap::before { box-shadow: inset 0 0 90px rgba(0, 0, 0, .35), inset 0 0 12px rgba(0, 0, 0, .15); }
.et_pb_video.rk-frame .et_pb_video_overlay { box-shadow: var(--rk-inner-shadow); }

/* "Perfect For" labels stay on their two designed lines (the <br>) at every width: the longest line, "& Special
   Celebrations", is about 11.7× the font size wide, so the size follows the column width and the rows get a little
   more room (wider row, tighter gutters). Below ~360px the 14px floor wins and that one label wraps to 3 lines. */
@media (min-width: 981px) {
  .et_pb_row.rk-occasions { display: flex; justify-content: center; gap: 0 3%; width: 90%; max-width: 1536px; }
  .et_pb_row.rk-occasions::before, .et_pb_row.rk-occasions::after { display: none; }
  .rk-occasions > .et_pb_column { flex: 1 1 0; width: auto !important; margin-right: 0 !important; }
  :where(.rk-occasion) .et_pb_text_inner { font-size: min(24px, 1.68vw); }
}
@media (min-width: 768px) and (max-width: 980px) {
  .et_pb_section.rk-perfect-for { padding-left: 6%; padding-right: 6%; }
  :where(.rk-occasion) .et_pb_text_inner { font-size: min(18px, 2.25vw); }
}
@media (max-width: 767px) {
  .et_pb_row.rk-occasions { width: 92%; }
  .rk-occasions .et_pb_column { width: 48% !important; margin-right: 4% !important; }
  .rk-occasions .et_pb_column:nth-child(2n) { margin-right: 0 !important; }
  :where(.rk-occasion) .et_pb_text_inner { font-size: clamp(14px, 3.75vw, 18px); letter-spacing: 0; }
}

/* Gold pointing-hand cursor (hotspot at the fingertip) on links, buttons and videos. 1x/2x PNGs (rendered from
   img/cursor-hand.svg) via image-set() so it stays crisp on retina; browsers without image-set() for cursors keep the
   SVG line, and the system pointer is the last fallback. */
a[href], button, [role="button"], input[type="submit"], .rkd5-button, .et_pb_contact_submit, .rk-more-toggle,
.et_pb_video, .et_pb_video *, .rk-property-nav a, .rk-quick-bar a {
  cursor: url(img/cursor-hand.svg) 12 2, pointer;
  cursor: -webkit-image-set(url(img/cursor-hand.png) 1x, url(img/cursor-hand@2x.png) 2x) 12 2, pointer;
  cursor: image-set(url(img/cursor-hand.png) 1x, url(img/cursor-hand@2x.png) 2x) 12 2, pointer;
}
