/* ============================================================
   SEO Doctor — Page content design system
   Used by every content page (home + 9). Namespaced .sdp- so it
   won't collide with Divi or the .sd- header/footer kit.
   Reuses the --sd- tokens; redeclared here so pages style even if
   sd-nav.css loads after. Enqueue once (see functions snippet).
   ============================================================ */

:root {
  --sd-ink: #1A1A1A;        --sd-cream: #FAF7F2;     --sd-white: #FFFFFF;
  --sd-teal: #0E7C7B;       --sd-teal-deep: #095857; --sd-teal-soft: #E2F1F1;
  --sd-orange: #F26522;     --sd-orange-deep: #C44E12;
  --sd-rule: #E8E2D8;       --sd-muted: #7A7A7A;     --sd-ink-soft: #46504F;
  --sd-paper: #F4F1EB;
}

.sdp { font-family: 'Outfit', sans-serif; color: var(--sd-ink); line-height: 1.65; font-size: 17px; }
.sdp *, .sdp *::before, .sdp *::after { box-sizing: border-box; }
.sdp img { max-width: 100%; height: auto; }
.sdp-wrap { max-width: 1080px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.sdp-wrap--narrow { max-width: 800px; }

/* ---- type ---- */
.sdp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--sd-teal); margin-bottom: 18px; }
.sdp h1, .sdp h2, .sdp h3 { font-family: 'Fraunces', serif; letter-spacing: -0.5px; line-height: 1.12; color: var(--sd-ink); }
.sdp h1 { font-size: clamp(33px, 5.4vw, 54px); font-weight: 600; }
.sdp h1 em { font-style: italic; color: var(--sd-teal); }
.sdp h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 600; }
.sdp h2 em { font-style: italic; color: var(--sd-teal); }
.sdp h3 { font-size: 20px; font-weight: 600; }
.sdp .sdp-lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--sd-ink-soft); line-height: 1.6; }
.sdp p { color: var(--sd-ink-soft); margin: 0 0 16px; }
.sdp p:last-child { margin-bottom: 0; }
.sdp a { color: var(--sd-teal-deep); }

/* ---- sections ---- */
.sdp-section { padding: 76px 0; }
.sdp-section--tight { padding: 54px 0; }
.sdp-bg-cream { background: var(--sd-cream); }
.sdp-bg-paper { background: var(--sd-paper); }
.sdp-bg-white { background: var(--sd-white); }
.sdp-center { text-align: center; }
.sdp-center .sdp-lead { max-width: 60ch; margin-left: auto; margin-right: auto; }
.sdp-section-head { max-width: 62ch; }
.sdp-center .sdp-section-head { margin-left: auto; margin-right: auto; }
.sdp-section-head h2 { margin-bottom: 16px; }

/* ---- hero ---- */
.sdp-hero { background: var(--sd-cream); padding: 84px 0 70px; border-bottom: 1px solid var(--sd-rule); }
.sdp-hero h1 { margin-bottom: 22px; max-width: 17ch; }
.sdp-hero.sdp-center h1 { margin-left: auto; margin-right: auto; }
.sdp-hero .sdp-lead { margin-bottom: 30px; max-width: 56ch; }
.sdp-hero-dark { background: linear-gradient(135deg, #0E2A2A 0%, #143838 58%, #1A1A1A 100%); border-bottom: none; }
.sdp-hero-dark h1, .sdp-hero-dark .sdp-eyebrow { color: #FAF7F2; }
.sdp-hero-dark .sdp-eyebrow { color: #5FBFBE; }
.sdp-hero-dark h1 em { color: #5FBFBE; }
.sdp-hero-dark .sdp-lead { color: #C2D8D8; }

/* ---- buttons ---- */
.sdp-btn { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; text-decoration: none; padding: 14px 26px; border-radius: 11px; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.sdp-btn .a { transition: transform .15s ease; }
.sdp-btn:hover .a { transform: translateX(3px); }
.sdp-btn-primary { background: var(--sd-orange); color: #fff !important; box-shadow: 0 6px 20px rgba(242,101,34,0.30); }
.sdp-btn-primary:hover { background: var(--sd-orange-deep); transform: translateY(-2px); }
.sdp-btn-ghost { background: transparent; color: var(--sd-teal-deep) !important; border: 1.5px solid var(--sd-teal); }
.sdp-btn-ghost:hover { background: var(--sd-teal-soft); }
.sdp-btn-light { background: #fff; color: var(--sd-teal-deep) !important; }
.sdp-btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.sdp-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.sdp-center .sdp-btn-row { justify-content: center; }

/* ---- grids & cards ---- */
.sdp-grid { display: grid; gap: 22px; margin-top: 40px; }
.sdp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sdp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sdp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sdp-card { background: var(--sd-white); border: 1px solid var(--sd-rule); border-radius: 16px; padding: 28px; box-shadow: 0 4px 18px rgba(14,42,42,0.05); }
.sdp-card--link { display: block; text-decoration: none; color: inherit; transition: transform .14s ease, box-shadow .14s ease, border-color .14s; }
.sdp-card--link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14,42,42,0.10); border-color: #CFE3E3; }
.sdp-card h3 { margin: 0 0 8px; }
.sdp-card p { font-size: 15.5px; }
.sdp-card-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sd-teal); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sdp-card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--sd-teal-deep); }
.sdp-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--sd-orange-deep); background: #FFF1E6; padding: 3px 9px; border-radius: 20px; }

/* icon chip */
.sdp-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--sd-teal-soft); color: var(--sd-teal-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sdp-ico svg { width: 23px; height: 23px; }

/* ---- check list ---- */
.sdp-checks { list-style: none; margin: 22px 0 0; padding: 0; }
.sdp-checks li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--sd-ink-soft); font-size: 16px; }
.sdp-checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--sd-teal-soft); }
.sdp-checks li::after { content: ''; position: absolute; left: 7px; top: 7px; width: 6px; height: 10px; border-right: 2px solid var(--sd-teal-deep); border-bottom: 2px solid var(--sd-teal-deep); transform: rotate(40deg); }

