/*
Theme Name: Rafia Regalia
Template: twentytwentyfive
Description: Child theme for Rafia Regalia — navy & gold, square-edged storefront layout.
Version: 1.0.0
Text Domain: rafia-regalia
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .2em; }
.wp-element-button,
.wp-block-button__link { transition: background-color .2s, color .2s; }
.wp-element-button:hover,
.wp-block-button__link:hover { background-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
.rr-on-dark .wp-block-button__link:hover { background-color: var(--wp--preset--color--white); color: var(--wp--preset--color--navy); }

.rr-eyebrow {
	font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
	color: var(--wp--preset--color--gold-dark); margin-bottom: .75rem !important;
}
.rr-on-dark .rr-eyebrow { color: var(--wp--preset--color--gold-light); }
.rr-narrow { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.rr-header > * { margin-block: 0 !important; }
.home .wp-site-blocks > main { margin-block-start: 0; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }

.rr-announcement { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--ivory); font-size: 13px; letter-spacing: .08em; text-align: center; padding: 9px 16px; }
.rr-announcement p { margin: 0; }
.rr-announcement a { color: var(--wp--preset--color--gold-light); text-decoration: none; }

.rr-header-main { border-bottom: 1px solid var(--wp--preset--color--stone); }
.rr-header-main { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; background: var(--wp--preset--color--white); padding: 0 clamp(16px, 2.5vw, 40px); min-height: 88px; }
.rr-header-main > * { margin: 0 !important; min-width: 0; }
.rr-header-main .rr-header-logo { justify-self: center; }
.rr-header-main .rr-header-logo img { width: auto; height: 68px; display: block; }
.rr-header-left { position: static; justify-self: start; }
.rr-header-right { justify-self: end; justify-content: flex-end; gap: 18px; color: var(--wp--preset--color--navy); }
.rr-header-right .wp-block-woocommerce-customer-account a,
.rr-header-right .wc-block-mini-cart__button,
.rr-header-right .wc-block-mini-cart__icon { color: var(--wp--preset--color--navy); }
.rr-header-right .wc-block-mini-cart__button:hover,
.rr-header-right .wp-block-woocommerce-customer-account a:hover { color: var(--wp--preset--color--gold-dark); }
.rr-header-search .wp-block-search__button { background: transparent; color: var(--wp--preset--color--navy); padding: 6px; border: 0; }
.rr-header-search .wp-block-search__button:hover { background: transparent; color: var(--wp--preset--color--gold-dark); }
.rr-header-search .wp-block-search__input { border: 1px solid var(--wp--preset--color--stone); border-radius: 0; background: var(--wp--preset--color--white); }
.rr-header-cta .wp-block-button__link { padding: 13px 26px; }
.rr-header-cta .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }

/* ---------- Mega menu ---------- */
.rr-mm { --rr-mm-left: 340px; font-family: var(--wp--preset--font-family--work-sans); }
.rr-mm button { font: inherit; }
.rr-mm ul { list-style: none; margin: 0; padding: 0; }
.rr-mm a { text-decoration: none; }
.rr-mm-icon { flex: 0 0 auto; }
.rr-mm-list-top { display: flex; justify-content: flex-start; gap: clamp(18px, 1.8vw, 36px); }
.rr-mm { position: static; }
.rr-mm-toggle { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--wp--preset--color--navy); font-size: 15px; font-weight: 500; padding: 32px 2px; cursor: pointer; white-space: nowrap; }

.rr-mm-toggle .rr-mm-icon:last-child { width: 14px; transition: transform .2s; }
.rr-mm-item.is-open > .rr-mm-toggle .rr-mm-icon:last-child { transform: rotate(180deg); }
.rr-mm-toggle:hover, .rr-mm-item.is-open > .rr-mm-toggle { color: var(--wp--preset--color--gold-dark); }
.rr-mm-burger { display: none; }

.rr-mm-dropdown { display: none; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); z-index: 200; }
.rr-mm-item.is-open > .rr-mm-dropdown { display: block; }
.rr-mm-dropdown a { color: var(--wp--preset--color--white); }
.rr-mm-dropdown a:hover { color: var(--wp--preset--color--gold-light); }

/* Simple lists */
.rr-mm-item { position: relative; }
.rr-mm-list { position: absolute; top: 100%; left: 0; min-width: 280px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.rr-mm-list a { display: flex; align-items: center; gap: 12px; padding: 11px 22px; font-size: 15px; }
.rr-mm-list a:hover { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); }
.rr-mm-groups { display: none; min-width: 620px; padding: 24px 12px 20px; gap: 12px; }
.rr-mm-item.is-open > .rr-mm-groups { display: flex; }
.rr-mm-group { flex: 1 1 0; }
.rr-mm-group .rr-mm-heading { margin: 0 12px 10px; }
.rr-mm-group a { padding: 10px 12px; }

