/* Professional service detail page */
.sd-page {
  --sd-bg: #faf7f4;
  --sd-bg-soft: #f3ebe5;
  --sd-white: #fffdfb;
  --sd-copper: #b9854f;
  --sd-copper-light: #d4a96a;
  --sd-accent: #b9854f;
  --sd-accent-light: #d4a96a;
  --sd-border: #ddd0c6;
  --sd-text: #2c211d;
  --sd-muted: #7a665b;
  --sd-dark: #2c211d;
  --sd-serif: "Cormorant Garamond", "Fraunces", Georgia, serif;
}

.sd-page {
  background: var(--sd-bg);
  overflow-x: hidden;
}

.sd-page main {
  padding-top: 92px;
}

/* Static service panels — show selected service via URL hash */
#serviceDetailPage .sd-service {
  display: none;
}
#serviceDetailPage .sd-service:target {
  display: block;
}
.sd-not-found {
  display: block;
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--sd-muted);
  font-size: 1.05rem;
}
#serviceDetailPage:has(.sd-service:target) .sd-not-found {
  display: none;
}

/* Hero — contained split banner */
.sd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 0;
  box-sizing: border-box;
  align-items: center;
  background: transparent;
}

.sd-hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 12px;
  border: 1px solid var(--sd-border);
  background: linear-gradient(145deg, #f4a77e 0%, #efb08e 50%, #e8b896 100%);
}

.sd-hero__peach {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #f4a77e 0%, #efb08e 55%, #e8b896 100%);
  z-index: 0;
  pointer-events: none;
}

.sd-hero__peach::after {
  content: "";
  position: absolute;
  top: 5%;
  right: 0;
  width: 60%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(232, 196, 168, 0.75), transparent 68%);
  border-radius: 50%;
}

.sd-hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.sd-hero__badge {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: var(--sd-dark);
  padding: 14px 22px 16px;
  z-index: 3;
  min-width: 170px;
}

.sd-hero__badge span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sd-copper-light);
  margin-bottom: 5px;
  font-weight: 500;
}

.sd-hero__badge strong {
  font-family: var(--sd-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--sd-copper-light);
  letter-spacing: 0.02em;
}

.sd-hero__content {
  padding: 8px 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  background: transparent;
}

.sd-hero__center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.sd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  color: var(--sd-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.sd-breadcrumb a {
  color: var(--sd-muted);
  font-weight: 400;
  transition: color 0.2s;
}

.sd-breadcrumb a:hover {
  color: var(--sd-copper);
}

.sd-breadcrumb .sep {
  margin: 0 7px;
  opacity: 0.45;
}

.sd-hero__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sd-copper);
  margin-bottom: 12px;
}

.sd-hero__title {
  font-family: var(--sd-serif);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 400;
  color: var(--sd-text);
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.sd-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sd-pill {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--sd-border);
  border-radius: 3px;
  color: var(--sd-muted);
  background: var(--sd-white);
}

.sd-hero__desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--sd-muted);
  max-width: 100%;
  margin-bottom: 22px;
}

.sd-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  transition: background 0.25s, transform 0.25s, border-color 0.25s, color 0.25s;
}

.sd-btn--dark {
  background: var(--sd-dark);
  color: #fff;
  border: 1px solid var(--sd-dark);
}

.sd-btn--dark:hover {
  background: #1a1412;
  transform: translateY(-1px);
}

.sd-btn--outline {
  background: transparent;
  color: var(--sd-copper);
  border: 1px solid var(--sd-copper);
}

.sd-btn--outline:hover {
  background: rgba(185, 133, 79, 0.08);
}

.sd-btn--block {
  width: 100%;
}

.sd-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--sd-border);
  margin-top: 28px;
  flex-shrink: 0;
  background: var(--sd-white);
}

.sd-stat {
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid var(--sd-border);
  background: var(--sd-white);
}

.sd-stat:last-child {
  border-right: none;
}

.sd-stat strong {
  display: block;
  font-family: var(--sd-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--sd-text);
  margin-bottom: 5px;
  line-height: 1;
}

.sd-stat span {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sd-muted);
  font-weight: 500;
}

/* Main */
.sd-main {
  padding: 72px 0 64px;
}

.sd-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}

.sd-article h2 {
  font-family: var(--sd-serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--sd-text);
  margin-bottom: 24px;
  line-height: 1.3;
}

.sd-article h2 em {
  font-style: italic;
  color: var(--sd-accent);
}

.sd-article p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--sd-muted);
  margin-bottom: 18px;
}

.sd-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.sd-info-card {
  border: 1px solid var(--sd-border);
  background: var(--sd-white);
  padding: 22px 20px;
  transition: border-color 0.25s, transform 0.25s;
}

.sd-info-card:hover {
  border-color: var(--sd-accent);
  transform: translateY(-2px);
}

.sd-info-card h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sd-accent);
  margin-bottom: 14px;
}

.sd-info-card li {
  font-size: 12px;
  line-height: 1.65;
  color: var(--sd-muted);
  padding-left: 14px;
  position: relative;
  margin-bottom: 8px;
}

.sd-info-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--sd-accent);
}

.sd-feature-img {
  margin: 28px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--sd-border);
}

.sd-feature-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.sd-quote {
  border-left: 3px solid var(--sd-accent);
  padding: 16px 0 16px 22px;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--sd-muted);
  font-style: italic;
}

