/* Shared inner-page furniture: banner + breadcrumb. */

/* Measured off the reference: 70vh tall (80vh on contact), 120px padding,
   black overlay at 0.4, left-aligned eyebrow + 42px title, no visible
   breadcrumb. It is viewport-height based, not a fixed pixel height — 638px
   only happened to match at one window size. */
.page-banner {
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 120px 0;
  color: var(--rnx-white);
}

.page-banner::before {
  background: #000;
  opacity: 0.4;
}

.page-banner .eyebrow {
  margin-bottom: 14px;
}

.page-banner h1 {
  margin-bottom: 0;
  color: var(--rnx-white);
  font-size: 42px;
  line-height: var(--rnx-lh-title);
}

/* Article banners constrain the title to 5 of 12 columns, as in the reference,
   so a long headline wraps instead of running the full width. */
.page-banner--narrow h1 {
  max-width: 500px;
}

/* Contact uses a taller banner in the reference. */
.page-banner--tall {
  min-height: 80vh;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  font-weight: 300;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  opacity: 0.5;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--rnx-accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--rnx-accent);
}

/* ---- Services ------------------------------------------------------------ */

.service-detail__img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--rnx-radius-card-all);
}

.service-split {
  padding: 40px 0;
}

.service-split + .service-split {
  border-top: 1px solid var(--rnx-rule);
}

.service-split h3 {
  margin-bottom: 14px;
}

/* Alternate the image side down the page. */
@media (min-width: 992px) {
  .service-split--flip {
    flex-direction: row-reverse;
  }

  .service-split--flip .offset-lg-1 {
    margin-left: 0;
    margin-right: 8.33333333%;
  }
}

/* Compact sidebar list (no descriptions). */
.type-list--compact a {
  padding: 14px 0;
}

.type-list--compact strong {
  font-size: 16px;
}

.type-list--compact a[aria-current="page"] strong {
  color: var(--rnx-accent);
}

/* ---- Stats band ---------------------------------------------------------- */

.stats__row {
  row-gap: 34px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--rnx-accent);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}

.stat span {
  font-size: 14px;
  font-weight: 300;
}

/* ---- FAQ ----------------------------------------------------------------- */

.faq-item {
  margin-bottom: 14px;
  border-radius: var(--rnx-radius-card-all);
  background: var(--rnx-bg-soft);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 30px 60px 30px 30px;
  color: var(--rnx-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

/* Amber "1." counter, as in the reference. */
.faq-item summary::before {
  counter-increment: faq;
  content: counter(faq) ".";
  color: var(--rnx-accent);
  font-weight: 700;
}

.faq-list {
  counter-reset: faq;
  row-gap: 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 30px;
  color: var(--rnx-accent);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item {
  position: relative;
}

.faq-item__body {
  padding: 0 30px 30px;
}

/* ---- Pricing ------------------------------------------------------------- */

.price-grid {
  row-gap: 30px;
}

.price-card {
  position: relative;
  height: 100%;
  padding: 60px 45px;
  border: 2px solid transparent;
  border-radius: var(--rnx-radius-card-all);
  background: var(--rnx-bg-soft);
  transition: border-color var(--rnx-dur) var(--rnx-ease);
}

.price-card:hover,
.price-card--featured {
  border-color: var(--rnx-accent);
}

.price-card__flag {
  position: absolute;
  top: -13px;
  left: 32px;
  padding: 5px 16px;
  border-radius: var(--rnx-radius);
  background: var(--rnx-accent);
  color: var(--rnx-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--rnx-tracking-ui);
}

.price-card__price {
  margin-bottom: 24px;
}

.price-card__price strong {
  color: var(--rnx-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.price-card__price span {
  margin-left: 5px;
  color: var(--rnx-accent);
  font-size: var(--rnx-size-eyebrow);
  font-weight: 300;
  letter-spacing: var(--rnx-tracking-eyebrow);
  text-transform: uppercase;
}

.price-card__list {
  margin-bottom: 28px;
}

.price-card__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 2px;
  background: var(--rnx-accent);
}

/* ---- Rate table ---------------------------------------------------------- */

/* Wide tables scroll inside their own container rather than the page. */
.rate-table__wrap {
  overflow-x: auto;
}

.rate-table__note {
  margin-top: 25px;
  margin-bottom: 0;
}

.rate-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.rate-table th,
.rate-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--rnx-rule);
}

.rate-table thead th {
  color: var(--rnx-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--rnx-tracking-ui);
  text-transform: uppercase;
  white-space: nowrap;
}

.rate-table tbody th {
  color: var(--rnx-ink);
  font-size: 16px;
  font-weight: 600;
}

.rate-table tbody th a:hover {
  color: var(--rnx-accent);
}

.rate-table tbody tr:hover {
  background: var(--rnx-bg-soft);
}

.rate-table td {
  white-space: nowrap;
}

/* ---- Galleries ----------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 24px;
}

.gallery-masonry {
  columns: 3;
  column-gap: 24px;
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
}

/* Vary the heights so the masonry actually staggers. */
.gallery-masonry .gallery-item:nth-child(3n + 1) img {
  aspect-ratio: 3 / 4;
}

.gallery-masonry .gallery-item:nth-child(3n + 2) img {
  aspect-ratio: 4 / 3;
}

.gallery-masonry .gallery-item:nth-child(3n) img {
  aspect-ratio: 1;
}

/* The reference's gallery tiles are square-cornered, unlike the cards. */
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  transition: transform var(--rnx-dur-slow) var(--rnx-ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  color: var(--rnx-white);
  font-size: 34px;
}

/* ---- Post ---------------------------------------------------------------- */

.post__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 26px;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--rnx-muted);
}

