/* Home-only preview. Shared service-page styles stay in their original files. */
body.rc-visual.rc-home-refresh {
  --rc-home-paper: #fcfaf7;
  --rc-home-ink: #241e1d;
  --rc-home-muted: #615653;
  --rc-home-line: #e6dbd4;
  --rc-home-accent: #a8252d;
  --rc-home-accent-hover: #811b23;
  background: var(--rc-home-paper) !important;
  color: var(--rc-home-ink);
}

.rc-home-inner {
  width: min(1192px, calc(100% - clamp(36px, 8vw, 112px)));
  margin-inline: auto;
}

.rc-home-refresh .rc-home-lead {
  padding: clamp(44px, 6vw, 86px) 0;
  border-bottom: 1px solid var(--rc-home-line);
  background: #fffdfb;
}

.rc-home-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5.1vw, 78px);
}

.rc-home-refresh .rc-home-location {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--rc-home-accent);
  font-size: .9375rem;
  font-weight: 700;
}

.rc-home-location::before {
  width: 22px;
  border-top: 2px solid currentColor;
  content: "";
}

.rc-home-refresh #rc-home-title {
  margin: 0;
  color: var(--rc-home-ink) !important;
  font-size: clamp(2.25rem, 4.2vw, 3.875rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.19;
}

#rc-home-title span { display: block; }

.rc-home-refresh .rc-home-intro {
  max-width: 31em;
  margin: 20px 0 0;
  color: var(--rc-home-muted);
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.85;
}

.rc-home-actions, .rc-home-scene-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rc-home-actions { margin-top: 28px; }

.rc-home-refresh a.rc-home-button,
.rc-home-refresh .rc-home-scene-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.rc-home-refresh a.rc-home-button-primary {
  border-color: var(--rc-home-accent);
  background: var(--rc-home-accent);
  color: #fff;
}
.rc-home-refresh a.rc-home-button-primary:hover {
  border-color: var(--rc-home-accent-hover);
  background: var(--rc-home-accent-hover);
  color: #fff;
}

.rc-home-refresh a.rc-home-button-secondary,
.rc-home-refresh .rc-home-scene-links a {
  border-color: #d8c7bf;
  background: #fffdfb;
  color: #7d252a;
}
.rc-home-refresh a.rc-home-button-secondary:hover,
.rc-home-refresh .rc-home-scene-links a:hover {
  border-color: #ac5357;
  background: #fff3f0;
  color: var(--rc-home-accent-hover);
}

.rc-home-figure { margin: 0; }

.rc-home-image-frame {
  min-height: 285px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #30211e;
}

.rc-home-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 54%;
}

.rc-home-figure figcaption {
  margin-top: 8px;
  color: var(--rc-home-muted);
  font-size: .8125rem;
  text-align: right;
}

body.rc-visual-home.rc-home-refresh #solutions {
  padding: clamp(36px, 4.2vw, 62px) 0 !important;
  border-bottom: 1px solid var(--rc-home-line);
  background: var(--rc-home-paper) !important;
}

.rc-home-refresh #rc-home-scenes-title {
  margin: 0 0 18px;
  color: var(--rc-home-ink);
  font-size: clamp(1.5rem, 2.35vw, 2.125rem);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.rc-home-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rc-home-scene {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 2.15vw, 30px);
  border: 1px solid var(--rc-home-line);
  border-radius: 9px;
  background: #fff;
}

