/* ============================================================
   BARKS LAW - Inner Page Styles
   Shared across about.html, practice-areas.html, co-counsel.html
   Requires style.css to be loaded first (tokens, nav, footer, utilities)
   ============================================================ */

/* --- PAGE HERO (narrow) ------------------------------------- */
.page-hero {
  background-color: var(--navy-dark);
  padding: 120px 0 64px;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 27, 51, 0.88) 0%,
    rgba(12, 27, 51, 0.60) 60%,
    rgba(12, 27, 51, 0.30) 100%
  );
  z-index: 1;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  max-width: 700px;
}

.page-hero-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 18px 0 0 0;
  max-width: 700px;
}

/* --- PAGE CONTENT ------------------------------------------- */
.page-content {
  background: var(--off-white);
  padding: var(--section-pad) 0;
}

/* --- BIO ACTIONS (button row under bio prose) --------------- */
.bio-actions {
  margin-top: 16px;
}

/* --- CREDENTIALS MODAL (native <dialog>) -------------------- */
.credentials-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  border: none;
  padding: 0;
  background: var(--white, #fff);
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 64px);
  overflow: auto;
  border-top: 4px solid var(--gold);
  box-shadow: 0 24px 60px rgba(12, 27, 51, 0.35);
  opacity: 0;
  transform: translate(-50%, -46%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.credentials-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.credentials-modal::backdrop {
  background: rgba(12, 27, 51, 0);
  backdrop-filter: blur(0);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.credentials-modal.is-open::backdrop {
  background: rgba(12, 27, 51, 0.72);
  backdrop-filter: blur(2px);
}

.credentials-modal-inner {
  padding: 36px 40px 40px;
}

.credentials-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.credentials-modal-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0;
  line-height: 1;
}

.credentials-modal-close {
  background: transparent;
  border: none;
  color: var(--text-mid);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px -4px 0;
  transition: color 0.2s;
}

.credentials-modal-close:hover {
  color: var(--navy-dark);
}

@media (max-width: 600px) {
  .credentials-modal-inner { padding: 24px 20px 28px; }
  .credentials-modal-title { font-size: 1.4rem; }
}

.page-content-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- PAGE SECTION DIVIDERS ---------------------------------- */
.page-section {
  margin-bottom: 64px;
}

.page-section:last-child {
  margin-bottom: 0;
}

.page-body {
  font-size: 0.975rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 20px;
}

/* --- LEAD LINE (single-sentence pull quote) ----------------- */
.page-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  color: var(--navy-dark);
  font-weight: 600;
  margin: 0 0 32px 0;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gold);
  max-width: 36ch;
}

/* --- CO-COUNSEL CARD (Ammons callout) ----------------------- */
.cocounsel-card {
  margin-top: 48px;
  padding: 36px 40px;
  background: var(--white, #fff);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-top: 3px solid var(--gold);
  box-shadow: 0 1px 3px rgba(12, 27, 51, 0.06);
}

.cocounsel-card-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.cocounsel-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.cocounsel-card-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 20px 0;
}

/* --- BIO + PHOTO LAYOUT ------------------------------------- */
.about-bio-layout::after {
  content: '';
  display: table;
  clear: both;
}

.about-bio-figure {
  float: left;
  width: 280px;
  margin: 4px 40px 24px 0;
}

/* --- SECTION DIVIDER RULE ----------------------------------- */
.section-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 40px 0;
}

/* --- CREDENTIALS LIST --------------------------------------- */
.credentials-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.credential-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0 32px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.credential-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 152px;
  flex-shrink: 0;
  margin: 0;
  padding-top: 3px;
}

.credential-value {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0;
}

/* --- PRACTICE AREA CARDS ------------------------------------ */
.practice-area-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.practice-area-item {
  border-left: 3px solid var(--gold);
  padding-left: 28px;
}

.practice-area-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.practice-area-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-mid);
}

/* --- CO-COUNSEL STEPS --------------------------------------- */
/* --- ABOUT PHOTO -------------------------------------------- */
.about-photo-frame {
  border: 2px solid var(--gold);
  padding: 8px;
  max-width: 680px;
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
}

.about-photo-caption {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin-top: 14px;
  font-style: italic;
  opacity: 0.75;
}

.about-photo-name {
  font-style: normal;
  font-weight: 600;
  color: var(--navy-dark);
}

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 900px) {
  .about-bio-figure {
    float: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 32px;
  }

  .credential-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .page-hero { padding: 100px 0 48px; }
  .page-hero-inner { padding: 0 20px; }
  .page-content-inner { padding: 0 20px; }
}
