/* ═══════════════════════════════════════════════════════════════
   VARIATION 03 — EDITORIAL / VISUAL STORYTELLING
   Overlay on service-page-core.css
   Emphasis: magazine layout, chapter markers, pull quotes, big media.
   Visual tone: literary, deliberate, story-driven.
   Type addition: Fraunces (editorial serif) for H2s and pull quotes.
   ═══════════════════════════════════════════════════════════════ */

/* Type addition */
/* Original site font restored (editorial serif is reserved for the blog only). */
:root { --font-editorial: var(--font-display); }

/* Reusable narrow container for article-style sections */
.ed-narrow { max-width: 780px; }

/* Editorial hero */
.hero-editorial { padding-top: calc(var(--header-height) + 100px); padding-bottom: 100px; position: relative; }
.hero-editorial-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(66,133,244,0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34,211,238,0.06) 0%, transparent 50%),
    var(--bg-deep);
  z-index: 0;
}
.hero-editorial > .container { position: relative; z-index: 1; }

.editorial-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  margin-top: 28px;
}
@media (max-width: 960px) {
  .editorial-hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.ed-chapter {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.ed-h1 { line-height: 1.02; margin-bottom: 20px; }
.ed-h1 .ed-h1-sup {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.ed-h1 .ed-h1-main {
  display: block;
  font-family: var(--font-editorial);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 0.98;
}
.ed-h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #8ab4f8 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}

.ed-hero-sub {
  font-family: var(--font-primary);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 28px;
}

.ed-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ed-byline img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.14);
}
.ed-byline-name { font-family: var(--font-editorial); font-size: 17px; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.ed-byline-role { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }

.editorial-hero-media {
  position: relative;
  margin: 0;
}
.editorial-hero-media picture,
.editorial-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.editorial-hero-media figcaption {
  margin-top: 14px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 14px;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.01em;
}

/* Chapter markers */
.ed-chapter-mark {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.ed-cm-num {
  font-family: var(--font-editorial);
  font-size: 44px;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ed-cm-label {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Editorial H2s use serif */
.ed-h2 {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
}
.ed-h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-light);
}

.ed-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 40px;
}

/* Article prose with drop cap */
.ed-prose { font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.ed-prose p { margin-bottom: 18px; }
.ed-prose p:last-child { margin-bottom: 0; }
.ed-lede { font-size: 19px; line-height: 1.65; color: #fff; }
.ed-dropcap {
  float: left;
  font-family: var(--font-editorial);
  font-size: 68px;
  font-weight: 600;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--accent-light);
  font-style: italic;
}
@media (max-width: 600px) {
  .ed-dropcap { font-size: 54px; }
}

/* Pull quote */
.ed-pullquote {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(66,133,244,0.05) 50%, transparent 100%);
  position: relative;
}
.ed-pullquote blockquote {
  text-align: center;
  position: relative;
  padding: 0 32px;
}
.ed-pullquote blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-editorial);
  font-size: 120px;
  line-height: 0.6;
  color: rgba(66,133,244,0.25);
  margin-bottom: 4px;
}
.ed-pullquote blockquote p {
  font-family: var(--font-editorial);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.ed-pullquote blockquote cite {
  display: block;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-style: normal;
}

/* Feature list (editorial) */
.ed-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 32px;
}
.ed-feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  align-items: baseline;
}
@media (max-width: 640px) {
  .ed-feature { grid-template-columns: 60px 1fr; gap: 20px; padding: 24px 0; }
}
.ed-fnum {
  font-family: var(--font-editorial);
  font-size: 44px;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--accent-cyan);
  opacity: 0.9;
}
.ed-feature h3 {
  font-family: var(--font-editorial);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.15;
}
.ed-feature p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
}

/* Inspector spread */
.ed-inspector-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .ed-inspector-grid { grid-template-columns: 1fr; gap: 32px; }
}
.ed-inspector-media picture,
.ed-inspector-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.ed-inspector-media figcaption {
  margin-top: 14px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 14px;
  color: var(--text-tertiary);
  text-align: center;
}

/* Report spread with mock document */
.ed-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .ed-report-grid { grid-template-columns: 1fr; gap: 32px; }
}
.ed-report-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.ed-report-list li {
  display: flex;
  align-items: start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.ed-report-list li i { color: var(--accent); font-size: 16px; padding-top: 3px; flex-shrink: 0; }
.ed-report-list li strong { color: #fff; font-weight: 600; }

.ed-report-media { margin: 0; }
.ed-report-mock {
  background: linear-gradient(180deg, #f8f9fb 0%, #eef1f7 100%);
  color: #111827;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.4s var(--ease-out);
}
.ed-report-mock:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.ed-report-mock-head { padding-bottom: 14px; border-bottom: 2px solid #111827; margin-bottom: 16px; }
.ed-report-mock-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}
.ed-report-mock-sub {
  font-family: var(--font-primary);
  font-size: 12px;
  color: #4b5563;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.ed-report-mock-body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ed-report-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
  font-size: 13px;
  color: #1f2937;
  font-weight: 500;
}
.ed-report-mock-row .ok {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee 0%, #4285f4 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.ed-report-mock-foot {
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-primary);
  font-size: 11px;
  color: #4b5563;
  letter-spacing: 0.02em;
}
.ed-report-mock-foot i { margin-right: 5px; color: var(--accent-electric); }
.ed-report-media figcaption {
  margin-top: 20px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 14px;
  color: var(--text-tertiary);
  text-align: center;
}

/* Region section */
.ed-region-sub {
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 28px;
}

/* Final CTA on editorial */
.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) { .final-cta-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Final-CTA aside (replaces the placeholder book-card on service pages;
   CTA routes to the canonical /schedule-inspection/ native form). */
.ed-cta-aside {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.ed-cta-aside .fc-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.ed-cta-aside h2 {
  font-family: var(--font-editorial);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em;
  color: #fff; margin: 0 0 18px;
}
.ed-cta-aside .ed-report-list { margin-top: 0; }
.ed-aside-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: var(--font-primary); font-size: 14px; font-weight: 600;
  color: var(--accent-light); text-decoration: none;
}
.ed-aside-link:hover { color: #fff; }
.ed-aside-link i { transition: transform 0.2s var(--ease-out); }
.ed-aside-link:hover i { transform: translateX(3px); }

/* R15 — hero media crop for landscape source photos: keeps the editorial
   portrait composition when the assigned hero image is 4:3 */
.editorial-hero-media.media-crop img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (max-width: 900px) {
  .editorial-hero-media.media-crop img { aspect-ratio: 16 / 10; }
}
