/* ═══ SERVICE DETAIL ═══ */
.sd-media{margin:0;position:relative;border-radius:var(--r-lg) var(--r-lg) var(--r-lg) 4px;overflow:hidden;
  border:1px solid var(--line-2);box-shadow:var(--shadow-lg)}
.sd-media img{width:100%;max-height:460px;object-fit:cover}
.sd-media figcaption{position:absolute;left:1.2rem;bottom:1.2rem;background:#fff;border-radius:99px;padding:.45rem 1rem}
.sd-title{margin:2.4rem 0 1.1rem;font-size:clamp(1.8rem,3vw,2.6rem);color:var(--deep)}
.sd-lead{font-size:1.08rem;font-weight:700;color:var(--ink);border-left:3px solid var(--sky);padding-left:1.1rem;margin-bottom:1.6rem}
/* admin rich-body typography */
.sd-body p{color:var(--muted);line-height:1.85;margin-bottom:1.1rem;font-size:18px}
.sd-body h1,.sd-body h2,.sd-body h3,.sd-body h4{color:var(--deep);margin:1.7rem 0 .8rem}
.sd-body ul,.sd-body ol{list-style:none;padding:0;margin:0 0 1.4rem}
.sd-body li{position:relative;padding:.45rem 0 .45rem 1.8rem;color:var(--muted)}
.sd-body li::before{content:"\f00c";font-family:"Font Awesome 6 Pro";font-weight:900;color:var(--green);position:absolute;left:0;top:.6rem;font-size:.78rem}
.sd-body img{max-width:100%;border-radius:var(--r-md);margin:1rem 0}

/* sidebar */
.sidebar{display:flex;flex-direction:column;gap:1.6rem}
@media (min-width:1200px){.sidebar{position:sticky;top:calc(var(--headH) + 24px)}}
.side-card{border:1px solid var(--line-2);border-radius:var(--r-md) var(--r-md) var(--r-md) 4px;background:#fff;overflow:hidden}
.side-h{margin:0;padding:1.15rem 1.5rem;background:var(--mint);border-bottom:1px solid var(--line);color:var(--deep);font-size: 22px}
.cat-list{list-style:none;margin:0;padding:.6rem}
.cat-list li a{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;
  border-radius:10px;color:var(--ink);text-decoration:none;font-weight:700;font-size:18px;transition:.3s}
.cat-list li a i{font-size:.68rem;color:var(--sky);transition:.3s}
.cat-list li a:hover{background:var(--mint);color:var(--green);padding-left:1.3rem}
.cat-list li.active a{background:var(--deep);color:#fff}
.cat-list li.active a i{color:var(--sky)}

.side-contact{position:relative;background:var(--deep);color:#fff;padding:2.6rem 2rem;text-align:center}
.sc-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.16}
.side-contact>*:not(.sc-bg){position:relative}
.sc-ic{width:58px;height:58px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;
  font-size:1.15rem;margin:0 auto 1.1rem;box-shadow:0 12px 26px rgba(0,0,0,.3)}
.side-contact .mono{color:rgba(255,255,255,.75)}
.side-contact h2{font-size:1.55rem;margin:.5rem 0 1.5rem}
.side-contact h2 a{color:#fff;text-decoration:none}
.side-contact h2 a:hover{color:var(--sky)}

/* 4.2 Quick-answer box */
.qa-box { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold);
          border-radius: var(--radius); padding: 26px 30px; margin: 30px 0 40px; box-shadow: var(--shadow); }
.qa-box h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.qa-box p { margin: 0; font-size: 18px; line-height: 1.8; color: var(--ink-2); }

/* 4.4 Comparison table */
.compare-section { margin: 50px 0; }
.compare-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.2rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare-section table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare-section th { background: var(--ink); color: var(--cream); text-align: left;
                      font-family: var(--font-heading); padding: 14px 20px; font-size: 20px; }
.compare-section td { padding: 13px 20px; border-top: 1px solid var(--line); font-size: 18px; }
.compare-section tbody tr:nth-child(even) { background: var(--cream); }
.compare-section td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table-note { font-size: 18px; margin-top: 1rem; }
.table-note a { color: var(--gold-deep); font-weight: 600; }

/* 4.5 Life stages */
.life-stages { margin: 60px 0; }
.life-stages h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.6rem; }
.stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.stage-grid article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
                      padding: 24px; transition: transform .3s, box-shadow .3s; }
.stage-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.stage-grid h3 { font-size: 1.15rem; color: var(--gold-deep); margin-bottom: .8rem; }
.stage-grid ul { list-style: none; margin: 0; padding: 0; }
.stage-grid li { font-size: 18px; padding: 5px 0 5px 20px; position: relative; }
.stage-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

/* 4.6 Mid CTA */
.mid-cta { background: var(--dark); color: #fff; padding: 56px 0; margin: 60px 0; text-align: center; }
.mid-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.mid-cta p { color: #cfc9bf; margin-bottom: 1.6rem; }
.mid-cta .hero-cta { justify-content: center; }

/* 4.7 Testimonial strip */
.testi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 0 0 60px; }
.testi-strip blockquote { background: var(--cream-2); border-radius: var(--radius); padding: 26px;
                          margin: 0; font-family: var(--font-heading); font-style: italic;
                          font-size: 20px; color: var(--ink); line-height: 1.6; }
.testi-strip cite { display: block; margin-top: 12px; font-family: var(--font-body); font-style: normal;
                    font-size: 16px; color: var(--ink-2); }

/* 4.9 Related services + sources */
.related-services { margin: 60px 0 40px; }
.related-services h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.related-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
                padding: 22px; text-decoration: none; transition: all .3s; }
.related-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.related-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--ink); }
.related-card p { font-size: .85rem; margin: 0; }
.sources { border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 50px; }
.sources h2 { font-size: 1.1rem; }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { font-size: 18px; margin-bottom: 8px; }
.sources a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.sources a:hover { color: var(--gold-deep); }

