/* Inner pages: heroes, breadcrumbs, credentials */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 160px clamp(28px, 8vw, 148px) 90px;
  background:
    radial-gradient(circle at 88% 18%, rgba(170, 154, 140, 0.14), transparent 28%),
    linear-gradient(145deg, var(--cream), #f9f8ed 55%, #efefe3);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 42px;
  color: rgba(36, 36, 29, 0.48);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.breadcrumb a {
  transition: color 0.25s ease;
}

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

.breadcrumb span[aria-hidden="true"] {
  color: var(--taupe);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(54px, 6.2vw, 98px);
  line-height: 0.92;
}

.page-hero h1 em {
  color: var(--taupe);
  font-style: italic;
}

.page-hero-aside {
  padding-bottom: 12px;
  color: rgba(36, 36, 29, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

.page-hero-aside p {
  margin: 0;
}

.main-nav a.is-active {
  color: var(--olive);
}

.main-nav a.is-active::after {
  width: 100%;
}

.home-preview {
  padding: 120px clamp(28px, 8vw, 148px);
  background: var(--white);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.preview-card {
  position: relative;
  min-height: 280px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid transparent;
  transition: transform 0.45s var(--ease-out, ease), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.preview-card:hover {
  color: var(--cream);
  background: var(--olive);
  transform: translateY(-8px);
}

.preview-card .eyebrow {
  margin-bottom: 20px;
}

.preview-card:hover .eyebrow {
  color: var(--taupe);
}

.preview-card h2 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.05;
}

.preview-card p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #64645a;
  font-size: 14px;
  line-height: 1.7;
}

.preview-card:hover p {
  color: rgba(246, 247, 236, 0.72);
}

.preview-card .text-link {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 36px;
}

.home-services,
.home-articles {
  padding-top: 40px;
}

.credentials {
  background: var(--white);
}

.credentials-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.85fr);
  gap: clamp(40px, 8vw, 140px);
  margin-bottom: clamp(60px, 8vw, 100px);
}

.credentials-intro h2 {
  margin: 0;
  font-size: clamp(42px, 4.4vw, 72px);
  line-height: 0.98;
}

.credentials-note {
  padding: 28px 30px;
  color: rgba(36, 36, 29, 0.78);
  background: var(--paper);
  border-left: 3px solid var(--taupe);
  font-size: 15px;
  line-height: 1.8;
}

.credentials-note strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.credential-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(36, 36, 29, 0.1);
  transition: transform 0.4s var(--ease-out, ease), box-shadow 0.4s ease;
}

.credential-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(36, 36, 29, 0.1);
}

.credential-card button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.credential-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(91, 91, 56, 0.08), rgba(170, 154, 140, 0.18)),
    var(--cream);
}

.credential-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out, ease);
}

.credential-card:hover .credential-frame img {
  transform: scale(1.04);
}

.credential-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(36, 36, 29, 0.35);
  font-family: var(--serif);
  font-size: 42px;
  font-style: italic;
}

.credential-body {
  padding: 24px 26px 28px;
}

.credential-body .eyebrow {
  margin-bottom: 12px;
}

.credential-body h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.credential-body p {
  margin: 0;
  color: #64645a;
  font-size: 13px;
  line-height: 1.65;
}

.lightbox {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(36, 36, 29, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  overflow: auto;
  background: var(--cream);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.lightbox-panel img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #1f1f1a;
}

.lightbox-info {
  padding: 24px 28px 30px;
}

.lightbox-info h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.lightbox-info p {
  margin: 0;
  color: #64645a;
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  color: var(--cream);
  background: rgba(36, 36, 29, 0.55);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.page-cta {
  min-height: 420px;
  padding: clamp(70px, 9vw, 120px) clamp(28px, 8vw, 148px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  color: var(--cream);
  background: var(--olive-deep);
}

.page-cta h2 {
  margin: 0;
  font-size: clamp(42px, 4.5vw, 72px);
  line-height: 0.98;
}

.page-cta h2 em {
  color: #c9b8a8;
}

.page-cta p {
  margin: 0 0 28px;
  color: rgba(246, 247, 236, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 1050px) {
  .page-hero-grid,
  .credentials-intro,
  .page-cta {
    grid-template-columns: 1fr;
  }

  .preview-grid,
  .credential-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 132px 20px 70px;
  }

  .page-hero h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .home-preview,
  .credentials.section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .preview-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    min-height: 240px;
    padding: 28px 24px;
  }

  .page-cta {
    padding: 80px 24px;
  }
}