/* Mega panel */
.rr-mm-item.has-mega { position: static; }
.rr-mm-mega { position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.rr-mm-inner { max-width: 1440px; margin: 0 auto; text-align: left; }
.rr-mm-cats { position: relative; width: var(--rr-mm-left); min-height: 560px; padding: 0 0 12px; background: rgba(255,255,255,.03); }
.rr-mm-cat-link { display: flex; align-items: center; gap: 14px; padding: 15px 20px; font-size: 15px; font-weight: 500; color: var(--wp--preset--color--white); }
.rr-mm-cat-link span { flex: 1; }
.rr-mm-cat-link .rr-mm-icon:last-child { width: 14px; opacity: .8; }
.rr-mm-cat.is-active > .rr-mm-cat-link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); }
.rr-mm-cat-panel { display: none; position: absolute; top: 0; left: var(--rr-mm-left); width: calc(min(100vw, 1440px) - var(--rr-mm-left) - 2 * clamp(16px, 3vw, 40px)); min-height: 100%; padding: 26px 16px 32px 16px; gap: 36px; }
.rr-mm-cat.is-active > .rr-mm-cat-panel { display: flex; }
.rr-mm-col { flex: 1 1 0; min-width: 0; }
.rr-mm-heading { color: var(--wp--preset--color--gold-light); font-size: 15px; font-weight: 600; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.55); }
.rr-mm-col li a { display: block; padding: 6px 0; font-size: 14.5px; line-height: 1.45; }
.rr-mm-feature { flex: 0 0 260px; }
.rr-mm-feature-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 1px solid rgba(255,255,255,.2); }
.rr-mm-viewall { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 12px 16px; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy) !important; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rr-mm-viewall:hover { background: var(--wp--preset--color--white); }

