/* ==========================================================================
   MTR — Service landing page components
   --------------------------------------------------------------------------
   Loaded only by the pages in /services/. Everything here is built from the
   same design tokens declared in site.css (--blue, --font-display, the clipped
   button corners, the 1px-gap grid pattern, the gradient top rules) so the
   landing pages read as part of the same site rather than bolted on.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE HERO — a shorter, denser variant of the homepage #hero
   -------------------------------------------------------------------------- */
#page-hero { position: relative; z-index: 2; padding: 140px 48px 76px; background: linear-gradient(155deg, #ffffff 0%, #eef4ff 55%, #ddeeff 100%); overflow: hidden; border-bottom: 1px solid var(--border); }
.ph-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,120,220,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(0,120,220,0.10) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.ph-radial { position: absolute; top: 20px; right: -100px; width: 620px; height: 620px; background: radial-gradient(ellipse at top right, rgba(0,168,200,0.25) 0%, transparent 65%); pointer-events: none; }
.ph-inner { max-width: 1120px; width: 100%; margin: 0 auto; position: relative; z-index: 1; }
.ph-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.crumbs a { color: var(--blue); }
.crumbs a:hover { color: var(--blue-mid); text-decoration: underline; }
.crumbs .sep { color: var(--border); }
.crumbs [aria-current] { color: var(--text-soft); }

.ph-title { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: 0.01em; color: var(--text-head); margin-bottom: 10px; }
.ph-title span { color: var(--blue); }
.ph-sub { font-family: var(--font-display); font-size: clamp(13px, 1.4vw, 17px); font-weight: 500; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; margin-bottom: 20px; }
.ph-desc { font-size: 17px; font-weight: 300; color: var(--text-soft); line-height: 1.8; margin-bottom: 18px; max-width: 560px; }
.ph-locs { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 28px; }
.ph-locs b { color: var(--blue); font-weight: bold; }
.ph-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Quick-facts panel, mirrors .hero-panel */
.ph-panel { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 28px; position: relative; }
.ph-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.ph-panel-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; text-align: center; }
.ph-facts { border: 1px solid var(--border); background: var(--bg-page); }
.pf-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 13px; border-bottom: 1px solid var(--border); }
.pf-row:last-child { border-bottom: none; }
.pf-key { font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-body); }
.pf-val { font-family: var(--font-mono); font-size: 12px; color: var(--blue); text-align: right; }

/* --------------------------------------------------------------------------
   GENERIC SECTION SHELLS
   -------------------------------------------------------------------------- */
.svc-section { position: relative; z-index: 2; padding: 96px 48px; overflow: hidden; }
.svc-section.tone-white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.svc-section.tone-grey { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.svc-section > * { position: relative; z-index: 1; }
.svc-inner { max-width: 1120px; margin: 0 auto; }
.svc-inner-narrow { max-width: 860px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   PROSE — the placeholder body copy blocks
   -------------------------------------------------------------------------- */
.prose { font-size: 16px; color: var(--text-soft); line-height: 1.85; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--text-head); line-height: 1.15; letter-spacing: 0.02em; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 span { color: var(--blue); }
.prose h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-head); margin-top: 32px; }
.prose strong { color: var(--text-body); font-weight: 600; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--blue); }
.prose a { border-bottom: 1px solid rgba(0,120,220,0.3); }
.prose a:hover { border-bottom-color: var(--blue-mid); }

/* Two-column split: copy beside a bordered aside */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.aside-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 28px; position: relative; }
.aside-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.aside-hd { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-head); margin-bottom: 16px; }
.aside-list { list-style: none; }
.aside-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 12px; }
.aside-list li:last-child { margin-bottom: 0; }
.aside-list li::before { content: ''; width: 15px; height: 15px; background: var(--blue-xlight); border: 1px solid rgba(0,120,220,0.18); flex-shrink: 0; margin-top: 3px; }

/* --------------------------------------------------------------------------
   SYMPTOM / "WE FIX THIS" GRID — reuses the .svc-card look with a checklist
   -------------------------------------------------------------------------- */
.issue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.issue-card { background: var(--white); padding: 30px 26px; position: relative; overflow: hidden; transition: background 0.25s; }
.issue-card::after { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 0.3s; }
.issue-card:hover { background: var(--bg-card-hover); }
.issue-card:hover::after { width: 100%; }
.issue-num { position: absolute; top: 16px; right: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.issue-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-head); margin-bottom: 9px; padding-right: 28px; }
.issue-desc { font-size: 14px; color: var(--text-soft); line-height: 1.7; }

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list { border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow-sm); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-head); transition: background 0.2s, color 0.2s; }
.faq-q:hover { background: var(--blue-xlight); color: var(--blue); }
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; margin-top: 2px; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--blue); transition: transform 0.25s; }
.faq-icon::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.faq-icon::after { top: 3px; left: 10px; width: 2px; height: 16px; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.is-open .faq-a { max-height: 640px; }
.faq-a-inner { padding: 0 24px 22px; font-size: 15px; color: var(--text-soft); line-height: 1.8; border-left: 3px solid var(--blue); margin-left: 24px; padding-left: 20px; }

/* --------------------------------------------------------------------------
   RELATED SERVICES
   -------------------------------------------------------------------------- */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card { display: block; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 24px 26px; position: relative; overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s; }
.rel-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.rel-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-accent); transform: translateY(-3px); }
.rel-card:hover::before { transform: scaleX(1); }
.rel-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-head); margin-bottom: 8px; }
.rel-desc { font-size: 13px; color: var(--text-soft); line-height: 1.65; }
.rel-more { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }

/* --------------------------------------------------------------------------
   PLACEHOLDER MARKER
   Wrap any copy you intend to rewrite in .placeholder — it gets a subtle
   dashed rule so unfinished sections are obvious during review. Delete the
   rule (or the class) once the real copy is in.
   -------------------------------------------------------------------------- */
.placeholder { border-left: 2px dashed rgba(232,86,10,0.35); padding-left: 16px; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  #page-hero { padding: 116px 28px 60px; }
  .ph-layout { grid-template-columns: 1fr; gap: 40px; }
  .svc-section { padding: 66px 28px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .issue-grid, .rel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  #page-hero { padding: 92px 20px 52px; }
  .svc-section { padding: 54px 20px; }
  .issue-grid, .rel-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 20px; }
  .faq-q { font-size: 15px; padding: 16px 18px; }
  .faq-a-inner { margin-left: 18px; padding: 0 18px 18px 16px; }
  .ph-btns .btn-primary, .ph-btns .btn-outline { flex: 1 1 100%; justify-content: center; }
}