/* split (text + panel) */
.sdp-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.sdp-panel { background: var(--sd-white); border: 1px solid var(--sd-rule); border-radius: 18px; padding: 30px; box-shadow: 0 8px 28px rgba(14,42,42,0.07); }
.sdp-panel--dark { background: linear-gradient(150deg,#0E2A2A,#143838); border: none; color: #DCEDED; }
.sdp-panel--dark h3 { color: #fff; }
.sdp-panel--dark p { color: #B7D2D2; }

/* numbered steps */
.sdp-steps { counter-reset: s; display: grid; gap: 18px; margin-top: 38px; }
.sdp-step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; }
.sdp-step .n { counter-increment: s; width: 52px; height: 52px; border-radius: 14px; background: var(--sd-ink); color: #fff; font-family: 'Fraunces',serif; font-weight: 600; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.sdp-step .n::before { content: counter(s); }
.sdp-step h3 { margin: 6px 0 6px; }
.sdp-step p { font-size: 15.5px; }

/* stat strip */
.sdp-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 6px; }
.sdp-stat .v { font-family: 'Fraunces',serif; font-weight: 600; font-size: clamp(30px,4vw,44px); color: var(--sd-teal-deep); line-height: 1; }
.sdp-stat .k { font-size: 14px; color: var(--sd-muted); margin-top: 8px; }

/* quote / proof */
.sdp-quote { border-left: 4px solid var(--sd-teal); padding: 6px 0 6px 26px; }
.sdp-quote p { font-family: 'Fraunces',serif; font-style: italic; font-size: clamp(20px,2.6vw,27px); color: var(--sd-ink); line-height: 1.4; }
.sdp-quote .who { font-family: 'Outfit',sans-serif; font-style: normal; font-size: 14px; color: var(--sd-muted); margin-top: 16px; }

/* FAQ — native details/summary, no JS */
.sdp-faq { margin-top: 36px; border-top: 1px solid var(--sd-rule); }
.sdp-faq details { border-bottom: 1px solid var(--sd-rule); }
.sdp-faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 4px; position: relative; font-family: 'Outfit',sans-serif; font-weight: 600; font-size: 17.5px; color: var(--sd-ink); }
.sdp-faq summary::-webkit-details-marker { display: none; }
.sdp-faq summary::after { content: ''; position: absolute; right: 8px; top: 27px; width: 11px; height: 11px; border-right: 2px solid var(--sd-teal); border-bottom: 2px solid var(--sd-teal); transform: rotate(45deg); transition: transform .2s ease; }
.sdp-faq details[open] summary::after { transform: rotate(-135deg); }
.sdp-faq .a { padding: 0 44px 24px 4px; }
.sdp-faq .a p { font-size: 16px; }

/* pill row / badges */
.sdp-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sdp-pill { font-size: 13px; font-weight: 500; color: var(--sd-teal-deep); background: var(--sd-teal-soft); border-radius: 30px; padding: 8px 16px; }
.sdp-center .sdp-pills { justify-content: center; }

/* CTA band */
.sdp-cta-band { background: linear-gradient(135deg,#0E2A2A 0%,#143838 60%,#1A1A1A 100%); color: #fff; text-align: center; padding: 74px 0; }
.sdp-cta-band h2 { color: #fff; margin-bottom: 16px; }
.sdp-cta-band h2 em { color: #5FBFBE; }
.sdp-cta-band p { color: #BBD4D4; max-width: 54ch; margin: 0 auto 30px; font-size: 18px; }

/* small note */
.sdp-note { font-size: 13.5px; color: var(--sd-muted); margin-top: 18px; }
.sdp-center .sdp-note { margin-left: auto; margin-right: auto; max-width: 60ch; }

/* dividing label */
.sdp-kicker { display:inline-flex; align-items:center; gap:10px; font-size: 12px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color: var(--sd-muted); }
.sdp-kicker::before { content:''; width: 26px; height:2px; background: var(--sd-teal); }

/* responsive */
@media (max-width: 920px) {
  .sdp-grid-4 { grid-template-columns: repeat(2,1fr); }
  .sdp-grid-3 { grid-template-columns: repeat(2,1fr); }
  .sdp-split { grid-template-columns: 1fr; gap: 32px; }
  .sdp-stats { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 600px) {
  .sdp-section { padding: 56px 0; }
  .sdp-hero { padding: 60px 0 50px; }
  .sdp-grid-2, .sdp-grid-3, .sdp-grid-4 { grid-template-columns: 1fr; }
  .sdp-stats { grid-template-columns: 1fr; gap: 18px; }
  .sdp-wrap { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) { .sdp * { transition: none !important; } }
.sdp :focus-visible { outline: 2px solid var(--sd-teal); outline-offset: 2px; }

/* ---- legal / document prose ---- */
.sdp-updated { display: inline-block; font-size: 13px; font-weight: 600; color: var(--sd-teal-deep); background: var(--sd-teal-soft); border-radius: 30px; padding: 6px 14px; margin-top: 20px; }
.sdp-legal-note { background: #FFF8EE; border: 1px solid #F3D9BC; border-radius: 12px; padding: 15px 20px; font-size: 13.5px; line-height: 1.6; color: #7a5a2e; margin: 0 0 34px; }
.sdp-toc { background: var(--sd-white); border: 1px solid var(--sd-rule); border-radius: 14px; padding: 22px 26px; margin: 0 0 40px; }
.sdp-toc .sdp-toc-h { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--sd-muted); margin: 0 0 14px; font-weight: 700; }
.sdp-toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 34px; }
.sdp-toc li { margin-bottom: 9px; break-inside: avoid; }
.sdp-toc a { color: var(--sd-ink-soft); text-decoration: none; font-size: 14.5px; }
.sdp-toc a:hover { color: var(--sd-teal-deep); }
.sdp-prose { font-size: 17px; line-height: 1.75; color: var(--sd-ink-soft); }
.sdp-prose h2 { font-size: 23px; margin: 44px 0 12px; scroll-margin-top: 100px; }
.sdp-prose h2:first-child { margin-top: 0; }
.sdp-prose h3 { font-size: 18px; margin: 30px 0 10px; scroll-margin-top: 100px; }
.sdp-prose p { margin: 0 0 16px; }
.sdp-prose ul, .sdp-prose ol { margin: 0 0 18px; padding-left: 22px; }
.sdp-prose li { margin-bottom: 8px; }
.sdp-prose a { color: var(--sd-teal-deep); word-break: break-word; }
.sdp-prose strong { color: var(--sd-ink); }
.sdp-prose .sdp-rights { list-style: none; padding: 0; }
.sdp-prose .sdp-rights li { position: relative; padding-left: 30px; }
.sdp-prose .sdp-rights li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sd-teal-soft); }
.sdp-prose .sdp-rights li::after { content: ''; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border-right: 2px solid var(--sd-teal-deep); border-bottom: 2px solid var(--sd-teal-deep); transform: rotate(40deg); }
.sdp-table-wrap { overflow-x: auto; margin: 20px 0 26px; border: 1px solid var(--sd-rule); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.sdp-prose table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.55; margin: 0; }
.sdp-prose thead th { background: var(--sd-cream); font-weight: 600; color: var(--sd-ink); font-size: 12.5px; letter-spacing: .3px; text-transform: uppercase; }
.sdp-prose th, .sdp-prose td { border-bottom: 1px solid var(--sd-rule); border-right: 1px solid var(--sd-rule); padding: 12px 14px; text-align: left; vertical-align: top; }
.sdp-prose th:last-child, .sdp-prose td:last-child { border-right: none; }
.sdp-prose tbody tr:last-child td { border-bottom: none; }
.sdp-prose td:last-child { text-align: center; font-weight: 700; color: var(--sd-teal-deep); letter-spacing: .5px; }
.sdp-prose td:first-child { color: var(--sd-ink); font-weight: 600; }
@media (max-width: 600px) { .sdp-toc ul { columns: 1; } }
