/* ============================================================
   RJS EXPORTS — Inner page layout components
   ============================================================ */

/* ---------- Page transition + scroll reveal ---------- */
body {
  animation: page-in 0.45s var(--ease) both;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(250px, 22vw, 330px);
  padding-block: clamp(46px, 5vw, 70px) clamp(26px, 3vw, 38px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 15, 28, 0.94) 0%, rgba(5, 15, 28, 0.7) 52%, rgba(5, 15, 28, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 15, 28, 0.4), rgba(5, 15, 28, 0.55));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.9vw, 2.85rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
}

.page-hero__sub {
  margin-top: 10px;
  max-width: 640px;
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.32);
}

.breadcrumb a:hover {
  color: var(--gold-300);
}

/* ---------- Section variants ---------- */
.section--white {
  background: var(--white);
}

.section--ivory {
  background: var(--ivory-100);
}

.section--navy {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(27, 74, 114, 0.35), transparent 55%),
    var(--navy-950);
  color: var(--white);
}

.section--bordered {
  border-top: 1px solid rgba(201, 162, 39, 0.22);
}

.section-intro {
  max-width: 660px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.section-intro .eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-700);
}

.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
}

.section-intro p {
  margin-top: 10px;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--ink-muted);
}

.section--navy .section-intro .eyebrow {
  color: var(--gold-400);
}

.section--navy .section-intro h2 {
  color: var(--white);
}

.section--navy .section-intro p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 3.6vw, 56px);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  position: relative;
  z-index: 0;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.split__media--framed::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: var(--radius-sm);
  z-index: -1;
}

.split__body h2 {
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  margin-bottom: 12px;
}

.split__body p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--ink-muted);
}

.split__body p + p {
  margin-top: 12px;
}

.split__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.lead {
  font-size: 1.02rem;
  line-height: 1.8;
}

.check-list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.check-list li {
  display: flex;
  gap: 11px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.check-list svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex: none;
  color: var(--gold-600);
}

/* ---------- Values / feature cards ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.value-card {
  padding: clamp(20px, 2vw, 26px) clamp(16px, 1.6vw, 22px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.value-card__index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-500);
}

.value-card h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.value-card p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ---------- Owner card ---------- */
.owner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--ivory-100);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
}

.owner__monogram {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.owner__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.owner__role {
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  counter-reset: step;
}

.process__step {
  padding: 24px 20px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: var(--radius-sm);
}

.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-400);
}

.process__step h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--white);
}

.process__step p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 39, 0.18), transparent 55%),
    var(--navy-900);
  color: var(--white);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(30px, 3.4vw, 46px);
}

.cta-band h2 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 500;
}

.cta-band p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .values-grid,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split__media--framed::after {
    display: none;
  }

  .page-hero {
    min-height: 210px;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .values-grid,
  .process {
    grid-template-columns: 1fr;
  }
}

/* ---------- Image credits ---------- */
.credits-list {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px 32px;
}

.credit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.credit img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--ivory-200);
}

.credit__body {
  min-width: 0;
}

.credit__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.credit__meta {
  margin: 3px 0 0;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.credit__meta a {
  color: var(--gold-700);
  text-decoration: underline;
}

.credits-note {
  margin-top: 26px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ---------- CMS publisher blocks ---------- */
.cms-section:first-of-type {
  border-top: 1px solid var(--line);
}

.cms-block {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-inline: auto;
}

.cms-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.cms-block__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.cms-block__body p { margin: 0 0 14px; }
.cms-block__body ul, .cms-block__body ol { margin: 0 0 14px 20px; }
.cms-block__body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 10px;
}

.cms-block__media img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