/* Tablet & mobile: burger + accordion */
@media (max-width: 1380px) {
	.rr-mm-burger { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--wp--preset--color--navy); padding: 10px 0; font-size: 15px; font-weight: 500; cursor: pointer; }
	.rr-mm-list-top { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--wp--preset--color--navy); border-top: 1px solid rgba(255,255,255,.12); max-height: calc(100vh - 140px); overflow-y: auto; box-shadow: 0 24px 50px rgba(0,0,0,.3); z-index: 200; }
	.rr-mm.is-open .rr-mm-list-top { display: flex; }
	.rr-mm-toggle { width: 100%; padding: 15px 20px; color: var(--wp--preset--color--white); }
	.rr-mm-toggle:hover, .rr-mm-item.is-open > .rr-mm-toggle { color: var(--wp--preset--color--gold-light); }
	.rr-mm-groups { min-width: 0; flex-direction: column; padding: 8px 0; }
	.rr-mm-group .rr-mm-heading { margin: 10px 20px 6px 48px; }
	.rr-mm-group a { padding-left: 48px; }
	.rr-mm-toggle .rr-mm-icon:first-child { display: block; }
	.rr-mm-toggle span { flex: 1; text-align: left; }
	.rr-mm-item, .rr-mm-item.has-mega { position: static; }
	.rr-mm-list, .rr-mm-mega { position: static; box-shadow: none; min-width: 0; border-top: 0; background: rgba(255,255,255,.04); }
	.rr-mm-list a { padding-left: 48px; }
	.rr-mm-cats { width: auto; min-height: 0; background: none; }
	.rr-mm-cat-link { padding-left: 48px; }
	.rr-mm-cat.is-active > .rr-mm-cat-link { background: none; color: var(--wp--preset--color--white); }
	.rr-mm-cat.is-active > .rr-mm-cat-panel { display: none; }
	.rr-mm-cat.is-expanded > .rr-mm-cat-link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); }
	.rr-mm-cat.is-expanded > .rr-mm-cat-panel { display: block; position: static; width: auto; padding: 8px 20px 18px 48px; }
	.rr-mm-heading { margin: 12px 0 8px; padding-bottom: 8px; }
	.rr-mm-feature { display: none; }
}
@media (max-width: 781px) {
	.rr-header-main { min-height: 68px; gap: 10px; }
	.rr-header-main .rr-header-logo img { height: 50px; }
	.rr-header-right .rr-header-cta { display: none; }
	.rr-header-right { gap: 10px; }
	.rr-mm-burger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Homepage sections ---------- */
.rr-section { padding-top: clamp(56px, 7vw, 96px) !important; padding-bottom: clamp(56px, 7vw, 96px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.rr-section + .rr-section { border-top: 1px solid var(--wp--preset--color--stone); }
.rr-section.has-background + .rr-section, .rr-section + .rr-section.has-background { border-top: 0; }

.rr-hero { margin-top: 0 !important; margin-bottom: 0 !important; }
.rr-hero h1 { color: var(--wp--preset--color--white); }
.rr-hero p { color: var(--wp--preset--color--ivory); }

/* Category tiles */
.rr-tiles { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 2.25rem !important; }
.rr-tiles.rr-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rr-tiles > * { margin: 0 !important; max-width: none !important; }
.rr-tile { text-align: center; }
.rr-tile figure { margin: 0 0 12px; border: 2px solid var(--wp--preset--color--gold); padding: 6px; background: var(--wp--preset--color--white); transition: border-color .2s; }
.rr-tile:hover figure { border-color: var(--wp--preset--color--navy); }
.rr-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.rr-tile p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 0; line-height: 1.4; }
.rr-tile a { color: var(--wp--preset--color--navy); text-decoration: none; }
.rr-subhead { margin-top: 3.5rem !important; }
@media (max-width: 1024px) { .rr-tiles, .rr-tiles.rr-tiles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rr-tiles, .rr-tiles.rr-tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* Two feature cards */
.rr-cards { gap: clamp(24px, 4vw, 56px) !important; margin-top: 2.5rem !important; }
.rr-card { text-align: center; }
.rr-card figure { margin: 0 0 20px; }
.rr-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rr-card h3 { font-size: 22px; margin-bottom: .5rem; }
.rr-card p { max-width: 420px; margin-left: auto; margin-right: auto; }

/* Image with text */
.rr-split { gap: clamp(32px, 6vw, 96px) !important; }
.rr-split figure { margin: 0; }
.rr-split img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.rr-split .rr-split-text { text-align: center; }
.rr-split .rr-split-text p:not(.rr-eyebrow) { max-width: 520px; margin-left: auto; margin-right: auto; }
.rr-split.rr-contain img { object-fit: contain; background: var(--wp--preset--color--ivory); }

/* Featured products */
.rr-products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; margin-top: 2.5rem !important; }
.rr-products > * { margin: 0 !important; max-width: none !important; }
.rr-product figure { margin: 0 0 14px; overflow: hidden; }
.rr-product img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .5s; }
.rr-product:hover img { transform: scale(1.04); }
.rr-product p { margin: 0; font-size: 15px; text-align: center; }
.rr-product .rr-product-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--gold-dark); margin-bottom: 4px; }
.rr-product a { color: var(--wp--preset--color--navy); text-decoration: none; }
@media (max-width: 900px) { .rr-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Get in touch card over image */
.rr-touch { padding: clamp(40px, 8vw, 120px) 16px !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.rr-touch-card { background: var(--wp--preset--color--white); max-width: 480px !important; margin-left: clamp(0px, 6vw, 96px) !important; margin-right: auto !important; padding: clamp(32px, 4vw, 48px) !important; text-align: center; }
.rr-touch-card p { margin: .35rem 0; }
.rr-touch-card a { color: var(--wp--preset--color--navy); }
@media (max-width: 600px) { .rr-touch-card { margin-left: auto !important; } }

/* Values row */
.rr-values { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.rr-values > * { margin: 0 !important; max-width: none !important; text-align: center; }
.rr-value-num { font-family: var(--wp--preset--font-family--cinzel); font-size: 28px; color: var(--wp--preset--color--gold); margin: 0 0 .25rem !important; }
.rr-values h3 { font-size: 15px; letter-spacing: .12em; margin: 0 0 .5rem; }
.rr-values p { font-size: 14px; margin: 0; }
@media (max-width: 900px) { .rr-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .rr-values { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.rr-footer { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--ivory); padding: clamp(48px, 6vw, 80px) clamp(16px, 3vw, 40px) 0 !important; margin-top: 0 !important; }
.rr-footer a { color: var(--wp--preset--color--ivory); text-decoration: none; }
.rr-footer a:hover { color: var(--wp--preset--color--gold-light); }
.rr-footer h2 { font-size: 14px; letter-spacing: .16em; color: var(--wp--preset--color--gold-light); margin: 0 0 1.25rem; }
.rr-footer ul { list-style: none; padding: 0; margin: 0; }
.rr-footer li { margin: 0 0 .6rem; font-size: 15px; }
.rr-footer p { font-size: 15px; }
.rr-footer-logo img { width: 190px; height: auto; }
.rr-footer-columns { gap: 40px !important; }
.rr-footer .wp-block-social-links { gap: 12px; }
.rr-footer .wp-block-social-links .wp-social-link { color: var(--wp--preset--color--gold-light); }
.rr-footer-bottom { border-top: 1px solid rgba(225, 225, 224, .18); margin-top: 48px !important; padding: 20px 0 !important; font-size: 13px; letter-spacing: .06em; text-align: center; }
.rr-footer-bottom p { margin: 0; font-size: 13px; }

/* Card sits on a dark cover, which forces light text — restore dark text inside the white card. */
.rr-touch .rr-touch-card,
.rr-touch .rr-touch-card h2,
.rr-touch .rr-touch-card p { color: var(--wp--preset--color--navy); }
.rr-touch .rr-touch-card .rr-eyebrow { color: var(--wp--preset--color--gold-dark); }
.rr-touch .rr-touch-card h2 { font-size: clamp(24px, 3vw, 32px); margin: .25rem 0 1rem; }

/* Front page sections are full-bleed; keep inner content off the screen edge. */
.home main.wp-block-post-content > .alignfull { max-width: none; margin-left: 0 !important; margin-right: 0 !important; }
.home main.wp-block-post-content > .rr-section { padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }
.rr-tile .rr-tile-count { margin-top: 4px; font-size: 11px; letter-spacing: .12em; color: var(--wp--preset--color--gold-dark); }

/* Header content width matches the footer (1440px content, same side padding). */
/* One shared page edge for header, footer and the Get in touch card: 16–40px up to 1440px wide, growing to 112px on large screens. */
:root { --rr-edge: max(clamp(16px, 3vw, 40px), min(112px, calc(19.1vw - 235px))); }
.rr-header-main { padding-left: var(--rr-edge); padding-right: var(--rr-edge); }
.rr-footer { padding-left: var(--rr-edge) !important; padding-right: var(--rr-edge) !important; }
.rr-footer > * { max-width: none !important; }
.rr-touch { padding-left: var(--rr-edge) !important; padding-right: var(--rr-edge) !important; }
.rr-touch .rr-touch-card { margin-left: 0 !important; }

/* Header icons: identical 40px boxes, vertically centred. */
.rr-header-right { align-items: center; }
.rr-header-right > .wp-block-search,
.rr-header-right > .wp-block-woocommerce-customer-account,
.rr-header-right > .wp-block-woocommerce-mini-cart,
.rr-header-right > .wc-block-mini-cart { display: flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; margin: 0 !important; line-height: 1; }
.rr-header-right .wp-block-search__inside-wrapper { display: flex; align-items: center; height: 40px; padding: 0; border: 0; }
.rr-header-right .wp-block-search__button,
.rr-header-right .wp-block-woocommerce-customer-account a,
.rr-header-right .wc-block-mini-cart__button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0 !important; margin: 0; line-height: 1; }
.rr-header-right .wp-block-search__button svg,
.rr-header-right .wp-block-woocommerce-customer-account svg,
.rr-header-right .wc-block-mini-cart__icon { width: 24px; height: 24px; display: block; margin: 0; }
.rr-header-right .wc-block-mini-cart__quantity-badge { display: flex; align-items: center; }
.rr-header-right .rr-header-cta { margin: 0 0 0 10px !important; }
.rr-header-left { display: flex; align-items: center; height: 100%; }
.rr-header-left > p { margin: 0; display: contents; }
.rr-mm-toggle { padding-top: 0; padding-bottom: 0; height: 88px; }
@media (max-width: 1380px) { .rr-mm-toggle { height: auto; padding-top: 15px; padding-bottom: 15px; } }
@media (min-width: 1381px) {
	.rr-mm { display: flex; align-items: center; height: 88px; }
	.rr-mm-list-top { margin: 0 !important; height: 88px; align-items: center; }
}
.rr-header-main .rr-header-logo, .rr-header-main .rr-header-logo a { display: flex; align-items: center; line-height: 0; }

/* Mega panel spans the header content (same edges as logo row), not the full screen. */
@media (min-width: 1381px) {
	.rr-mm-mega { left: var(--rr-edge); right: var(--rr-edge); }
	.rr-mm-inner { position: relative; max-width: none; }
	.rr-mm-cats { position: static; }
	.rr-mm-cat-panel { left: var(--rr-mm-left); right: 0; width: auto; padding-left: 32px; padding-right: 28px; }
}

/* Off-canvas panels (e.g. WooCommerce mini-cart drawer) must never create sideways scrolling. `clip` keeps the sticky header working. */
html, body { overflow-x: clip; }

/* No default block gap between the last section and the footer (pages add their own bottom padding). */
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0 !important; }

/* Links: no underlines anywhere; colour change on hover instead. */
a, a:hover, a:focus, .wp-block-post-content a, .woocommerce a, .rr-footer a { text-decoration: none !important; }
.wp-block-post-content a:not(.wp-block-button__link):not(.rr-btn):hover,
.woocommerce-MyAccount-navigation a:hover { color: var(--wp--preset--color--gold-dark); }

/* No black focus boxes on mouse/touch selection; keyboard users still get a subtle gold outline. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--wp--preset--color--gold) !important; outline-offset: 2px; box-shadow: none !important; }
.woocommerce-MyAccount-navigation a:focus, .woocommerce-MyAccount-navigation li:focus-within { outline: none !important; box-shadow: none !important; border-color: var(--wp--preset--color--stone) !important; }

/* Footer social icons: larger, with space above. */
.rr-footer .wp-block-social-links { margin-top: 22px !important; gap: 16px !important; }
.rr-footer .wp-block-social-links .wp-social-link svg { width: 28px; height: 28px; }
.rr-footer .wp-block-social-links .wp-block-social-link-anchor { padding: 0 !important; }
/* Phone header: centre the logo in the space between the menu button and the icons. */
@media (max-width: 781px) {
	.rr-header-main { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
	.rr-header-main .rr-header-logo { justify-self: center; }
}

/* Phone footer: centre everything. */
@media (max-width: 781px) {
	.rr-footer { text-align: center; }
	.rr-footer .rr-footer-columns { gap: 32px !important; }
	.rr-footer-logo img { margin-left: auto; margin-right: auto; }
	.rr-footer .wp-block-social-links { justify-content: center; }
	.rr-footer h2 { text-align: center; }
	.rr-footer ul { text-align: center; }
	.rr-footer .wp-block-column > h2:empty, .rr-footer .wp-block-column > h2:blank { display: none; }
}
/* Phones: header keeps the menu button, logo and cart only (search and account live in the More menu). */
@media (max-width: 781px) {
	.rr-header-right .rr-header-search,
	.rr-header-right .wp-block-woocommerce-customer-account { display: none !important; }
}
/* Phones: the blank spacer heading above the second product column isn't needed; tighten footer spacing. */
@media (max-width: 781px) {
	.rr-footer .wp-block-column:nth-child(4) > h2 { display: none; }
	.rr-footer .wp-block-column:nth-child(4) > ul { margin-top: -18px; }
	.rr-footer .rr-footer-columns { gap: 26px !important; }
	.rr-footer li { margin-bottom: .45rem; }
	.rr-footer h2 { margin-bottom: .9rem; }
}

/* Phones: every button row is centred. */
@media (max-width: 781px) {
	.wp-block-buttons,
	.wp-block-buttons.is-content-justification-left,
	.wp-block-buttons.is-content-justification-right,
	.rr-cf-actions,
	.rr-enquire,
	.rr-svc-cta-inner .wp-block-buttons { justify-content: center !important; }
	.rr-svc-cta-inner { align-items: center; }
	.rr-shop-toolbar { justify-content: center; }
	.rr-side-contact .rr-btn { width: auto; min-width: 200px; }
}

/* Premium hero photo (Claivra): taller so both fezzes show in full; on phones show the left fez behind a darker overlay. */
.rr-hero { min-height: clamp(620px, 78vh, 900px) !important; }
.rr-hero .wp-block-cover__image-background { object-position: 50% 32%; }
@media (max-width: 781px) {
	.rr-hero .wp-block-cover__image-background { object-position: 12% 50%; }
	.rr-hero .wp-block-cover__background { opacity: .62 !important; }
}
/* Get in touch: the banners sit at the right of the photo; keep them in view as the screen narrows. */
.rr-touch .wp-block-cover__image-background { object-position: 100% 50%; }
/* Trust photo is 4:3: show it whole, nothing cropped. */
.rr-split img.wp-image-688 { aspect-ratio: 4 / 3; }
/* Category tiles: the image link is inline-block in core CSS, which leaves a text-baseline gap under the photo. Make the frame padding equal on all four sides. */
.rr-tile figure { line-height: 0; }
.rr-tile figure > a { display: block; line-height: 0; }

/* ---------- Specialization: text left, masonry gallery right ---------- */
.rr-spec .rr-spec-cols { gap: clamp(40px, 6vw, 110px) !important; max-width: 1320px; margin-left: auto !important; margin-right: auto !important; }
.rr-spec .rr-spec-text { position: relative; }
.rr-spec .rr-spec-text > * { text-align: left; }
.rr-spec .rr-spec-text h2 { margin: 0 0 1.4rem !important; line-height: 1.15; }
.rr-spec .rr-spec-text h2::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 1.3rem; background: var(--wp--preset--color--gold); }
.rr-spec .rr-spec-text p:not(.rr-eyebrow) { max-width: 560px; margin-bottom: 2rem !important; }
.rr-spec .rr-spec-text .wp-block-buttons { justify-content: flex-start; }
.rr-masonry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: start; }
.rr-mcol { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 20px); }
.rr-mcol-offset { margin-top: clamp(28px, 4vw, 64px); }
.rr-mtile { position: relative; display: block; overflow: hidden; background: var(--wp--preset--color--navy); box-shadow: 0 18px 40px rgba(11, 27, 48, .18); }
.rr-mtile img { width: 100%; height: auto; display: block; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.rr-mtile:hover img { transform: scale(1.05); }
.rr-mtile::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(212, 186, 152, .45); z-index: 2; pointer-events: none; transition: inset .4s, border-color .4s; }
.rr-mtile:hover::before { inset: 14px; border-color: rgba(212, 186, 152, .9); }
.rr-mcap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 48px 22px 20px; background: linear-gradient(to top, rgba(11, 27, 48, .92), rgba(11, 27, 48, 0)); color: var(--wp--preset--color--white); font-family: var(--wp--preset--font-family--cinzel); font-size: clamp(14px, 1.2vw, 17px); letter-spacing: .06em; line-height: 1.3; text-align: left; }
.rr-mcap small { display: block; margin-bottom: 4px; font-family: var(--wp--preset--font-family--work-sans); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--gold-light); }
@media (max-width: 781px) {
	.rr-spec .rr-spec-text > *, .rr-spec .rr-spec-text p { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
	.rr-spec .rr-spec-text h2::after { margin-left: auto; margin-right: auto; }
	.rr-spec .rr-spec-text .wp-block-buttons { justify-content: center; }
	.rr-spec .rr-spec-media { margin-top: 12px !important; }
	.rr-mcap { padding: 36px 12px 12px; }
}

/* ---------- Scroll reveal (assets/reveal.js) ---------- */
html.rr-anim .rr-reveal { opacity: 0; transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.3s cubic-bezier(.16,1,.3,1); transition-delay: var(--rr-d, 0ms); will-change: opacity, transform; }
html.rr-anim .rr-rv-up    { transform: translate3d(0, 70px, 0); }
html.rr-anim .rr-rv-zoom  { transform: translate3d(0, 60px, 0) scale(.9); }
html.rr-anim .rr-rv-left  { transform: translate3d(-90px, 0, 0); }
html.rr-anim .rr-rv-right { transform: translate3d(90px, 0, 0); }
html.rr-anim .rr-rv-hero  { transform: scale(1.08); transition-duration: 1.4s, 1.8s; }
html.rr-anim .rr-reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 781px) {
	html.rr-anim .rr-rv-left, html.rr-anim .rr-rv-right { transform: translate3d(0, 60px, 0); }
}
@media (prefers-reduced-motion: reduce) { html.rr-anim .rr-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- FAQ accordion ([rr_faq]) and legal links ---------- */
.rr-faq { max-width: 900px; margin: 12px auto 0; border-top: 1px solid var(--wp--preset--color--stone); }
.rr-faq-item { border-bottom: 1px solid var(--wp--preset--color--stone); }
.rr-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; }
.rr-faq-item summary::-webkit-details-marker { display: none; }
.rr-faq-item summary::after { content: "+"; flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--wp--preset--color--gold); color: var(--wp--preset--color--gold-dark); font-size: 20px; transition: transform .3s, background-color .3s, color .3s; }
.rr-faq-item[open] summary::after { content: "−"; background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--gold-light); }
.rr-faq-q { margin: 0 !important; font-size: clamp(17px, 1.6vw, 21px) !important; letter-spacing: .03em; text-transform: none; line-height: 1.35; }
.rr-faq-a { padding: 0 60px 22px 4px; }
.rr-faq-a p { margin: 0; color: var(--wp--preset--color--ink); }
.rr-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 10px !important; }
.rr-footer-legal a { color: var(--wp--preset--color--ivory); }
@media (max-width: 600px) { .rr-faq-a { padding-right: 4px; } }

