/* Service landing pages ([mdt_service]) — same palette and type as the bento homepage. */
.mdt-svc {
  --mdt-bg: #EEF4F0;
  --mdt-white: #F7FBFA;
  --mdt-dark: #1a3a2d;
  --mdt-dark2: #2D5C47;
  --mdt-green2: #3D8B6A;
  --mdt-green-light: #a8ddc8;
  --mdt-mint: #E8F6F0;
  --mdt-r2: 28px;
  background: var(--mdt-bg);
  color: var(--mdt-dark);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  padding: 24px 0 56px;
  margin-top: 0 !important;
}
/* the theme's page template adds 140px of white space above the content */
main:has(.mdt-svc) { margin-top: 0 !important; }
.wp-block-group:has(> .entry-content > .mdt-svc) { padding-top: 0 !important; padding-bottom: 0 !important; }
.mdt-svc-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; gap: 20px; }
.mdt-svc h1, .mdt-svc h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 14px;
}
.mdt-svc h1 { font-size: clamp(32px, 4.6vw, 54px); color: #fff; }
.mdt-svc h2 { font-size: clamp(26px, 3vw, 38px); }
.mdt-svc p { margin: 0 0 14px; }
.mdt-svc a { color: var(--mdt-dark2); }

.mdt-svc-sec, .mdt-svc-final {
  background: var(--mdt-white); border-radius: var(--mdt-r2); padding: clamp(24px, 4vw, 48px);
}
.mdt-svc-intro { max-width: 760px; color: var(--mdt-dark2); }

/* hero */
.mdt-svc-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; border-radius: var(--mdt-r2); overflow: hidden; background: var(--mdt-dark); }
.mdt-svc-hero-text { padding: clamp(28px, 5vw, 64px); color: #e3f1ea; display: flex; flex-direction: column; justify-content: center; }
.mdt-svc-tag {
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mdt-green-light); display: inline-flex; align-items: center; gap: 10px;
}
.mdt-svc-tag::before { content: ''; width: 22px; height: 2px; background: var(--mdt-green-light); border-radius: 2px; }
.mdt-svc-lead { font-size: 19px; max-width: 520px; }
.mdt-svc-from { font-weight: 600; color: var(--mdt-green-light); }
.mdt-svc-hero-photo { min-height: 360px; }
.mdt-svc-hero-photo img, .mdt-svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mdt-svc-photo img { border-radius: 20px; max-height: 560px; }

.mdt-svc-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mdt-svc-btn, .mdt-svc-btn-ghost {
  display: inline-block; padding: 13px 24px; border-radius: 24px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: background 0.2s; text-align: center;
}
.mdt-svc .mdt-svc-btn { background: var(--mdt-green-light); color: var(--mdt-dark); }
.mdt-svc .mdt-svc-btn:hover { background: #C8E6DA; }
.mdt-svc .mdt-svc-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }
.mdt-svc .mdt-svc-btn-ghost:hover { background: rgba(255,255,255,0.18); }

/* problems */
.mdt-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 8px; }
.mdt-svc-tile { background: var(--mdt-mint); border-radius: 20px; padding: 20px; }
.mdt-svc-problem { font-weight: 600; margin-bottom: 6px; }
.mdt-svc-result { color: var(--mdt-dark2); margin: 0; }

/* split sections */
.mdt-svc-split, .mdt-svc-session { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.mdt-svc-copy p:last-child { margin-bottom: 0; }
.mdt-svc-session.is-single { grid-template-columns: 1fr; }
.mdt-svc-session.is-single .mdt-svc-copy { max-width: 820px; }
.mdt-svc-video video { width: 100%; max-height: 640px; border-radius: 20px; background: #000; display: block; }
.mdt-svc-formula { background: var(--mdt-mint); border-radius: 20px; padding: 20px; margin: 8px 0 18px; }
.mdt-svc-formula-eq { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 700; }
.mdt-svc-formula table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mdt-svc-formula th, .mdt-svc-formula td { padding: 7px 8px; text-align: left; border-bottom: 1px solid rgba(26,58,45,0.12); }
.mdt-svc-formula th { font-weight: 600; }
.mdt-svc-note { font-weight: 600; }

/* pricing: biggest package first, highlighted */
.mdt-svc-prices { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; align-items: end; margin: 8px 0 18px; }
.mdt-svc-price { background: var(--mdt-mint); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; }
.mdt-svc-price.is-best { background: var(--mdt-dark); color: #e3f1ea; padding: 32px 28px; box-shadow: 0 20px 50px rgba(26,58,45,0.25); }
.mdt-svc-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--mdt-white); color: var(--mdt-dark2); padding: 5px 12px; border-radius: 14px; }
.mdt-svc-price.is-best .mdt-svc-badge { background: var(--mdt-green-light); color: var(--mdt-dark); }
.mdt-svc-pkg { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.mdt-svc-per strong { font-size: 34px; line-height: 1.1; }
.mdt-svc-total { opacity: 0.85; margin-bottom: 4px; }
.mdt-svc-save { font-weight: 700; color: var(--mdt-green2); min-height: 1.6em; }
.mdt-svc-price.is-best .mdt-svc-save { color: var(--mdt-green-light); }
.mdt-svc-price .mdt-svc-btn { margin-top: auto; }
.mdt-svc-compare { font-weight: 600; font-size: 18px; }
.mdt-svc-small { font-size: 14px; color: var(--mdt-dark2); }

.mdt-svc-why ul, .mdt-svc-posts { margin: 0; padding-left: 1.2em; }
.mdt-svc-why li, .mdt-svc-posts li { margin-bottom: 8px; }

/* faq */
.mdt-svc-faq details { border-bottom: 1px solid rgba(26,58,45,0.14); padding: 14px 0; }
.mdt-svc-faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; padding-right: 28px; position: relative; }
.mdt-svc-faq summary::-webkit-details-marker { display: none; }
.mdt-svc-faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 24px; color: var(--mdt-green2); }
.mdt-svc-faq details[open] summary::after { content: '−'; }
.mdt-svc-faq details p { margin: 10px 0 0; }

.mdt-svc-final { background: var(--mdt-dark); color: #e3f1ea; text-align: center; }
.mdt-svc-final h2 { color: #fff; }
.mdt-svc-final p { max-width: 640px; margin-inline: auto; }
.mdt-svc-final .mdt-svc-btns { justify-content: center; }
.mdt-svc-sibling { font-weight: 600; font-size: 18px; }

@media (max-width: 860px) {
  .mdt-svc-hero, .mdt-svc-split, .mdt-svc-session, .mdt-svc-prices { grid-template-columns: 1fr; }
  .mdt-svc-hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .mdt-svc-btns a { flex: 1 1 100%; }
}
