/* ================================================================
   TITLE HQ — Inner Page Styles
   Shared styles for page hero, breadcrumb, intro sections,
   content areas, and child page grids.
   ================================================================ */

/* ── PAGE HERO — Unified spec per /reference/transactional.html ──
   Full-width, min-height 400px, teal-gradient image overlay, white text.
*/
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #187980 0%,
    #187980 40%,
    rgba(24,121,128,0.86) 54%,
    rgba(24,121,128,0.38) 70%,
    rgba(24,121,128,0.06) 100%
  );
}

.page-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0;
  max-width: 580px;
}

.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero h1 .emphasis { color: var(--sky); font-style: italic; }
.page-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 500px; line-height: 1.8; }
.page-hero-sub .emphasis { color: var(--sky); font-style: italic; }

.page-hero .breadcrumb { color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb svg { opacity: 0.5; }

.page-hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb svg { flex-shrink: 0; }

/* ── PAGE CONTENT ── */
.page-content { padding: 64px 0 88px; }

.content-body {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
}
.content-body h2 { margin: 40px 0 16px; }
.content-body h3 { margin: 32px 0 12px; }
.content-body p { margin-bottom: 20px; }
.content-body ul, .content-body ol { margin-bottom: 20px; padding-left: 24px; }
.content-body li { margin-bottom: 8px; }
.content-body img { border-radius: var(--radius-lg); margin: 32px 0; }
.content-body blockquote {
  border-left: 4px solid var(--teal);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--teal-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dark);
}

/* ── CHILD PAGE GRID (default list template) ── */
.child-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.child-page-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.child-page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-light); }
.child-page-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-dark); }
.child-page-card p { font-size: 0.85rem; color: var(--text-body); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.child-page-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: auto;
  transition: var(--transition);
}
.child-page-card:hover .child-page-link { gap: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .child-pages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .child-pages-grid { grid-template-columns: 1fr; }
  .page-hero-inner { padding: 48px 0; }
}