.rc-home-refresh .rc-home-scene h3 {
  margin: 0 0 9px;
  color: var(--rc-home-ink);
  font-size: clamp(1.1875rem, 1.9vw, 1.5625rem);
  font-weight: 740;
  line-height: 1.3;
}
.rc-home-refresh .rc-home-scene p {
  margin: 0 0 17px;
  color: var(--rc-home-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.rc-home-scene-links { margin-top: auto; }
.rc-home-refresh .rc-home-scene-links a { min-height: 44px; padding: 6px 13px; font-size: .9375rem; }

.rc-home-refresh .rc-home-mobile-actions { display: none; }


/* The scroll wrapper keeps the existing header and footer intact on the home page. */
.rc-home-refresh .rc-home-scroll > .rc-site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 80;
  color: var(--rc-home-ink);
  background: #fffdfb !important;
  border-bottom: 1px solid var(--rc-home-line);
  backdrop-filter: none;
}

body.rc-visual-home.rc-home-refresh #contact .cta {
  border: 1px solid var(--rc-home-line);
  background: #fffdfb !important;
  color: var(--rc-home-ink) !important;
}
body.rc-visual-home.rc-home-refresh #contact .cta h2,
body.rc-visual-home.rc-home-refresh #contact .rc-contact-stack strong {
  color: var(--rc-home-ink) !important;
}
body.rc-visual-home.rc-home-refresh #contact .rc-contact-stack > * {
  border-color: var(--rc-home-line) !important;
  background: #f9f2ed !important;
}
body.rc-visual-home.rc-home-refresh #contact .rc-contact-stack a:hover {
  background: #fae9e4 !important;
}
body.rc-visual-home.rc-home-refresh #contact .rc-contact-stack a:focus-visible {
  outline-color: var(--rc-home-accent) !important;
}
body.rc-visual-home.rc-home-refresh #contact .rc-contact-stack span,
body.rc-visual-home.rc-home-refresh #contact :is(.rc-contact-address, .rc-contact-note) {
  color: var(--rc-home-muted) !important;
}

.rc-home-refresh .rc-home-scroll > .rc-site-footer {
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--rc-home-line) !important;
  background: #f3ece6 !important;
  color: var(--rc-home-ink);
  text-align: left;
}
.rc-home-refresh .rc-site-footer a { color: var(--rc-home-ink) !important; }
.rc-home-refresh .rc-site-footer a:hover { color: var(--rc-home-accent) !important; }
.rc-home-refresh .rc-site-footer-legal {
  border-color: var(--rc-home-line);
  color: var(--rc-home-muted);
}
.rc-home-refresh .rc-site-footer-legal a { color: var(--rc-home-muted) !important; }
.rc-home-refresh .rc-site-footer :focus-visible { outline-color: var(--rc-home-accent) !important; }

@media (max-width: 860px) {
  .rc-home-refresh .rc-home-scroll > .rc-site-header { position: relative; }
}

@media (max-width: 850px) {
  .rc-home-lead-grid { gap: 24px; }
  .rc-home-image-frame { min-height: 230px; }
}

@media (max-width: 760px) {
  /* The action bar has its own row, outside the scrolling page. */
  body.rc-visual.rc-home-refresh {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .rc-home-scroll {
    position: relative;
    min-height: 0;
    overflow: auto;
    overscroll-behavior-y: contain;
  }
  .rc-home-refresh .rc-home-lead { padding: 28px 0 24px; }
  .rc-home-lead-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rc-home-refresh .rc-home-location { margin-bottom: 12px; }
  .rc-home-refresh #rc-home-title { font-size: clamp(1.875rem, 8.2vw, 3rem); }
  .rc-home-refresh .rc-home-intro { margin-top: 13px; line-height: 1.66; }
  .rc-home-actions { margin-top: 18px; }
  .rc-home-refresh .rc-home-actions a { flex: 1 1 auto; min-width: 0; padding-inline: 10px; }
  .rc-home-image-frame { min-height: 142px; max-height: 200px; aspect-ratio: 2 / 1; }
  .rc-home-image-frame img { transform: scale(1.18); transform-origin: right 57%; }
  .rc-home-scene-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  body.rc-visual-home.rc-home-refresh #solutions { padding: 27px 0 35px !important; }
  .rc-home-refresh .rc-home-mobile-actions {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 8px max(16px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-top: 1px solid var(--rc-home-line);
    background: #fffdfb;
    box-shadow: 0 -3px 16px rgba(48, 19, 21, .06);
  }
  .rc-home-refresh .rc-home-mobile-actions a { min-height: 46px; padding-inline: 9px; }
}