/* ---------- Category SEO text and "shop related" box in articles ---------- */
.rr-cat-seo { margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 48px); background: var(--wp--preset--color--ivory); border: 1px solid var(--wp--preset--color--stone); border-top: 3px solid var(--wp--preset--color--gold); }
.rr-cat-seo h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 16px; }
.rr-cat-seo h3 { font-size: 16px; letter-spacing: .1em; margin: 26px 0 10px; }
.rr-cat-seo p { color: var(--wp--preset--color--ink); max-width: 860px; }
.rr-cat-seo ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.rr-cat-seo li::marker { color: var(--wp--preset--color--gold); }
.rr-cat-seo a:not(.rr-btn) { color: var(--wp--preset--color--gold-dark); }
.rr-cat-seo-cta { margin: 26px 0 0; }
.rr-post-shop { margin-top: 40px !important; padding: 26px 28px !important; background: var(--wp--preset--color--ivory); border-left: 3px solid var(--wp--preset--color--gold); }
.rr-post-shop h3 { margin: 0 0 10px !important; font-size: 18px !important; }
.rr-post-shop p { margin: 0 !important; }

/* Phones: "Get in touch" shows the banners photo on its own at the top, the card sits below it. */
@media (max-width: 781px) {
	.rr-touch { min-height: 0 !important; padding-top: calc(64vw + 28px) !important; padding-bottom: 36px !important; background: var(--wp--preset--color--navy); }
	.rr-touch .wp-block-cover__image-background { height: 64vw !important; bottom: auto !important; object-position: 100% 50% !important; }
	.rr-touch .wp-block-cover__background { height: 64vw; bottom: auto; }
	.rr-touch .wp-block-cover__inner-container { width: 100%; }
	.rr-touch .rr-touch-card { margin: 0 auto !important; max-width: 520px !important; }
}

