/* ============================================================
   PROCEDURE TEMPLATE
   Styles specific to procedure pages (hero, content grid,
   technique block, steps, candidates, recovery, sidebar,
   related section). Not used on hub, info, or other templates.
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero-proc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}
.hero-left {
  padding: 5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proc-category {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.proc-category::before {
  content: '';
  width: 24px;
  height: 0.5px;
  background: var(--accent);
  display: block;
}
.proc-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 58px;
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.proc-h1 em { font-style: italic; color: var(--accent); }
.proc-tagline {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 2.5rem;
}

/* Quick stats grid */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--surface-alt);
  border: 0.5px solid var(--surface-alt);
  margin-bottom: 2.5rem;
}
.qs-item { background: var(--bg); padding: 1rem; }
.qs-label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.qs-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
}

/* CTA button row */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero right — photo / media area */
.hero-right {
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.hero-img.loaded { opacity: 1; }
.hero-img:hover { transform: scale(1.02); }
.hero-note {
  position: relative;
  z-index: 2;
  background: var(--accent);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.hn-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--inv-text);
}
.hn-sub {
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247,243,238,0.65);
  margin-top: 3px;
}
.hero-badge {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inv-text);
  border: 0.5px solid rgba(247,243,238,0.4);
  padding: 4px 10px;
  border-radius: 1px;
  white-space: nowrap;
}

/* ============================================================
   CONTENT GRID (main + sidebar)
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-top: 0.5px solid var(--surface-alt);
}
.content-main {
  padding: 5.75rem 3.75rem;
  border-right: 0.5px solid var(--surface-alt);
}
.content-side { padding: 3rem 2rem; }

/* Procedure FAQs should use the full natural width of the content column. */
.content-main .faq-a {
  max-width: none;
}

/* ============================================================
   TECHNIQUE BLOCK
   ============================================================ */
.technique-block {
  background: var(--surface);
  border-left: 2px solid var(--accent);
  padding: 1.95rem 2.1rem;
  margin: 3rem 0;
}
.tb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}
.tb-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   COMBINED COMPONENTS GRID
   Used on face-neck-lift to display adjunctive procedure cards.
   ============================================================ */
.components-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--surface-alt);
  border: 0.5px solid var(--surface-alt);
  margin: 2rem 0;
}
.comp-item { background: var(--bg); padding: 1.5rem; }
.comp-freq {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.comp-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.comp-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
}
.step-row {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--surface-alt);
  align-items: flex-start;
}
.step-row:last-child { border-bottom: none; }
.step-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.45;
  line-height: 1;
  min-width: 28px;
}
.step-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.step-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   CANDIDATES GRID
   ============================================================ */
.candidates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--surface-alt);
  border: 0.5px solid var(--surface-alt);
  margin: 1.5rem 0;
}
.cand-item {
  background: var(--bg);
  padding: 1rem 1.2rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cand-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}
.cand-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   RECOVERY ROW
   ============================================================ */
.recovery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--surface-alt);
  border: 0.5px solid var(--surface-alt);
  margin: 1.5rem 0;
}
.rec-item { background: var(--bg); padding: 1.2rem 1rem; text-align: center; }
.rec-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
}
.rec-label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.side-sticky { position: sticky; top: 90px; }
.side-card {
  border: 0.5px solid var(--accent-light);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border-radius: 1px;
  background: var(--bg);
}
.side-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.side-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.side-btn {
  width: 100%;
  background: var(--accent);
  color: var(--inv-text);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px;
  border: none;
  cursor: pointer;
  border-radius: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.side-btn:hover { opacity: 0.88; }
.side-btn-s {
  width: 100%;
  background: transparent;
  color: var(--accent);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px;
  border: 0.5px solid var(--accent);
  cursor: pointer;
  border-radius: 1px;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: background 0.15s;
}
.side-btn-s:hover { background: var(--surface); }
.side-note {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
  text-align: center;
  margin-top: 12px;
}
.side-stats {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}
.side-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 0.5px solid var(--surface-alt);
  align-items: center;
}
.side-stat:last-child { border-bottom: none; }
.ss-key { font-size: 11px; color: var(--text-muted); font-weight: 300; }
.ss-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--text-primary);
}

/* ============================================================
   RELATED PROCEDURES
   ============================================================ */
.related-section {
  padding: 4.75rem 3.75rem;
  border-top: 0.5px solid var(--surface-alt);
  background: var(--surface);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--surface-alt);
  border: 0.5px solid var(--surface-alt);
  margin-top: 2rem;
}
.rel-card {
  background: var(--bg);
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: block;
}
.rel-card:hover { background: var(--surface-alt); }
.rel-tag {
  font-size: 12.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.rel-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
}
.rel-arrow { color: var(--accent); font-size: 14px; margin-top: 1rem; }

/* ============================================================
   BULLET LIST
   ============================================================ */
.bullet-list {
  margin: 1rem 0 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bullet-list li {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   TECHNOLOGY GRID
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--surface-alt);
  border: 0.5px solid var(--surface-alt);
  margin: 2rem 0;
}
.tech-item { background: var(--bg); padding: 1.5rem; }
.tech-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.tech-item-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.tech-item-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   HONESTY BLOCK
   ============================================================ */
.honesty-block {
  background: var(--surface);
  border-left: 2px solid var(--accent);
  padding: 1.95rem 2.1rem;
  margin: 3rem 0;
}
.hb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}
.hb-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}
.hb-body p + p { margin-top: 1rem; }

/* ============================================================
   RESPONSIVE (≤768px)
   ============================================================ */
@media (max-width: 900px) {
  .hero-proc { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3rem 1.5rem 2rem; }
  .proc-h1 { font-size: 38px; }
  .proc-tagline { font-size: 15px; }
  .hero-right { min-height: 56vw; }
  .hero-note { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .content-main { padding: 3rem 1.5rem; border-right: none; border-bottom: 0.5px solid var(--surface-alt); }
  .content-side { padding: 2rem 1.5rem; }
  .side-sticky { position: static; }
  .components-grid { grid-template-columns: 1fr; }
  .candidates-grid { grid-template-columns: 1fr; }
  .recovery-row { grid-template-columns: repeat(2, 1fr); }
  .related-section { padding: 3rem 1.5rem; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .proc-h1 { font-size: 30px; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .btn-row { flex-direction: column; }
  .btn-p, .btn-s { justify-content: center; text-align: center; }
}

/* ============================================================
   HERO NOTE — Dark mode refinement
   Softens the text layer on the accent-coloured note block.
   Light mode untouched.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  .hn-text  { color: rgba(240, 234, 224, 0.88); }
  .hn-sub   { color: rgba(240, 234, 224, 0.48); }
  .hero-badge {
    color: rgba(240, 234, 224, 0.65);
    border-color: rgba(240, 234, 224, 0.22);
  }
}
