/**
 * Page content layout.
 *
 * The imported marketing pages (Our Story, Contact Us) use plain, unclassed
 * markup. These rules give that content a readable layout and keep every
 * image inside its column.
 */

.rm-page {
  font: 17px/1.75 "DM Sans", sans-serif;
  color: #38516d;
}
.rm-page img {
  max-width: 100%;
  height: auto;
  display: block;
}
.rm-page > * + * {
  margin-top: clamp(40px, 4.5vw, 72px);
}
.rm-page h2,
.rm-page h3,
.rm-page h4 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
}
.rm-page h2 {
  font-size: clamp(26px, 2.6vw, 38px);
}
.rm-page h3 {
  font-size: clamp(20px, 1.8vw, 26px);
}
.rm-page p {
  margin: 0 0 16px;
}
.rm-page p:last-child {
  margin-bottom: 0;
}
.rm-page strong {
  color: var(--ink);
}
.rm-page a {
  color: var(--teal);
}
.rm-page .btn {
  color: #fff;
  border: 0;
}

/* Page sections ---------------------------------------------------------- */
.rm-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(140deg, #f4f1e9, #fff);
}
.rm-hero img {
  width: 100%;
  aspect-ratio: 2000 / 379;
  object-fit: cover;
}
.rm-hero__panel {
  position: absolute;
  left: 30px;
  bottom: 30px;
  max-width: 400px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 40px rgba(24, 42, 53, .14);
  padding: 22px 28px;
}
.rm-hero__panel .eyebrow {
  margin: 0 0 6px;
  color: var(--coral);
}
.rm-hero__panel h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
}

.rm-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.rm-intro .eyebrow {
  color: var(--coral);
  margin: 0 0 10px;
}
.rm-intro h2 {
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.35;
}
.rm-intro p {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}
.rm-quote {
  display: block;
  margin: 34px auto 0;
  max-width: 720px;
  color: var(--coral);
  font: italic 700 clamp(20px, 2vw, 27px)/1.45 "Playfair Display", Georgia, serif;
}

.rm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
}
.rm-split__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.rm-split--reverse .rm-split__media {
  order: 2;
}
.rm-split__body .eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
}
.rm-split__body .btn {
  margin-top: 10px;
}

.rm-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rm-collage img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}
.rm-collage__main {
  grid-column: 1 / -1;
  grid-row: 1;
  aspect-ratio: 5 / 4 !important;
  object-fit: cover !important;
  padding: 0 !important;
}
.rm-collage > img:nth-of-type(2) {
  grid-column: 1;
  grid-row: 2;
}
.rm-collage > img:nth-of-type(3) {
  grid-column: 2;
  grid-row: 2;
}

.rm-tiles-block h2 {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}
.rm-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rm-tiles li {
  margin: 0;
}
.rm-tiles a {
  display: block;
  color: var(--ink);
  text-align: center;
  transition: .25s;
}
.rm-tiles a:hover {
  transform: translateY(-4px);
}
.rm-tiles figure {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.rm-tiles img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.rm-tiles span {
  display: block;
  font: 700 16px/1.35 "Playfair Display", Georgia, serif;
}
.rm-tiles-footer {
  margin: 34px 0 0;
  text-align: center;
}

.rm-cta {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--cream);
  padding: clamp(28px, 4vw, 46px);
  text-align: center;
}
.rm-cta .eyebrow {
  color: var(--coral);
  margin: 0 0 10px;
}
.rm-cta .btn {
  margin-top: 8px;
}

.rm-members {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  text-align: center;
}
.rm-members h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-family: "Bebas Neue", sans-serif;
  color: #6b7f96;
}
.rm-members img {
  width: 96px;
  opacity: .85;
}

/* Contact page ----------------------------------------------------------- */
.rm-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 40px 0 0;
}
.rm-contact__card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
  background: #fff;
  text-align: center;
}
.rm-contact__card svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  display: block;
  color: var(--teal);
}
.rm-contact__card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}
.rm-contact__card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.rm-contact__card a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--teal);
}
.rm-note {
  margin: 30px auto 0;
  max-width: 760px;
  color: #71839a;
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .rm-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .rm-split {
    grid-template-columns: 1fr;
  }
  .rm-split--reverse .rm-split__media {
    order: 0;
  }
  .rm-contact {
    grid-template-columns: 1fr;
  }
  .rm-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rm-hero__panel {
    position: static;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    padding: 20px 22px;
  }
  .rm-hero img {
    height: auto;
    aspect-ratio: 800 / 218;
  }
}