/* Phones: in image + text sections the image always comes first, the text below it. */
@media (max-width: 781px) {
	.rr-split > .wp-block-column:has(figure) { order: -1; }
	.rr-split > .wp-block-column:has(figure) + .wp-block-column, .rr-split > .wp-block-column:not(:has(figure)) { order: 0; }
}

/* Phones: Specialization gallery above its text. */
@media (max-width: 781px) {
	.rr-spec .rr-spec-media { order: -1; margin-top: 0 !important; margin-bottom: 12px !important; }
}

/* Phones: the WordPress admin bar scrolls away below 600px, so the sticky header must sit at the very top. */
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }

/* ---------- Showroom section ---------- */
.rr-showroom { background: radial-gradient(120% 90% at 20% 30%, #13284a 0%, var(--wp--preset--color--navy) 60%) !important; color: var(--wp--preset--color--ivory); border-top: 0 !important; }
.rr-showroom + .rr-section { border-top: 0 !important; }
.rr-sr { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; max-width: 1280px; margin: 0 auto; }
.rr-sr-media { position: relative; margin: 0; padding: 0 22px 22px 0; }
.rr-sr-media::before { content: ""; position: absolute; right: 0; bottom: 0; width: calc(100% - 22px); height: calc(100% - 22px); border: 1px solid var(--wp--preset--color--gold); }
.rr-sr-media img { position: relative; width: 100%; height: auto; display: block; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.rr-sr-badge { position: absolute; left: -18px; bottom: 60px; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); padding: 16px 22px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.rr-sr-badge strong { display: block; font-family: var(--wp--preset--font-family--cinzel); font-size: 28px; letter-spacing: .02em; }
.rr-sr-text .rr-eyebrow { color: var(--wp--preset--color--gold-light) !important; }
.rr-sr-text h2 { color: var(--wp--preset--color--white) !important; margin: 0 0 20px !important; font-size: clamp(28px, 3.2vw, 44px) !important; }
.rr-sr-text h2::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 20px; background: var(--wp--preset--color--gold); }
.rr-sr-text > p:not(.rr-eyebrow) { color: rgba(244,243,240,.85); max-width: 560px; }
.rr-sr-list { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; }
.rr-sr-list a { display: flex; align-items: center; gap: 12px; color: var(--wp--preset--color--ivory); font-size: 15px; }
.rr-sr-list a::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--wp--preset--color--gold); flex: 0 0 8px; }
.rr-sr-list a:hover { color: var(--wp--preset--color--gold-light); }
.rr-sr-stats { display: flex; margin: 0 0 32px; border-top: 1px solid rgba(212,186,152,.3); border-bottom: 1px solid rgba(212,186,152,.3); }
.rr-sr-stats div { flex: 1; padding: 18px 10px; text-align: center; }
.rr-sr-stats div + div { border-left: 1px solid rgba(212,186,152,.3); }
.rr-sr-stats strong { display: block; font-family: var(--wp--preset--font-family--cinzel); font-size: clamp(24px, 2.4vw, 34px); color: var(--wp--preset--color--gold-light); font-weight: 400; }
.rr-sr-stats span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,243,240,.7); }
.rr-sr .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.rr-sr .rr-btn-light .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--white) !important; border: 1px solid rgba(255,255,255,.6) !important; }
.rr-sr .rr-btn-light .wp-block-button__link:hover { background: var(--wp--preset--color--white) !important; color: var(--wp--preset--color--navy) !important; }
@media (max-width: 900px) {
	.rr-sr { grid-template-columns: minmax(0,1fr); }
	.rr-sr-media { max-width: 520px; margin: 0 auto; }
	.rr-sr-text { text-align: center; }
	.rr-sr-text > * { margin-left: auto !important; margin-right: auto !important; }
	.rr-sr-text h2::after { margin-left: auto; margin-right: auto; }
	.rr-sr-list { text-align: left; }
	.rr-sr .wp-block-buttons { justify-content: center; }
	.rr-sr-badge { left: 8px; }
}

