/* ContentsMobileRestorationReview.com
   Clean documentary style. Evidence-first, restrained.
   ------------------------------------------------------------------ */

:root {
  --bg:        #f8f8f8;
  --surface:   #ffffff;
  --text:      #1a1a1a;
  --text-soft: #4a4a4a;
  --text-mute: #6f6f6f;
  --border:    #e2e2e2;
  --accent:    #1f3864;   /* deep navy / slate */
  --accent-soft:#eef1f7;
  --highlight: #f5a623;   /* muted amber for key admissions */
  --highlight-bg:#fdf4e3;
  --maxw: 760px;
  --maxw-wide: 1040px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #16294a; }

/* Layout ---------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }
.section-tight { padding: 32px 0; }

/* Typography ------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: 2.1rem; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 .4em; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; color: var(--text-soft); }
.muted { color: var(--text-mute); }
.small { font-size: .9rem; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .6em;
}

/* Header / nav ---------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  max-width: var(--maxw-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.02rem;
  color: var(--text); text-decoration: none; line-height: 1.15;
}
.brand span { display: block; font-family: var(--sans); font-weight: 400; font-size: .72rem; color: var(--text-mute); letter-spacing: .02em; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--text-soft); font-size: .92rem;
  padding: 6px 10px; border-radius: 5px; white-space: nowrap;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px; font-size: 1rem; cursor: pointer; color: var(--text);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; width: 100%;
    gap: 0; padding: 8px 0 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 8px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav { flex-wrap: wrap; }
}

/* Hero ------------------------------------------------------------ */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero .wrap { padding-top: 56px; padding-bottom: 48px; }
.hero h1 {
  font-size: 2.4rem; line-height: 1.18; margin-bottom: .4em;
}
.hero .thesis {
  font-size: 1.5rem; line-height: 1.45; font-family: var(--serif);
  color: var(--text); margin: 0 0 .8em;
}
.hero .you-decide { color: var(--accent); font-weight: 700; }
@media (max-width: 600px) { .hero h1 { font-size: 1.9rem; } .hero .thesis { font-size: 1.25rem; } }

/* Stat grid ------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.stat { background: var(--surface); padding: 22px 18px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat .num.amber { color: #c97e10; }
.stat .label { font-size: .82rem; color: var(--text-mute); margin-top: 8px; line-height: 1.35; }

/* Buttons --------------------------------------------------------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; padding: 11px 20px; border-radius: 7px;
  font-size: .95rem; font-weight: 600; border: 1px solid var(--accent);
}
.btn:hover { background: #16294a; color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.4em 0 0; }

/* Callout quotes -------------------------------------------------- */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 16px 20px; margin: 1.6em 0; border-radius: 0 8px 8px 0;
}
.callout p { margin: 0; font-size: 1.15rem; font-weight: 300; line-height: 1.5; }
.callout cite { display: block; margin-top: 8px; font-size: .85rem; color: var(--text-mute); font-style: normal; }
.callout.amber { border-left-color: var(--highlight); background: var(--highlight-bg); }

.keyfact {
  border-left: 4px solid var(--highlight); background: var(--highlight-bg);
  padding: 14px 18px; margin: 1.4em 0; border-radius: 0 8px 8px 0; font-size: 1.05rem;
}

/* Cards / document list ------------------------------------------- */
.doc-group { margin: 0 0 2.4em; }
.doc-group h3 { margin-top: 0; padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft); }
.doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  padding: 16px 18px; margin: 0 0 12px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
}
.doc-info { flex: 1 1 280px; }
.doc-info .name { font-weight: 600; margin: 0 0 2px; }
.doc-info .date { font-size: .8rem; color: var(--text-mute); margin: 0 0 6px; }
.doc-info .desc { font-size: .92rem; color: var(--text-soft); margin: 0; }
.doc .btn { align-self: center; flex-shrink: 0; }

/* Photo grid ------------------------------------------------------ */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.photo {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #ececec; }
.photo .ph-placeholder {
  width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #eaeaea 10px, #eaeaea 20px);
  color: var(--text-mute); font-size: .8rem; text-align: center; padding: 12px;
}
.photo .cap { padding: 12px 14px; }
.photo .cap .what { font-weight: 600; font-size: .95rem; margin: 0 0 4px; }
.photo .cap .meta { font-size: .82rem; color: var(--text-mute); margin: 0; }
.photo .cap .billed { display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 600; color: #c97e10; background: var(--highlight-bg); padding: 2px 8px; border-radius: 4px; }

/* Tables ---------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-family: var(--sans); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: var(--accent-soft); border-top: 2px solid var(--accent); }
td.excess { color: #b3320a; font-weight: 600; }

/* Audio / recordings ---------------------------------------------- */
.recording {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 22px; margin: 0 0 28px;
}
.recording h3 { margin-top: 0; }
.recording audio { width: 100%; margin: 14px 0; }
.transcript {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 18px; margin-top: 14px; font-size: .92rem; max-height: 420px; overflow-y: auto;
}
.transcript p { margin: 0 0 .7em; }
.transcript .spk { font-weight: 600; color: var(--accent); }
details.transcript-toggle { margin-top: 12px; }
details.transcript-toggle > summary {
  cursor: pointer; font-weight: 600; color: var(--accent); font-size: .92rem;
  padding: 8px 0; list-style: none;
}
details.transcript-toggle > summary::-webkit-details-marker { display: none; }
details.transcript-toggle > summary::before { content: "▸ "; }
details.transcript-toggle[open] > summary::before { content: "▾ "; }

/* Video embed ----------------------------------------------------- */
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 11px; border: 1px solid var(--border); margin: 1.4em 0; background: #000;
}
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 11px; border: 1px dashed var(--border); margin: 1.4em 0;
  background: var(--surface);
}
.video-placeholder span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-mute); font-size: .9rem; text-align: center; padding: 20px;
}
.video-portrait { margin: 1.4em 0; }
.video-portrait video {
  width: 100%; max-width: 360px; height: auto; border-radius: 11px;
  border: 1px solid var(--border); background: #000; display: block;
}

/* Disclaimer / footer --------------------------------------------- */
.disclaimer {
  background: var(--accent-soft); border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--text-soft); padding: 18px 0;
}
.disclaimer .wrap-wide { display: block; }
.site-footer {
  background: var(--text); color: #c9c9c9; padding: 36px 0; font-size: .88rem;
}
.site-footer a { color: #fff; }
.site-footer .wrap-wide { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer .foot-note { max-width: 380px; color: #9a9a9a; }

/* Page intro band ------------------------------------------------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-head .wrap { padding: 40px 20px 30px; }
.page-head h1 { margin: 0 0 .3em; }
.page-head p { margin: 0; color: var(--text-soft); font-size: 1.1rem; }

/* Misc ------------------------------------------------------------ */
hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.note { font-size: .88rem; color: var(--text-mute); font-style: italic; }
.next-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5em; }
ul.clean { padding-left: 1.2em; }
ul.clean li { margin-bottom: .5em; }