/* 4.3 Gum-disease stages timeline */
.stages-section { margin: 60px 0; }
.stages-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.6rem; }
.stages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: stage; }
.stages-grid article { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold);
                       border-radius: var(--radius); padding: 24px; position: relative;
                       transition: transform .3s, box-shadow .3s; }
.stages-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.stage-num { font-family: var(--font-heading); font-size: 2rem; color: var(--gold); opacity: .85; display: block; margin-bottom: .4rem; }
.stages-grid h3 { font-size: 20px; margin-bottom: .5rem; }
.stages-grid p { font-size: 18px; margin-bottom: .8rem; }
.stage-rx { background: var(--cream-2); border-radius: 8px; padding: 10px 12px; font-size: .82rem; }
.stage-rx strong { color: var(--gold-deep); }

/* 4.6 Cost block */
.cost-block { background: var(--cream-2); border-radius: var(--radius); padding: 40px; margin: 60px 0; }
.cost-block h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: .8rem; }
.cost-block .table-scroll { background: #fff; }
.cost-table td:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cost-notes { list-style: none; margin: 18px 0 0; padding: 0; }
.cost-notes li { font-size: 18px; padding: 6px 0 6px 24px; position: relative; }
.cost-notes li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

/* 4.3 Case gallery */
.case-gallery { margin: 60px 0; }
.case-gallery h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.6rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.gallery-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
                       overflow: hidden; transition: transform .3s, box-shadow .3s; }
.gallery-grid figure:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-grid figcaption { padding: 14px 18px; font-size: .85rem; color: var(--ink-2); }
.gallery-grid figcaption strong { color: var(--gold-deep); font-family: var(--font-heading); }

/* 4.6 Event timeline */
.event-timeline { background: var(--cream-2); border-radius: var(--radius); padding: 44px; margin: 60px 0; }
.event-timeline h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.8rem; }
.timeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.timeline-grid article { background: #fff; border-radius: var(--radius); padding: 22px;
                         border-top: 4px solid var(--gold); position: relative; }
.timeline-grid .stage-num { display: inline-block; background: var(--gold); color: #fff; font-size: .72rem;
                            font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
                            padding: 5px 12px; border-radius: 50px; margin-bottom: .8rem; }
.timeline-grid h3 { font-size: 20px; margin-bottom: .4rem; }
.timeline-grid p { font-size: 18px; margin: 0; }
.event-timeline .table-note { margin-top: 1.4rem; }

/* 4.3 Mistakes grid */
.mistakes-section { margin: 60px 0; }
.mistakes-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.6rem; }
.mistakes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.mistakes-grid article { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
                         border-radius: 10px; padding: 20px; }