/* Showroom: ivory background with dark text. */
.rr-showroom { background: #F4F3F0 !important; color: var(--wp--preset--color--ink); }
.rr-sr-text .rr-eyebrow { color: var(--wp--preset--color--gold-dark) !important; }
.rr-sr-text h2 { color: var(--wp--preset--color--navy) !important; }
.rr-sr-text > p:not(.rr-eyebrow) { color: var(--wp--preset--color--ink); }
.rr-sr-list a { color: var(--wp--preset--color--navy); }
.rr-sr-list a:hover { color: var(--wp--preset--color--gold-dark); }
.rr-sr-stats, .rr-sr-stats div + div { border-color: rgba(177,145,105,.45) !important; }
.rr-sr-stats strong { color: var(--wp--preset--color--gold-dark); }
.rr-sr-stats span { color: var(--wp--preset--color--ink); }
.rr-sr-media img { box-shadow: 0 30px 60px rgba(11,27,48,.25); }
.rr-sr .rr-btn-light .wp-block-button__link { color: var(--wp--preset--color--navy) !important; border-color: var(--wp--preset--color--navy) !important; }
.rr-sr .rr-btn-light .wp-block-button__link:hover { background: var(--wp--preset--color--navy) !important; color: var(--wp--preset--color--white) !important; }

/* ---------- Call-to-action band (hero photo background) ---------- */
.rr-cta-band { margin: 0 !important; padding: clamp(72px, 9vw, 130px) var(--rr-edge) !important; }
.rr-cta-band .wp-block-cover__image-background { object-position: 50% 32%; }
.rr-cta-band .wp-block-cover__background { background: radial-gradient(60% 75% at 50% 50%, rgba(11,27,48,.82) 0%, rgba(11,27,48,.45) 100%) !important; opacity: 1 !important; }
.rr-cta-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(32px, 4vw, 52px) clamp(20px, 4vw, 56px); }
.rr-cta-inner::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(212,186,152,.45); pointer-events: none; }
.rr-cta-inner .rr-eyebrow { color: var(--wp--preset--color--gold-light) !important; margin: 0 0 12px !important; }
.rr-cta-inner h2 { color: var(--wp--preset--color--white) !important; font-size: clamp(30px, 4vw, 52px) !important; margin: 0 0 18px !important; }
.rr-cta-lead { color: rgba(244,243,240,.88) !important; max-width: 600px; margin: 0 auto 28px !important; }
.rr-cta-steps { list-style: none; padding: 0; margin: 0 auto 32px; display: flex; justify-content: center; gap: 0; max-width: 620px; border-top: 1px solid rgba(212,186,152,.35); border-bottom: 1px solid rgba(212,186,152,.35); }
.rr-cta-steps li { flex: 1; padding: 16px 8px; color: var(--wp--preset--color--ivory); font-size: 14px; letter-spacing: .04em; }
.rr-cta-steps li + li { border-left: 1px solid rgba(212,186,152,.35); }
.rr-cta-steps span { display: block; font-family: var(--wp--preset--font-family--cinzel); color: var(--wp--preset--color--gold-light); font-size: 20px; margin-bottom: 4px; }
.rr-cta-inner .wp-block-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rr-cta-inner .rr-btn-light .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--white) !important; border: 1px solid rgba(255,255,255,.6) !important; }
.rr-cta-inner .rr-btn-light .wp-block-button__link:hover { background: var(--wp--preset--color--white) !important; color: var(--wp--preset--color--navy) !important; }
@media (max-width: 600px) {
	.rr-cta-steps { flex-direction: column; }
	.rr-cta-steps li + li { border-left: 0; border-top: 1px solid rgba(212,186,152,.35); }
	.rr-cta-band .wp-block-cover__image-background { object-position: 12% 50%; }
}

/* CTA band: no frame or dividers. */
.rr-cta-inner::before { display: none !important; }
.rr-cta-steps, .rr-cta-steps li, .rr-cta-steps li + li { border: 0 !important; }

/* Category banner: one short line; full description lives below the grid. */
.rr-page-banner .rr-page-desc { max-width: 680px; font-size: 16px; line-height: 1.6; }
.rr-cat-about { margin-bottom: 8px; }
.rr-cat-about p { margin: 0 0 12px; }
