/* Ruby Roman Services LLP — shared navbar and footer
   Put the logo at assets/logo/ruby-roman-logo.webp.
   Set --rr-footer-image to the approved scenic footer image URL/path.
*/
:root {
  --rr-maroon: #a51f35;
  --rr-maroon-deep: #4b0c12;
  --rr-ink: #20212a;
  --rr-cream: #f7f0e3;
  --rr-gold: #d7b77b;
  --rr-nav-height: 88px;
  --rr-footer-image: url("../assets/images/home/footer-blue-wave.webp");
  --rr-footer-image-opacity: .80;
  --rr-content-width: 1240px;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; }
.rr-container { width: min(var(--rr-content-width), calc(100% - 64px)); margin-inline: auto; }

/* Navbar: translucent over the hero; white after scrolling. */
.rr-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  min-height: var(--rr-nav-height);
  color: #fff;
  background: rgba(40, 27, 27, .34);
  border-bottom: 1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color .32s ease, color .32s ease, box-shadow .32s ease,
              border-color .32s ease, min-height .32s ease;
}
.rr-header.is-scrolled {
  color: var(--rr-ink);
  background: rgba(255,255,255,.97);
  border-bottom-color: rgba(70,30,30,.10);
  box-shadow: 0 8px 28px rgba(35,20,20,.09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.rr-header__inner {
  width: min(1380px, calc(100% - 64px)); min-height: var(--rr-nav-height);
  margin-inline: auto; display: flex; align-items: center; justify-content: space-between;
  gap: clamp(14px, 2vw, 32px);
}
.rr-brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.rr-brand__logo { display: block; width: clamp(220px, 21vw, 275px); height: auto; max-height: 78px; object-fit: contain; }
.rr-brand { background: transparent; border-radius: 0; padding: 0; }
.rr-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.7vw, 28px); }
.rr-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 0; border: 0; background: none; color: inherit;
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color .22s ease;
}
.rr-nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px;
  background: var(--rr-maroon); transition: right .24s ease;
}
.rr-nav__link:hover::after, .rr-nav__link:focus-visible::after { right: 0; }
.rr-nav__link[aria-current="page"]::after, .rr-nav__link.is-current::after { right: 0; }
.rr-nav__link:hover { color: #f4c9a8; }
.rr-header.is-scrolled .rr-nav__link:hover { color: var(--rr-maroon); }
.rr-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.rr-nav__group { position: relative; }
.rr-dropdown {
  position: absolute; top: calc(100% + 8px); left: -18px; min-width: 225px;
  display: grid; gap: 3px; padding: 10px; border: 1px solid rgba(100,40,40,.12);
  border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(35,20,20,.16);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.rr-nav__group:hover .rr-dropdown, .rr-nav__group:focus-within .rr-dropdown,
.rr-nav__group.is-open .rr-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.rr-dropdown a { color: #30252a; padding: 11px 12px; border-radius: 7px; text-decoration: none; font-size: 13px; }
.rr-dropdown a:hover, .rr-dropdown a:focus-visible { color: var(--rr-maroon); background: #fbf0ec; }
.rr-header__actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.rr-quote-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 19px; border-radius: 999px; color: #fff; background: var(--rr-maroon);
  border: 1px solid rgba(255,255,255,.25); text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 700; box-shadow: 0 6px 18px rgba(120,15,35,.15);
  transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.rr-quote-button:hover { background: #83152a; transform: translateY(-2px); box-shadow: 0 9px 22px rgba(120,15,35,.25); }
.rr-menu-toggle { display: none; }

/* Footer: the image itself stays subdued; overlay opacity is independently adjustable. */
.rr-footer {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: #3b080d; padding: 58px 0 0;
}
.rr-footer::before {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background-image: var(--rr-footer-image); background-position: center 58%;
  background-size: cover; background-repeat: no-repeat;
  opacity: var(--rr-footer-image-opacity); transform: scale(1.02);
}
.rr-footer__overlay {
  position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(110deg, rgba(45,4,9,.95), rgba(91,9,17,.78) 55%, rgba(43,4,8,.9));
}
/* Curved, softly blended transition from the section above into the footer. */
.rr-footer::after {
  content: ""; position: absolute; z-index: -1; top: -34px; left: -2%; width: 104%; height: 65px;
  background: rgba(247,240,227,.88); border-radius: 50% 50% 0 0 / 55% 55% 0 0;
  filter: blur(13px); opacity: .30; pointer-events: none;
}
.rr-footer__content { display: grid; grid-template-columns: 1.2fr .7fr .95fr 1.25fr; gap: clamp(26px, 4vw, 64px); padding-bottom: 38px; }
.rr-footer__brand img { display: block; width: min(220px, 100%); height: auto; padding: 0; background: transparent; border-radius: 0; filter: drop-shadow(0 2px 10px rgba(30, 0, 4, .18)); }
.rr-footer__tagline { margin: 10px 0 14px; color: #f0cf8c; font-size: 12px; letter-spacing: .04em; }
.rr-footer__description { max-width: 260px; margin: 0; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.75; }
.rr-footer__column h2 { margin: 4px 0 18px; color: #fff; font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.rr-footer__column ul { display: grid; gap: 11px; list-style: none; margin: 0; padding: 0; }
.rr-footer__column a { color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.6; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.rr-footer__column ul a { display: inline-flex; align-items: center; gap: 8px; }
.rr-footer__column a:hover, .rr-footer__column a:focus-visible { color: #f0cf8c; }
.rr-footer__column ul a:hover { transform: translateX(3px); }
.rr-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.rr-footer__contact h2 { margin-bottom: 5px; }
.rr-footer__contact > a { display: flex; gap: 9px; align-items: flex-start; overflow-wrap: anywhere; }
.rr-footer__contact > a > span { width: 16px; flex: 0 0 16px; color: #f0cf8c; }
.rr-socials { display: flex; gap: 10px; margin-top: 5px; }
.rr-socials a { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.rr-socials a:hover { color: #4b0c12; background: #f0cf8c; border-color: #f0cf8c; }
.rr-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.rr-footer__bottom p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; }
.rr-back-to-top { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; text-decoration: none; font-size: 20px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.rr-back-to-top:hover { color: #4b0c12; background: #f0cf8c; transform: translateY(-3px); }

@media (max-width: 1120px) {
  .rr-header__inner { width: calc(100% - 36px); gap: 14px; }
  .rr-brand__logo { width: 205px; max-height: 66px; }
  .rr-nav { gap: 14px; }
  .rr-header__actions { gap: 10px; }
  .rr-footer__content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --rr-nav-height: 76px; }
  .rr-header__inner { width: calc(100% - 32px); }
  .rr-brand__logo { width: 166px; }
  .rr-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; margin-left: auto; padding: 9px; border: 1px solid currentColor; border-radius: 10px; color: inherit; background: transparent; cursor: pointer; }
  .rr-menu-toggle span { display: block; height: 2px; width: 100%; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .rr-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .rr-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .rr-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .rr-header__actions { margin-left: 0; }
  .rr-quote-button { padding: 12px 14px; font-size: 11px; }
  .rr-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 10px 20px 18px; color: #29232a; background: rgba(255,255,255,.98); box-shadow: 0 18px 24px rgba(30,15,15,.12); }
  .rr-nav.is-open { display: flex; flex-direction: column; }
  .rr-nav__link { width: 100%; padding: 14px 4px; text-align: left; color: #29232a; }
  .rr-nav__link::after { bottom: 7px; right: 100%; }
  .rr-nav__group { width: 100%; }
  .rr-dropdown { position: static; display: none; min-width: 0; padding: 3px 0 8px 12px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .rr-nav__group.is-open .rr-dropdown { display: grid; }
  .rr-footer { padding-top: 48px; }
  .rr-container { width: calc(100% - 36px); }
}
@media (max-width: 560px) {
  .rr-brand { padding: 4px 5px; }
  .rr-brand__logo { width: 138px; }
  .rr-quote-button { gap: 7px; padding: 11px 12px; }
  .rr-footer__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brand brand" "quick services" "contact contact";
    gap: 22px 18px;
    padding-bottom: 24px;
  }
  .rr-footer__brand-column { grid-area: brand; }
  .rr-footer__content > .rr-footer__column:nth-of-type(2) { grid-area: quick; }
  .rr-footer__content > .rr-footer__column:nth-of-type(3) { grid-area: services; }
  .rr-footer__content > .rr-footer__contact { grid-area: contact; }
  .rr-footer__brand img { width: 200px; }
  .rr-footer__bottom { align-items: flex-start; }
  .rr-footer__bottom p { max-width: 80%; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* =========================================================
   Ruby Roman mobile refinement — navbar and footer
   ========================================================= */
@media (max-width: 820px) {
  .rr-header__inner { gap: 10px; }
  .rr-header__actions { gap: 8px; }
  .rr-menu-toggle { flex: 0 0 42px; }
  .rr-nav { max-height: calc(100dvh - var(--rr-nav-height)); overflow-y: auto; }
  .rr-nav__link { min-height: 44px; }
  .rr-dropdown a { display: block; min-height: 42px; }
}

@media (max-width: 560px) {
  :root { --rr-nav-height: 68px; }
  .rr-header__inner { width: calc(100% - 24px); gap: 8px; }
  .rr-brand { padding: 3px 4px; }
  .rr-brand__logo { width: clamp(112px, 35vw, 138px); max-height: 48px; }
  .rr-quote-button { gap: 5px; padding: 10px 10px; font-size: 10px; }
  .rr-menu-toggle { width: 40px; height: 40px; flex-basis: 40px; padding: 8px; }
  .rr-nav { padding: 8px 18px 16px; }
  .rr-footer { padding-top: 40px; }
  .rr-container { width: calc(100% - 32px); }
  .rr-footer__content { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 28px; }
  .rr-footer__brand img { width: 155px; padding: 4px 5px; }
  .rr-footer__tagline { margin: 8px 0 10px; font-size: 11px; }
  .rr-footer__description { max-width: 36ch; font-size: 12px; line-height: 1.65; }
  .rr-footer__column h2 { margin-bottom: 12px; }
  .rr-footer__column ul { gap: 8px; }
  .rr-footer__contact { gap: 9px; }
  .rr-footer__bottom { flex-direction: row; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .rr-footer__bottom p { max-width: none; font-size: 10px; line-height: 1.5; }
}

@media (max-width: 360px) {
  .rr-brand__logo { width: 108px; }
  .rr-quote-button { padding: 9px 8px; font-size: 9px; }
  .rr-header__inner { gap: 6px; }
}



/* Prevent mobile page-level horizontal overflow */
html, body { max-width: 100%; }
body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, svg { max-width: 100%; }


/* Transparent logo treatment and restrained shared UI transitions. */
.rr-brand { background: transparent !important; padding: 4px 0 !important; border-radius: 0 !important; }
.rr-brand__logo { filter: drop-shadow(0 2px 7px rgba(0,0,0,.10)); transition: filter .3s ease, width .3s ease; }
.rr-header.is-scrolled .rr-brand__logo { filter: none; }
.rr-quote-button { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.rr-quote-button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(80,15,25,.18); }
.rr-footer a { transition: color .22s ease, transform .22s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Switch between transparent logo variants for contrast over hero / light header. */
.rr-brand__logo--light { display: block; }
.rr-brand__logo--dark { display: none; }
.rr-header.is-scrolled .rr-brand__logo--light { display: none; }
.rr-header.is-scrolled .rr-brand__logo--dark { display: block; }


/* Ruby Roman visual refinement v2: stronger identity, richer footer, no logo plates. */
.rr-brand {
  background: transparent !important;
  padding: 0 !important;
}
.rr-brand__logo {
  width: clamp(205px, 20vw, 258px);
  max-height: 76px;
}
.rr-brand__logo--light { display: block; }
.rr-brand__logo--dark { display: none; }
.rr-header.is-scrolled .rr-brand__logo--light { display: none; }
.rr-header.is-scrolled .rr-brand__logo--dark { display: block; }

.rr-footer {
  background: #3d050d;
}
.rr-footer::before {
  opacity: 1;
  filter: saturate(1.22) contrast(1.08);
}
.rr-footer__overlay {
  background: linear-gradient(105deg,
    rgba(69, 3, 12, .70) 0%,
    rgba(112, 8, 22, .56) 48%,
    rgba(57, 3, 12, .70) 100%);
}
.rr-footer__brand img {
  width: min(238px, 100%);
  padding: 0;
  background: transparent !important;
  border-radius: 0;
  mix-blend-mode: normal;
}
.rr-footer__brand {
  display: inline-flex;
  max-width: 100%;
  background: transparent !important;
  padding: 0 !important;
}
@media (max-width: 820px) {
  .rr-brand__logo { width: clamp(165px, 28vw, 220px); max-height: 64px; }
}
@media (max-width: 560px) {
  .rr-brand__logo { width: clamp(135px, 37vw, 175px); max-height: 54px; }
  .rr-footer__brand img { width: min(205px, 100%); }
}


/* =========================================================
   Ruby Roman shared shell — finalized sizing and contrast
   These rules intentionally live in style.css so every page
   using the shared navbar/footer receives the same treatment.
   ========================================================= */
.rr-brand {
  background: transparent !important;
  padding: 0 !important;
}
.rr-brand__logo {
  width: clamp(225px, 22vw, 278px);
  max-height: 82px;
}
.rr-header.is-scrolled .rr-brand__logo {
  filter: drop-shadow(0 1px 1px rgba(20, 10, 10, .06));
}
.rr-footer__brand img {
  width: min(252px, 100%);
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  /* Lift the mark from the scenic image without adding a white plate. */
  filter: saturate(1.22) drop-shadow(0 2px 5px rgba(20, 0, 3, .48));
}
.rr-footer__brand {
  display: inline-flex;
  max-width: 100%;
  padding: 0 !important;
  background: transparent !important;
}
.rr-footer__overlay {
  background: linear-gradient(105deg,
    rgba(56, 2, 10, .78) 0%,
    rgba(103, 7, 20, .61) 48%,
    rgba(43, 2, 9, .78) 100%);
}
@media (max-width: 1120px) {
  .rr-brand__logo { width: clamp(190px, 21vw, 235px); max-height: 70px; }
}
@media (max-width: 820px) {
  .rr-brand__logo { width: clamp(175px, 29vw, 225px); max-height: 64px; }
  .rr-footer__brand img { width: min(230px, 100%); }
}
@media (max-width: 560px) {
  .rr-brand__logo { width: clamp(145px, 39vw, 180px); max-height: 54px; }
  .rr-footer__brand img { width: min(210px, 100%); }
}
@media (max-width: 360px) {
  .rr-brand__logo { width: 136px; }
}


/* Ruby Roman shared-shell refinement: desktop brand prominence and compact mobile footer */
@media (min-width: 1121px) {
  .rr-header__inner { gap: clamp(18px, 2.2vw, 38px); }
  .rr-brand__logo { width: clamp(235px, 22vw, 285px); max-height: 82px; }
}
@media (max-width: 820px) {
  .rr-brand__logo { width: 158px; max-height: 54px; }
  .rr-brand { padding: 0; background: transparent; }
}
@media (max-width: 560px) {
  .rr-brand__logo { width: clamp(126px, 34vw, 150px); max-height: 48px; }
  .rr-footer__content { gap: 20px 16px; }
  .rr-footer__column h2 { margin-bottom: 10px; font-size: 13px; }
  .rr-footer__column ul { gap: 7px; }
  .rr-footer__column a { font-size: 11px; line-height: 1.5; }
  .rr-footer__contact { gap: 9px; }
  .rr-footer__contact > a { font-size: 11px; line-height: 1.5; }
  .rr-socials { gap: 9px; margin-top: 3px; }
  .rr-socials a { width: 34px; height: 34px; }
  .rr-footer__bottom { padding-top: 14px; padding-bottom: 14px; }
}
.rr-socials a img { display: block; width: 16px; height: 16px; object-fit: contain; }
.rr-footer__contact .rr-footer__address img { display: block; width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }

body:has(.about-hero) .about-hero {
    margin-top: 0;
    padding-top: 120px;
}

@media (max-width: 768px) {
    body:has(.about-hero) .about-hero {
        padding-top: 140px;
    }
}

/* Shared contact details and neutral footer treatment. */
.rr-header { position: absolute; color: #eae6e1; background: transparent; border-bottom-color: rgba(255,255,255,.16); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.rr-header.is-scrolled { position: fixed; color: #292929; background: rgba(255,255,255,.97); border-bottom-color: #eae6e1; box-shadow: 0 4px 20px rgba(0,0,0,.07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rr-header:not(.is-scrolled) .rr-nav__link { color: #fff; }
.rr-header:not(.is-scrolled) .rr-menu-toggle { color: #fff; }
.rr-header:not(.is-scrolled) .rr-menu-toggle span { background: #fff; }
.rr-header.is-scrolled .rr-nav__link { color: #292929; }
.rr-header.is-scrolled .rr-chevron { border-color: #292929; }
.rr-header.is-scrolled .rr-menu-toggle { color: #292929; }
.rr-header.is-scrolled .rr-menu-toggle span { background: #292929; }
/* Keep the shared desktop navbar anchored consistently on every page. */
.rr-header { font-family: "DM Sans", Arial, sans-serif; }
@media (min-width: 1121px) {
  .rr-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .rr-brand { justify-self: start; }
  .rr-nav { justify-self: center; }
  .rr-header__actions { justify-self: end; }
}
.rr-header__phones { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.rr-header__phones img { width: 16px; height: 16px; object-fit: contain; filter: none; }
.rr-header__phones a { color: inherit; text-decoration: none; }
.rr-header__phones a:hover, .rr-header__phones a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.rr-header.is-scrolled .rr-header__phones img { filter: none; }
.rr-footer { background: #031609; }
.rr-footer::before { opacity: .40; filter: grayscale(1) saturate(.4); }
.rr-footer__overlay { background: rgba(28, 27, 27, 0.91); }
.rr-footer__contact > a { align-items: center; }
.rr-footer__contact > a > span { display: none; }
.rr-footer__contact > a .rr-footer__icon { width: 16px; height: 16px; flex: 0 0 16px; object-fit: contain; filter: brightness(0) invert(1); opacity: .86; }
.rr-footer__phone-group { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; line-height: 1.6; }
.rr-footer__phone-group a { color: rgba(255,255,255,.82); text-decoration: none; }
.rr-footer__phone-group a:hover, .rr-footer__phone-group a:focus-visible { color: #f0cf8c; }
.rr-footer__phone-group .rr-footer__icon { width: 16px; height: 16px; flex: 0 0 16px; object-fit: contain; filter: none; opacity: 1; }
.rr-footer__contact > a .rr-footer__icon--gmail { filter: none; opacity: 1; }
@media (max-width: 1120px) {
  .rr-header__phones { gap: 5px; font-size: 11px; }
  .rr-header__phones img { width: 15px; height: 15px; }
}

@media (max-width: 820px) {
  .rr-header__phones { display: none; }
  /* Keep the quote action beside the brand and anchor the menu control at
     the far edge of the mobile header. */
  .rr-brand { order: 1; }
  .rr-header__actions { order: 2; margin-left: auto; }
  .rr-menu-toggle { order: 3; margin-left: 0; }
}

@media (max-width: 820px) {
  :root { --rr-nav-height: 78px; }
  .rr-header__inner { width: calc(100% - 32px); gap: 10px; }
  .rr-brand { min-width: 0; }
  .rr-brand__logo { width: clamp(150px, 22vw, 178px); max-height: 60px; }
}

@media (max-width: 560px) {
  :root { --rr-nav-height: 74px; }
  .rr-header__inner { width: calc(100% - 24px); gap: 7px; }
  .rr-brand__logo { width: clamp(138px, 39vw, 158px); max-height: 56px; }
  .rr-quote-button { padding: 10px 9px; gap: 5px; font-size: 10px; }
}

@media (max-width: 360px) {
  .rr-header__inner { width: calc(100% - 20px); gap: 5px; }
  .rr-brand__logo { width: 128px; }
  .rr-quote-button { padding-inline: 7px; font-size: 9px; }
}

/* The mobile panel is opaque, so its links must stay dark even over the
   transparent, unscrolled header state used above desktop heroes. */
@media (max-width: 820px) {
  .rr-header:not(.is-scrolled) .rr-nav.is-open .rr-nav__link,
  .rr-header:not(.is-scrolled) .rr-nav.is-open .rr-chevron,
  .rr-header.is-scrolled .rr-nav.is-open .rr-nav__link,
  .rr-header.is-scrolled .rr-nav.is-open .rr-chevron {
    color: #29232a;
    border-color: #29232a;
  }
  .rr-nav.is-open { background: #fff; }
  .rr-nav.is-open .rr-dropdown a { color: #30252a; }
  .rr-nav.is-open .rr-dropdown a:hover,
  .rr-nav.is-open .rr-dropdown a:focus-visible { color: var(--rr-maroon); }
}

/* Keep copyright at the left; center only the legal links in the remaining row. */
.rr-footer__bottom > p { flex: 0 0 auto; max-width: none; font-size: 11px; }
.rr-footer__bottom > .rr-footer__legal-links { flex: 1 1 auto; justify-content: center; font-size: 10px; }
@media (max-width: 560px) {
  .rr-footer__bottom > p { font-size: 10px; }
  .rr-footer__bottom > .rr-footer__legal-links { font-size: 9px; }
}
/* Legal links sit at the footer row's true center, independent of the copyright. */
.rr-footer__bottom { position: relative; }
.rr-footer__bottom > .rr-footer__legal-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex: 0 0 auto;
  justify-content: center;
  white-space: nowrap;
  font-size: 10px;
}
.rr-footer__bottom > .rr-footer__legal-links a,
.rr-footer__bottom > .rr-footer__legal-links a:visited,
.rr-footer__bottom > .rr-footer__legal-links a:active {
  color: rgba(255,255,255,.72);
  text-decoration: none;
}
.rr-footer__bottom > .rr-footer__legal-links a:hover,
.rr-footer__bottom > .rr-footer__legal-links a:focus-visible { color: #f0cf8c; }
@media (max-width: 700px) {
  .rr-footer__bottom { flex-wrap: wrap; }
  .rr-footer__bottom > .rr-footer__legal-links {
    position: static;
    order: 3;
    width: 100%;
    transform: none;
    flex: 1 0 100%;
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
    font-size: 9px;
  }
}
.rr-footer__legal-links > span[aria-hidden="true"] { margin-inline: 5px; }

/* Fixed contact shortcuts: WhatsApp above the back-to-top control. */
.rr-back-to-top {
  position: fixed;
  z-index: 1200;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: rgba(32, 33, 42, .82);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.rr-whatsapp-float {
  position: fixed;
  z-index: 1200;
  right: max(19px, calc(env(safe-area-inset-right) - 3px));
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 76px));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #168c4a;
  box-shadow: 0 4px 16px rgba(0,0,0,.24);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rr-whatsapp-float img { display: block; width: 25px; height: 25px; object-fit: contain; }
.rr-whatsapp-float:hover, .rr-whatsapp-float:focus-visible { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(0,0,0,.3); }
@media (max-width: 560px) {
  .rr-back-to-top { right: calc(max(20px, env(safe-area-inset-right)) - (100vw - 100%)); bottom: max(14px, env(safe-area-inset-bottom)); width: 38px; height: 38px; flex-basis: 38px; }
  .rr-whatsapp-float { right: calc(max(20px, env(safe-area-inset-right)) - (100vw - 100%)); bottom: max(64px, calc(env(safe-area-inset-bottom) + 64px)); width: 44px; height: 44px; }
  .rr-whatsapp-float img { width: 23px; height: 23px; }
}
@media (max-height: 420px) and (max-width: 820px) {
  .rr-back-to-top { width: 34px; height: 34px; }
  .rr-whatsapp-float { width: 38px; height: 38px; }
  .rr-whatsapp-float img { width: 20px; height: 20px; }
}

/* Use a compact right-side drawer for mobile navigation, with an opaque surface. */
@media (max-width: 820px) {
  .rr-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: auto;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--rr-nav-height) - 20px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 16px;
    border: 1px solid rgba(70, 30, 30, .1);
    border-radius: 12px;
    color: #29232a;
    background: #fff;
    box-shadow: 0 18px 32px rgba(30, 15, 15, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 1002;
  }
  .rr-nav.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    background: #fff;
  }
  .rr-nav__group { width: 100%; }
  .rr-nav__dropdown-toggle,
  .rr-nav.is-open .rr-nav__link { color: #29232a; }
  .rr-dropdown {
    position: static;
    display: grid;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    gap: 2px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px);
    transition: max-height .28s ease, opacity .22s ease, transform .22s ease, padding .22s ease, visibility .22s ease;
  }
  .rr-nav__group.is-open .rr-dropdown {
    display: grid;
    max-height: 240px;
    padding: 3px 0 8px 12px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .rr-nav.is-open .rr-dropdown a { color: #30252a; }
  .rr-nav.is-open .rr-dropdown a:hover,
  .rr-nav.is-open .rr-dropdown a:focus-visible { color: var(--rr-maroon); background: #fbf0ec; }
}