.mistakes-grid h3 { font-size: 20px; margin-bottom: .4rem; }
.mistakes-grid p { font-size: 18px; margin: 0; }
.mistakes-grid strong { color: var(--gold-deep); }

/* 4.6 Video block */
.video-block { margin: 60px 0; text-align: center; }
.video-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius);
               overflow: hidden; box-shadow: var(--shadow); margin: 1.4rem 0 .8rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 4.7 Lead magnet */
.lead-magnet { background: var(--dark); color: #fff; border-radius: var(--radius);
               padding: 48px; margin: 60px 0; }
.lead-magnet .eyebrow { color: var(--gold); }
.lead-magnet h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.lead-magnet p { color: #cfc9bf; }
.lead-magnet .cost-notes li { color: #e8e2d6; }
.lm-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4rem; }
.lm-form input { flex: 1 1 240px; padding: 13px 18px; border-radius: 50px; border: 1px solid #444;
                 background: #1f1c19; color: #fff; font-family: var(--font-body); font-size: .95rem; }
.lm-form input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.lm-fine { font-size: .78rem; color: #8a857c; margin-top: .8rem; }
/* 3.4 Visit steps timeline */
.steps-section { margin: 60px 0; }
.steps-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.8rem; }
.steps-list { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps-list li { counter-increment: step; position: relative; padding: 0 0 28px 64px; }
.steps-list li::before { content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #fff; font-family: var(--font-heading); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; }
.steps-list li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px;
  width: 2px; background: var(--line); }
.steps-list li:last-child::after { display: none; }
.steps-list h3 { font-size: 1.12rem; margin: 8px 0 .3rem; }
.steps-list p { font-size: .92rem; margin: 0; }

/* 3.5 / 3.11 generic content section */
.content-section { margin: 56px 0; }
.content-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.4rem; }
.content-section h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; color: var(--ink); }
.content-section .includes { list-style: none; padding: 0; margin: .6rem 0 1.2rem; }
.content-section .includes li { padding: 5px 0 5px 24px; position: relative; font-size: 18px; }
.content-section .includes li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

/* 3.7 / 3.9 reuse .includes-grid from preventive-page delivery */
.freq-section, .benefits-section { margin: 56px 0; }
.freq-section h2, .benefits-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.6rem; }
.freq-section a { color: var(--gold-deep); font-weight: 600; }

/* 3.4 Extrinsic vs intrinsic cards */
.stain-types { margin: 60px 0; }
.stain-types h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.6rem; }
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.type-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold);
             border-radius: var(--radius); padding: 26px; }
.type-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.type-card a { color: var(--gold-deep); font-weight: 600; }

/* 3.5 Causes grid */
.causes-section { margin: 60px 0; }
.causes-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.6rem; }
.causes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.causes-grid article { background: var(--cream-2); border-radius: 10px; padding: 18px; }
.causes-grid h3 { font-size: 20px; margin-bottom: .3rem; color: var(--gold-deep); }
.causes-grid p { font-size: 18px; margin: 0; }

/* 3.8 DIY warning */
.diy-warning { background: #fff; border: 1px solid var(--line); border-left: 5px solid #B3402A;
               border-radius: var(--radius); padding: 30px 34px; margin: 60px 0; box-shadow: var(--shadow); }
.diy-warning h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.diy-warning h2 em { color: #B3402A; background: rgba(179, 64, 42, .12); }
.diy-warning p { margin: 0; line-height: 1.8; }


/* Responsive */
@media (max-width:991.98px){
  .sd-media img{max-height:320px}
  .gal-card{flex-basis:280px}.gal-card img{height:280px}
}
@media (max-width: 768px) {
  .qa-box { padding: 20px; }
  .cost-block { padding: 24px; }
  .stage-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .testi-strip { grid-template-columns: 1fr; }
  .event-timeline { padding: 26px; }
  .gallery-grid, .timeline-grid { grid-template-columns: 1fr 1fr; }
  .mistakes-grid { grid-template-columns: 1fr 1fr; }
  .lead-magnet { padding: 28px; }
  .types-grid { grid-template-columns: 1fr; } .diy-warning { padding: 22px; }
}
@media (max-width: 520px) {
  .stage-grid, .related-grid { grid-template-columns: 1fr; }
  .gallery-grid, .timeline-grid { grid-template-columns: 1fr; }
  .mistakes-grid { grid-template-columns: 1fr; } 
  .steps-list li { padding-left: 56px; }
}