/* Small meta line above a title in list layouts. */
.blog-card__meta {
  font-size: 13px;
  font-weight: 300;
  color: var(--rnx-muted);
}

.post__cat {
  padding: 6px 16px;
  border-radius: var(--rnx-radius);
  background: var(--rnx-accent);
  color: var(--rnx-ink);
  font-size: 12px;
  letter-spacing: var(--rnx-tracking-ui);
}

.post__lead {
  font-size: 16px;
  color: var(--rnx-ink-soft);
}

.post h4 {
  margin-top: 28px;
}

/* ---- Prev / next ---------------------------------------------------------- */

.post-prev-next {
  padding: 30px 0;
  border-top: 1px solid var(--rnx-rule);
  border-bottom: 1px solid var(--rnx-rule);
}

.post-prev-next__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.post-prev-next__link span {
  display: block;
  color: var(--rnx-accent);
  font-size: var(--rnx-size-eyebrow);
  font-weight: 300;
  line-height: 1;
  letter-spacing: var(--rnx-tracking-eyebrow);
  text-transform: uppercase;
}

.post-prev-next__link strong {
  display: block;
  margin-top: 8px;
  color: var(--rnx-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  transition: color var(--rnx-dur) var(--rnx-ease);
}

.post-prev-next__link:hover strong {
  color: var(--rnx-accent);
}

.post-prev-next__link--next {
  text-align: right;
}

.post-prev-next__all {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--rnx-rule);
  border-radius: 50%;
  color: var(--rnx-ink);
  font-size: 20px;
  transition: all var(--rnx-dur) var(--rnx-ease);
}

.post-prev-next__all:hover {
  border-color: var(--rnx-accent);
  background: var(--rnx-accent);
  color: var(--rnx-ink);
}

@media (max-width: 575px) {
  .post-prev-next__row {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .post-prev-next__link--next {
    text-align: center;
  }

  .post-prev-next__all {
    margin: 0 auto;
  }
}

.post__quote {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--rnx-accent);
  background: var(--rnx-bg-soft);
  border-radius: 0 var(--rnx-radius-card-all) var(--rnx-radius-card-all) 0;
  font-size: 16px;
  color: var(--rnx-ink-soft);
}

/* ---- Contact form -------------------------------------------------------- */

.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--rnx-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--rnx-tracking-ui);
}

/* Pill fields with no border, as in the reference. */
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 18.5px 20px;
  border: 0;
  border-radius: var(--rnx-radius);
  background: var(--rnx-white);
  color: var(--rnx-body);
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  transition: box-shadow var(--rnx-dur) var(--rnx-ease);
}

/* Ring rather than a border, so focus does not change the field's height. */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--rnx-accent);
}

.contact-form textarea {
  resize: vertical;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--rnx-radius-card-all);
  filter: grayscale(1);
  transition: filter var(--rnx-dur) var(--rnx-ease);
}

.contact-map:hover iframe {
  filter: none;
}

.contact-map__actions {
  margin-top: 24px;
}

/* ---- 404 ----------------------------------------------------------------- */

.error-page {
  padding-top: calc(var(--rnx-header-h) + 120px);
}

.error-page h1 {
  margin-bottom: 16px;
}

.error-page p {
  max-width: 520px;
  margin-bottom: 30px;
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    columns: 1;
  }
}