.sd-disclaimer {
  background: var(--sd-bg-soft);
  border: 1px solid var(--sd-border);
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--sd-muted);
  margin-bottom: 28px;
  border-radius: 6px;
}

.sd-disclaimer strong {
  color: var(--sd-text);
}

.sd-related h3 {
  font-family: var(--sd-serif);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.sd-related__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sd-related__pills a {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--sd-border);
  border-radius: 999px;
  color: var(--sd-muted);
  background: var(--sd-white);
  transition: background 0.25s, border-color 0.25s;
}

.sd-related__pills a:hover {
  background: var(--sd-bg-soft);
  border-color: var(--sd-accent);
}

/* Sidebar */
.sd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.sd-side-card {
  border: 1px solid var(--sd-border);
  background: var(--sd-white);
  padding: 24px 20px;
  border-radius: 8px;
}

.sd-side-card h3 {
  font-family: var(--sd-serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.sd-side-card > p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--sd-muted);
  margin-bottom: 16px;
}

.sd-side-contact {
  border-top: 1px solid var(--sd-border);
  padding-top: 14px;
  margin-top: 16px;
  list-style: none;
}

.sd-side-contact li {
  font-size: 11px;
  color: var(--sd-muted);
  margin-bottom: 6px;
}

.sd-side-card--doctor {
  text-align: center;
  padding: 28px 20px;
}

.sd-doctor-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--sd-border);
  overflow: hidden;
  margin: 0 auto 14px;
}

.sd-doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sd-doctor-info strong {
  display: block;
  font-family: var(--sd-serif);
  font-size: 1rem;
  margin-bottom: 4px;
}

.sd-doctor-info span {
  display: block;
  font-size: 11px;
  color: var(--sd-muted);
  line-height: 1.5;
}

/* Journey */
.sd-journey {
  background: var(--sd-white);
  padding: 72px 20px;
}

.sd-journey__inner {
  max-width: 960px;
  margin: 0 auto;
}

.sd-section-label {
  display: block;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sd-accent);
  margin-bottom: 8px;
}

.sd-section-title {
  font-family: var(--sd-serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
}

.sd-section-title em {
  font-style: italic;
  color: var(--sd-accent);
}

.sd-underline {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--sd-accent);
  margin: 0 auto 48px;
  border-radius: 1px;
}

.sd-journey__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.sd-journey-card {
  border: 1px solid var(--sd-border);
  background: #fff;
  padding: 22px 18px;
  border-radius: 8px;
  transition: border-color 0.25s, transform 0.25s;
}

.sd-journey-card:hover {
  border-color: var(--sd-accent);
  transform: translateY(-2px);
}

.sd-journey-card__num {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--sd-accent);
  margin-bottom: 12px;
}

.sd-journey-card h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.4;
}

.sd-journey-card p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--sd-muted);
}

.sd-credibility {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--sd-border);
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
}

.sd-credibility div {
  padding: 22px 16px;
  border-right: 1px solid var(--sd-border);
}

.sd-credibility div:last-child {
  border-right: none;
}

.sd-credibility strong {
  display: block;
  font-family: var(--sd-serif);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.sd-credibility span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

/* FAQ */
.sd-faq {
  background: var(--sd-bg-soft);
  padding: 72px 20px;
}

.sd-faq__inner {
  max-width: 640px;
  margin: 0 auto;
}

.sd-faq__list {
  margin-top: 32px;
}

.sd-faq-item {
  border-top: 1px solid var(--sd-border);
  background: var(--sd-white);
}

.sd-faq-item:last-child {
  border-bottom: 1px solid var(--sd-border);
}

.sd-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
}

.sd-faq-item summary::-webkit-details-marker {
  display: none;
}

.sd-faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--sd-accent);
  flex-shrink: 0;
}

.sd-faq-item[open] summary::after {
  content: "−";
}

.sd-faq-item p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--sd-muted);
  padding: 0 20px 18px;
}

/* CTA band */
.sd-cta-band {
  background: var(--sd-dark);
  padding: 56px 20px;
  text-align: center;
}

.sd-cta-band h2 {
  font-family: var(--sd-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 14px;
}

.sd-cta-band p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 24px;
}

.sd-cta-band .sd-hero__cta {
  justify-content: center;
  margin-bottom: 0;
}

.sd-cta-band .sd-btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.sd-cta-band .sd-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 960px) {
  .sd-page main {
    padding-top: 80px;
  }

  .sd-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 20px 0;
  }

  .sd-hero__visual {
    min-height: 240px;
    border-radius: 12px 12px 0 0;
  }

  .sd-hero__content {
    padding: 24px 0 16px;
  }
  .sd-main__grid {
    grid-template-columns: 1fr;
  }
  .sd-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sd-side-card {
    flex: 1;
    min-width: 260px;
  }
  .sd-journey__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sd-hero__stats {
    grid-template-columns: 1fr;
  }
  .sd-stat {
    border-right: none;
    border-bottom: 1px solid var(--sd-border);
  }
  .sd-info-cards,
  .sd-journey__cards,
  .sd-credibility {
    grid-template-columns: 1fr;
  }
  .sd-credibility div {
    border-right: none;
    border-bottom: 1px solid var(--sd-border);
  }
  .sd-sidebar {
    flex-direction: column;
  }
}
