/* Rolls Right — component styles for the 1:1 rebuild. Iterated against the
   live-site screenshot harness (scripts/compare). */

/* ---------- promo top bar (fixed marquee, lifted from live header template) */
body { padding-top: 43px; }
.scrolling-banner {
	width: 100%; overflow: hidden; background: #000; color: #fff;
	padding: 12px 0; position: fixed; top: 0; left: 0; z-index: 9999;
	display: block; text-decoration: none;
}
.scrolling-content {
	display: inline-flex; white-space: nowrap; animation: rr-scroll 18s linear infinite;
}
.scrolling-content span {
	font-family: var(--wp--preset--font-family--text);
	font-size: 14px; font-weight: 700; letter-spacing: 1px;
	padding: 0 40px; text-transform: uppercase;
}
.scrolling-content .redeem { color: #166FCB; padding: 0; }
@keyframes rr-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.rr-header { background: #fff; padding: 10px 0; }
.rr-header .wp-block-image img { max-width: 150px; height: auto; }
.rr-header nav { font-family: var(--wp--preset--font-family--text); }
.rr-header .wp-block-navigation { font-size: 15px; }
.rr-header .wp-block-navigation a { color: #000; }
.rr-header .wp-block-navigation a:hover { color: #166FCB; }
.rr-header .wp-block-navigation .current-menu-item > a { color: #7A7A7A; }
.rr-header .wp-block-navigation__submenu-container {
	background: #fff !important; border: none; box-shadow: 0 4px 14px rgba(0,0,0,.12);
	min-width: 260px !important;
}
.rr-header .wp-block-navigation__submenu-container a { color: #000 !important; padding: 8px 16px; font-size: 14px; }
.rr-header .wp-block-navigation__submenu-container a:hover { color: #166FCB !important; }

/* ---------- generic section helpers ---------- */
.rr-dark { background: #000; color: #fff; }
.rr-dark h2, .rr-dark h3, .rr-dark h4, .rr-dark h5, .rr-dark p { color: #fff; }
.rr-center { text-align: center; }
.rr-learn-more a { color: #166FCB; text-decoration: none; font-weight: 700; font-size: 12px; font-family: var(--wp--preset--font-family--text); }

/* hero */
.rr-home-hero { min-height: 980px; background-size: cover; background-position: center; }

/* tagline band */
.rr-tagline h1 { font-size: 34px; font-weight: 700; color: #000; letter-spacing: .5px; }

/* full-bleed image sections (stats band) */
.rr-bleed img { width: 100%; height: auto; display: block; }

/* ---------- services image carousel ---------- */
.rr-carousel { position: relative; padding: 0 46px; }
.rr-viewport { overflow: hidden; }
.rr-carousel-track { display: flex; gap: 20px; }
.rr-carousel-track > * { flex: 0 0 calc(25% - 15px); }
.rr-carousel-track img { width: 100%; height: auto; display: block; }
.rr-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: none; border: 0; cursor: pointer; padding: 6px; line-height: 0; z-index: 2;
}
.rr-arrow svg { width: 26px; height: 26px; fill: #000; }
.rr-dark .rr-arrow svg, .rr-testimonials .rr-arrow svg { fill: #000; }
.rr-arrow-prev { left: 4px; } .rr-arrow-next { right: 4px; }

/* ---------- what we offer ---------- */
.rr-offer h3, .rr-offer h4, .rr-offer h5 { font-size: 22px; margin: 18px 0 8px; }
.rr-offer .rr-body h5 { font-size: 14px; font-weight: 400; font-family: var(--wp--preset--font-family--text); line-height: 1.7; margin: 0 0 6px; }

/* ---------- testimonials slider ---------- */
.rr-testimonials { position: relative; padding: 0 46px; }
.rr-testimonials .rr-carousel-track { align-items: stretch; }
.rr-testimonials .rr-carousel-track > * { flex: 0 0 calc(33.333% - 13.4px); }
.rr-tcard {
	border: 1px solid #e5e5e5; border-radius: 10px; background: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 28px 24px; margin: 6px 2px;
	display: flex; flex-direction: column; font-family: var(--wp--preset--font-family--text);
}
.rr-tcard .rr-quotemark { color: #166FCB; font-family: Georgia, serif; font-size: 44px; line-height: 1; margin-bottom: 8px; }
.rr-tcard blockquote { margin: 0 0 16px; font-size: 12.5px; line-height: 1.7; color: #333; flex: 1; }
.rr-tcard img { max-height: 40px; width: auto; max-width: 120px; object-fit: contain; margin-bottom: 8px; }
.rr-tcard .rr-tname { font-weight: 700; font-size: 14px; color: #000; }
.rr-tcard .rr-trole { font-size: 12px; color: #7A7A7A; }
.rr-dots { text-align: center; margin-top: 18px; }
.rr-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #cfcfcf; margin: 0 4px; padding: 0; cursor: pointer; }
.rr-dots button.on { background: #166FCB; }

/* ---------- flip boxes ---------- */
.rr-flips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rr-flip { perspective: 1000px; height: 420px; }
.rr-flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.rr-flip:hover .rr-flip-inner { transform: rotateY(180deg); }
.rr-flip-front, .rr-flip-back {
	position: absolute; inset: 0; backface-visibility: hidden;
	display: flex; align-items: center; justify-content: center; text-align: center;
}
.rr-flip-front { background-size: cover; background-position: center; }
.rr-flip-front::after { content: ""; position: absolute; inset: 0; background: var(--rr-overlay, rgba(0,0,0,.45)); }
.rr-flip-front h3 { position: relative; z-index: 1; color: #fff; font-size: 24px; padding: 0 18px; }
.rr-flip-back { background: #000; transform: rotateY(180deg); padding: 26px; }
.rr-flip-back p { color: #fff; font-size: 14px; line-height: 1.7; font-family: var(--wp--preset--font-family--text); }

/* ---------- FAQ accordion ---------- */
.rr-accordion { border: 1px solid #d5d8dc; margin-bottom: 0; }
.rr-accordion summary {
	cursor: pointer; list-style: none; background: #000; color: #fff;
	padding: 15px 20px; font-family: var(--wp--preset--font-family--display);
	font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 14px;
}
.rr-accordion summary::-webkit-details-marker { display: none; }
.rr-accordion summary::before { content: "\002B"; font-size: 20px; }
.rr-accordion[open] summary::before { content: "\2212"; }
.rr-accordion-body { padding: 20px 24px; background: #000; color: #fff; }
.rr-accordion-body h5 { color: #fff; font-size: 14px; font-weight: 400; font-family: var(--wp--preset--font-family--text); line-height: 1.75; margin: 0 0 10px; }
.rr-accordion-body strong { font-weight: 700; }
.rr-accordion-body a { color: #6EC1E4; }
.rr-accordion-body ul { margin: 0 0 10px 18px; padding: 0; }

/* ---------- footer ---------- */
.rr-footer { background: #000; color: #fff; font-family: var(--wp--preset--font-family--text); }
.rr-footer a { color: #bdbdbd; text-decoration: none; }
.rr-footer a:hover { color: #fff; }
.rr-footer h4 {
	color: #fff; text-transform: uppercase; letter-spacing: 2px;
	font-size: 16px; margin-bottom: 18px;
}
.rr-footer ul { list-style: none; margin: 0; padding: 0; }
.rr-footer li { margin-bottom: 10px; font-size: 13.5px; }
.rr-footer .rr-contact li { display: flex; gap: 10px; align-items: flex-start; color: #bdbdbd; }
.rr-footer .rr-contact svg { width: 15px; height: 15px; fill: #166FCB; flex: 0 0 15px; margin-top: 2px; }
.rr-footer .rr-flogo img { max-width: 170px; height: auto; }
.rr-quote-btn {
	display: inline-block; background: #fff; color: #000 !important;
	font-weight: 700; font-size: 14px; padding: 12px 28px; border-radius: 3px;
}
.rr-fsc { font-size: 12.5px; color: #bdbdbd; line-height: 1.7; }
.rr-fsc strong { color: #fff; }
.rr-legal { font-size: 13px; }
.rr-footer-bottom { border-top: 1px solid #222; }
.rr-footer-bottom p { font-size: 13px; color: #bdbdbd; margin: 0; }
.rr-social { display: flex; gap: 10px; }
.rr-social a {
	width: 30px; height: 30px; border-radius: 50%; border: 1px solid #fff;
	display: inline-flex; align-items: center; justify-content: center;
}
.rr-social svg { width: 14px; height: 14px; fill: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.rr-carousel-track > * { flex: 0 0 calc(33.333% - 13.4px); }
	.rr-testimonials .rr-carousel-track > * { flex: 0 0 calc(50% - 10px); }
	.rr-flips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.rr-carousel-track > * { flex: 0 0 100%; }
	.rr-testimonials .rr-carousel-track > * { flex: 0 0 100%; }
	.rr-flips { grid-template-columns: 1fr; }
	.rr-home-hero { min-height: 480px; }
	.rr-tagline h1 { font-size: 24px; }
}

/* ---------- generic widget-page helpers ---------- */
.rr-partners { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; padding: 8px 24px 34px; }
.rr-partners img { max-height: 56px; width: auto; object-fit: contain; }
.rr-prose { font-family: var(--wp--preset--font-family--text); }
.rr-prose h4 { font-size: 24px; margin: 18px 0 10px; }
.rr-prose h5 { font-size: 15px; font-weight: 400; line-height: 1.7; margin: 0 0 10px; font-family: var(--wp--preset--font-family--text); }
.rr-btn {
	display: inline-block; background: #166FCB; color: #fff !important;
	font-family: var(--wp--preset--font-family--text); font-weight: 600; font-size: 15px;
	padding: 12px 28px; border-radius: 4px; text-decoration: none;
}
.rr-btn:hover { background: #053F80; }
.rr-form-slot { min-height: 120px; }

/* section wrappers emitted by build-widget-pages.py */
.rr-sec-dark, .rr-sec-dark h1, .rr-sec-dark h2, .rr-sec-dark h3, .rr-sec-dark h4, .rr-sec-dark h5, .rr-sec-dark p { color: #fff; }

/* full-bleed page title band (dark heading-only first section on live) */
.rr-titleband { background: #000; padding: 34px 16px; }
.rr-titleband h1 { color: #fff; text-align: center; font-size: 40px; margin: 0; }

/* simple prose pages — match live Elementor text metrics */
.rr-simple .rr-prose { font-size: 14.5px; line-height: 1.65; }
.rr-simple .rr-prose p { margin: 0 0 12px; }
.rr-simple .rr-prose h6 { font-size: 14px; margin: 14px 0 4px; }
.rr-simple .rr-prose h5 { font-size: 14px; margin: 0 0 12px; }
.rr-simple .rr-prose h4 { font-size: 20px; }

/* ---------- career single ---------- */
.rr-career-band { background: #14417F; padding: 72px 16px 56px; }
.rr-career-band h1 { color: #fff; text-transform: uppercase; letter-spacing: 2px; font-size: 40px; margin: 0 0 26px; }
.rr-career-band p { color: #fff; font-family: var(--wp--preset--font-family--text); margin: 0 0 12px; font-size: 16px; }
.rr-career-loc::before { content: ""; display: inline-block; width: 13px; height: 16px; margin-right: 8px; vertical-align: -2px;
	background: #35d0ba; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M172.3 501.7C27 291 0 269.4 0 192 0 86 86 0 192 0s192 86 192 192c0 77.4-27 99-172.3 309.7-9.5 13.8-29.9 13.8-39.4 0z"/></svg>') no-repeat center/contain; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M172.3 501.7C27 291 0 269.4 0 192 0 86 86 0 192 0s192 86 192 192c0 77.4-27 99-172.3 309.7-9.5 13.8-29.9 13.8-39.4 0z"/></svg>') no-repeat center/contain; }
.rr-career-body .wp-block-post-content { font-family: var(--wp--preset--font-family--text); font-size: 14px; line-height: 1.75; }
.rr-apply-title { font-size: 22px; letter-spacing: 1px; }
.rr-career-body .wpcf7 input, .rr-career-body .wpcf7 textarea { width: 100%; }

/* info cards (Q&A blocks inside blog posts) */
.rr-infocard { border: 1px solid #e4e6eb; border-radius: 8px; padding: 22px 24px; margin: 0 0 18px; box-shadow: 0 1px 6px rgba(0,0,0,.05); font-family: var(--wp--preset--font-family--text); }
.rr-infocard h4 { font-family: var(--wp--preset--font-family--text); font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.rr-infocard p { font-size: 14px; font-weight: 300; line-height: 1.7; margin: 0; }

/* ---------- blog single ---------- */
.rr-post h1 { font-size: 42px; line-height: 1.2; }
.rr-post-datecol { text-align: center; }
.rr-date-label { letter-spacing: 3px; font-size: 13px; font-weight: 600; font-family: var(--wp--preset--font-family--text); margin: 0 0 4px; }
.rr-date-value { font-size: 22px; font-weight: 700; font-family: var(--wp--preset--font-family--display); }
.rr-post-body { font-family: var(--wp--preset--font-family--text); }
.rr-post-body .rr-prose { font-size: 14.5px; line-height: 1.8; }
.rr-post-body .rr-prose p { margin: 0 0 18px; }
.rr-post-body h2, .rr-post-body h3 { color: #166FCB; font-size: 28px; margin: 40px 0 18px; }
.rr-post-body .wp-block-group { padding-top: 0 !important; padding-bottom: 0 !important; }
.rr-post-nav { border-top: 1px solid #eee; font-family: var(--wp--preset--font-family--text); font-size: 13px; letter-spacing: 2px; }
.rr-post-nav a { color: #000; text-decoration: none; }
.rr-more-articles { background: #fff; }
.rr-more-title { font-weight: 400; letter-spacing: 2px; font-size: 26px; margin-bottom: 28px; }
.rr-more-articles .wp-block-post-title a { color: #000; text-decoration: none; font-size: 15px; }
.rr-more-articles .wp-block-post-date { font-size: 12px; color: #7A7A7A; margin-top: 6px; }

/* ---------- blog index ---------- */
.rr-blog-hero { background: #000; }
.rr-blog-title { color: #166FCB; font-size: 74px; font-weight: 800; text-transform: uppercase; line-height: 1.02; }
.rr-blog-intro { color: #fff; font-family: var(--wp--preset--font-family--text); font-size: 13.5px; line-height: 1.75; }
.rr-blog-intro p { margin: 0 0 14px; }
.rr-newsletter a { display: inline-block; background: #fff; color: #000; font-size: 13px; padding: 9px 18px; border-radius: 3px; text-decoration: none; font-weight: 500; }
.rr-blog-sub { font-size: 30px; margin-bottom: 22px; }
.rr-search-form { display: flex; gap: 0; }
.rr-search-input { width: 420px; max-width: 70vw; padding: 10px 18px; border: 1px solid #d9d9d9; border-radius: 24px 0 0 24px; font-family: var(--wp--preset--font-family--text); font-size: 14px; }
.rr-search-btn { background: #166FCB; color: #fff; border: 0; padding: 10px 24px; border-radius: 0 24px 24px 0; font-weight: 600; cursor: pointer; }
.rr-blog-grid .wp-block-post-template { gap: 34px; }
.rr-blog-card { background: #000; }
.rr-blog-card .wp-block-post-featured-image img { width: 100%; display: block; }
.rr-blog-card-body { padding: 20px 22px 24px; }
.rr-blog-card-body .wp-block-post-title a { color: #fff; font-size: 22px; text-decoration: none; }
.rr-blog-card-body .wp-block-read-more { color: #166FCB; font-family: var(--wp--preset--font-family--text); font-size: 12px; text-decoration: none; display: inline-block; margin-top: 8px; }
.rr-blog-grid .wp-block-query-pagination { margin-top: 36px; font-family: var(--wp--preset--font-family--text); }

/* builder column layout */
.rr-cols { display: flex; gap: 44px; align-items: center; flex-wrap: nowrap; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rr-col { flex: 1 1 auto; min-width: 0; box-sizing: border-box; }
@media (max-width: 780px) { .rr-cols { flex-wrap: wrap; } .rr-col { flex-basis: 100% !important; } }
.rr-col .wp-block-image img { max-width: 100%; height: auto; }

/* ---------- new widget handlers ---------- */
.rr-iconbox { display: flex; gap: 12px; font-family: var(--wp--preset--font-family--text); margin: 0 0 14px; }
.rr-iconbox::before { content: "✓"; color: #166FCB; font-weight: 700; flex: 0 0 auto; }
.rr-iconbox h4 { font-size: 16px; margin: 0 0 4px; }
.rr-iconbox p { font-size: 13.5px; line-height: 1.6; margin: 0; }
.rr-imggrid { display: grid; grid-template-columns: repeat(var(--rr-cols, 3), 1fr); gap: 14px; margin: 14px 0 26px; }
.rr-imggrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rr-gallery-title { text-align: center; margin: 30px 0 8px; }
.rr-timeline { position: relative; max-width: 720px; margin: 30px auto; font-family: var(--wp--preset--font-family--text); }
.rr-timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #d9d9d9; }
.rr-tl-item { position: relative; width: 44%; margin-bottom: 44px; }
.rr-tl-item:nth-child(odd) { margin-left: 56%; }
.rr-tl-item:nth-child(even) { margin-right: 56%; }
.rr-tl-item::before { content: ""; position: absolute; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #000; }
.rr-tl-item:nth-child(odd)::before { left: calc(-6% - 6px - 8px); }
.rr-tl-item:nth-child(even)::before { right: calc(-6% - 6px - 20px); }
.rr-tl-date { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 26px; color: #000; margin-bottom: 10px; }
.rr-tl-body p { font-size: 13px; line-height: 1.8; margin: 0 0 8px; }
.rr-tl-body img { max-width: 100%; border-radius: 6px; }
@media (max-width: 700px) { .rr-timeline::before { left: 6px; } .rr-tl-item, .rr-tl-item:nth-child(odd), .rr-tl-item:nth-child(even) { width: auto; margin: 0 0 34px 30px; } .rr-tl-item::before, .rr-tl-item:nth-child(odd)::before, .rr-tl-item:nth-child(even)::before { left: -30px; right: auto; } }
.rr-dualimg { font-family: var(--wp--preset--font-family--text); margin-bottom: 20px; }
.rr-dualimg img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 14px; }
.rr-dualimg h3 { font-size: 22px; margin: 0 0 8px; }
.rr-dualimg p { font-size: 13.5px; line-height: 1.7; }
.rr-ibanner { position: relative; display: block; background-size: cover; background-position: center; min-height: 340px; border-radius: 4px; overflow: hidden; text-decoration: none; }
.rr-ibanner::after { content: ""; position: absolute; inset: 0; background: var(--rr-overlay, rgba(0,0,0,.4)); }
.rr-ib-inner { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; gap: 10px; }
.rr-ib-title { font-family: var(--wp--preset--font-family--display); font-size: 30px; font-weight: 700; }
.rr-ib-text { color: #fff; font-family: var(--wp--preset--font-family--text); font-size: 13px; }
.rr-ib-btn { color: #fff; font-family: var(--wp--preset--font-family--text); font-size: 13px; text-decoration: underline; }
.rr-photo-slider .rr-carousel-track > * { flex: 0 0 calc(33.333% - 13.4px); }
.rr-careers-list { font-family: var(--wp--preset--font-family--text); }
.rr-careers-list .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1080px; margin: 0 auto; }
.rr-career-row { border: 1px solid #e4e6eb; border-radius: 6px; padding: 22px 24px; box-shadow: 0 1px 5px rgba(0,0,0,.05); }
.rr-career-row .wp-block-post-title { margin: 4px 0 0; }
.rr-career-row .wp-block-post-title a { color: #0E1116; text-decoration: none; font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.rr-career-row-loc { color: #444; font-size: 13px; margin: 0 0 16px; }
.rr-career-row-meta { color: #9a9a9a; font-size: 12px; margin: 0; }
@media (max-width: 900px) { .rr-careers-list .wp-block-post-template { grid-template-columns: 1fr; } }
.rr-igmap-slot { min-height: 200px; }

/* flip variants from generic builder */
.rr-flips { grid-template-columns: repeat(var(--rr-flipcols, 4), 1fr); }
.rr-flip-plain { border: 1px solid #eee; }
.rr-flip-light h3 { color: #000 !important; font-family: var(--wp--preset--font-family--text); font-weight: 600; font-size: 18px !important; }

/* photo slider (careers Life-at-RR) */
.rr-photo-slider .rr-carousel-track > * { flex: 0 0 100%; }
.rr-photo-slider img { max-height: 470px; width: 100%; object-fit: cover; }

.rr-imggrid-lg { gap: 18px; }
.rr-imggrid-lg img { aspect-ratio: 3/2; }
