/* Shared page-template components. Loaded by non-home templates only. */
.rr-page {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

.rr-shell {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

.rr-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--background) 84%, transparent);
  backdrop-filter: blur(14px);
}

.rr-header__inner {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rr-brand,
.rr-nav,
.rr-header__actions,
.rr-inline {
  display: flex;
  align-items: center;
}

.rr-brand {
  gap: .5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}

.rr-brand__mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: .75rem;
  color: var(--brand-foreground);
  background: var(--gradient-hero);
  box-shadow: var(--shadow-card);
}

.rr-nav {
  gap: 1.75rem;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.rr-nav a {
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}

.rr-nav a:hover,
.rr-nav a[aria-current="page"] {
  color: var(--foreground);
}

.rr-header__actions {
  gap: .75rem;
}

.rr-phone {
  gap: .45rem;
  color: var(--brand);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.rr-section {
  padding-block: clamp(4.5rem, 7vw, 7rem);
}

.rr-section--surface {
  background: var(--surface);
}

.rr-section--brand {
  background: var(--brand);
  color: var(--brand-foreground);
}

.rr-section__head {
  max-width: 48rem;
}

.rr-section__head--center {
  margin-inline: auto;
  text-align: center;
}

.rr-eyebrow {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rr-section--brand .rr-eyebrow,
.rr-eyebrow--accent {
  color: var(--accent-cta);
}

.rr-title {
  margin-top: .75rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.rr-title--xl {
  font-size: clamp(2.75rem, 5.5vw, 4.8rem);
}

.rr-accent-text {
  color: var(--accent-cta);
}

.rr-lede {
  margin-top: 1rem;
  max-width: 42rem;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.75;
}

.rr-section--brand .rr-lede,
.rr-on-dark {
  color: color-mix(in oklab, var(--brand-foreground) 78%, transparent);
}

.rr-grid {
  display: grid;
  gap: 1.5rem;
}

.rr-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rr-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rr-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rr-card {
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.rr-card__body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.rr-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.rr-card p,
.rr-muted {
  color: var(--muted-foreground);
}

.rr-btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .55rem;
  padding: .78rem 1.1rem;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}

.rr-btn--accent {
  background: var(--accent-cta);
  color: var(--accent-cta-foreground);
}

.rr-btn--brand {
  background: var(--brand);
  color: var(--brand-foreground);
}

.rr-btn--ghost-dark {
  background: color-mix(in oklab, var(--brand-foreground) 12%, transparent);
  color: var(--brand-foreground);
  backdrop-filter: blur(10px);
}

.rr-btn:hover {
  opacity: .9;
}

.rr-media-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.rr-media-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.rr-media-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rr-media-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--brand) 92%, black 8%) 0%, color-mix(in oklab, var(--brand) 72%, transparent) 48%, color-mix(in oklab, var(--brand) 35%, transparent) 100%),
    var(--gradient-hero);
  opacity: .92;
}

.rr-quote-card {
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 1.25rem;
  background: var(--background);
  box-shadow: var(--shadow-elegant);
}

.rr-quote-card__body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.rr-form {
  display: grid;
  gap: .8rem;
}

.rr-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.rr-field label {
  display: block;
  margin-bottom: .35rem;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  font-size: .75rem;
  font-weight: 700;
}

.rr-field input,
.rr-field select,
.rr-field textarea {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid var(--input);
  border-radius: .55rem;
  padding: .55rem .75rem;
  background: transparent;
  color: var(--foreground);
  font-size: .92rem;
}

.rr-proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.rr-proof {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: inherit;
  font-size: .88rem;
  font-weight: 700;
}

.rr-dot-icon {
  display: inline-grid;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--accent-cta);
  font-size: .68rem;
}

.rr-site-footer {
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: var(--background);
}

.rr-footer-slider {
  position: relative;
  isolation: isolate;
  min-height: clamp(14rem, 26vw, 19rem);
  overflow: hidden;
}

.rr-footer-slider__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.rr-footer-slider__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: rr-footer-slide 18s infinite;
}

.rr-footer-slider__media img:nth-child(1) {
  animation-delay: 0s;
}

.rr-footer-slider__media img:nth-child(2) {
  animation-delay: 6s;
}

.rr-footer-slider__media img:nth-child(3) {
  animation-delay: 12s;
}

.rr-footer-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--background) 0%, color-mix(in oklab, var(--background) 76%, transparent) 34%, transparent 100%),
    linear-gradient(90deg, color-mix(in oklab, var(--brand) 80%, black 10%) 0%, color-mix(in oklab, var(--brand) 45%, transparent) 62%, transparent 100%);
}

.rr-footer-slider__content {
  display: flex;
  min-height: clamp(14rem, 26vw, 19rem);
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(2rem, 5vw, 3rem);
}

.rr-footer-slider h2 {
  max-width: 42rem;
  color: var(--brand-foreground);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
}

.rr-footer-slider__dots {
  display: flex;
  gap: .45rem;
  margin-top: 1.15rem;
}

.rr-footer-slider__dots span {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand-foreground) 40%, transparent);
}

.rr-footer-slider__dots span:first-child {
  width: 2rem;
  background: var(--accent-cta);
}

.rr-site-footer__content {
  padding-block: clamp(3rem, 6vw, 4rem);
}

.rr-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(10rem, .7fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.rr-site-footer__brand p {
  margin-top: 1rem;
  max-width: 20rem;
  color: var(--muted-foreground);
  font-size: .92rem;
  line-height: 1.65;
}

.rr-site-footer__phone {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--brand);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}

.rr-site-footer h3 {
  font-size: .9rem;
  font-weight: 900;
}

.rr-site-footer ul {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

.rr-site-footer a {
  color: var(--muted-foreground);
  font-size: .9rem;
  text-decoration: none;
}

.rr-site-footer a:hover {
  color: var(--foreground);
}

.rr-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.75rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: .88rem;
}

@keyframes rr-footer-slide {
  0%,
  30% {
    opacity: 1;
  }

  36%,
  94% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .rr-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: .9rem;
  }

  .rr-header__actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .rr-nav {
    width: 100%;
    padding-bottom: .15rem;
  }

  .rr-grid--2,
  .rr-grid--3,
  .rr-grid--4,
  .rr-proof-row {
    grid-template-columns: 1fr;
  }

  .rr-form__row {
    grid-template-columns: 1fr;
  }

  .rr-site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .rr-site-footer__grid,
  .rr-site-footer__bottom {
    grid-template-columns: 1fr;
  }

  .rr-site-footer__grid,
  .rr-site-footer__bottom {
    display: grid;
  }
}
