/*
Theme Name: Joel Wellness - Child
Version: 1.0
Description: A child theme of DMM by Almina
Template: mts_schema
Text Domain: schema
*/

@import url("../mts_schema/style.css");

body.jw-site {
  --jw-navy: #2A4278;
  --jw-navy-deep: #1F3260;
  --jw-peri: #A8C0E8;
  --jw-peri-soft: #E6EDF8;
  --jw-terracotta: #B84E35;
  --jw-terracotta-dark: #9A3F2A;
  --jw-apricot: #FBE9E1;
  --jw-bg: #F7F9FC;
  --jw-white: #FFFFFF;
  --jw-text: #33394A;
  --jw-muted: #5A6166;
  --jw-line: #D9E2F0;
  background: var(--jw-bg);
  font-family: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--jw-text);
  line-height: 1.65;
  font-size: 17px;
}

html:has(body.jw-site) {
  scroll-behavior: smooth;
}

.jw-site .jw-nav *,
.jw-site .jw-home *,
.jw-site .jw-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.jw-site img {
  max-width: 100%;
  height: auto;
}

.jw-site a {
  color: var(--jw-navy);
}

.jw-site a:focus-visible,
.jw-site button:focus-visible {
  outline: 3px solid var(--jw-terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

.jw-site .jw-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.jw-site h1,
.jw-site h2,
.jw-site h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--jw-navy);
  font-weight: 400;
  line-height: 1.2;
}

.jw-site .jw-home p,
.jw-site .jw-footer p {
  max-width: 68ch;
}

.jw-site #page.jw-home {
  padding-top: 0;
}

/* Buttons */
.jw-site .jw-btn {
  display: inline-block;
  white-space: nowrap;
  background: var(--jw-terracotta);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.jw-site .jw-btn:hover {
  background: var(--jw-terracotta-dark);
  color: #fff;
}

.jw-site .jw-btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.jw-site .jw-btn-ghost {
  background: transparent;
  color: var(--jw-navy);
  border: 1.5px solid var(--jw-navy);
}

.jw-site .jw-btn-ghost:hover {
  background: var(--jw-navy);
  color: #fff;
}

/* Nav */
.jw-site .jw-nav {
  background: var(--jw-white);
  border-bottom: 1px solid var(--jw-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.jw-site .jw-nav .jw-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.jw-site .jw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.jw-site .jw-brand img {
  max-height: 60px;
  width: auto;
}

.jw-site .jw-brand span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  color: var(--jw-navy);
  white-space: nowrap;
}

.jw-site .jw-menu {
  display: flex;
  gap: 22px;
  font-size: 15px;
  white-space: nowrap;
  list-style: none;
}

.jw-site .jw-menu li {
  position: relative;
}

.jw-site .jw-menu > li {
  padding: 26px 0;
}

.jw-site .jw-menu a {
  text-decoration: none;
  color: var(--jw-muted);
}

.jw-site .jw-menu a:hover {
  color: var(--jw-navy);
}

.jw-site .jw-menu > .current-menu-item > a {
  color: var(--jw-navy);
  font-weight: 600;
  border-bottom: 2px solid var(--jw-terracotta);
  padding-bottom: 4px;
}

.jw-site .jw-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  list-style: none;
  background: var(--jw-white);
  border: 1px solid var(--jw-line);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(31, 50, 96, .12);
  z-index: 30;
}

.jw-site .jw-menu .sub-menu .sub-menu {
  top: -9px;
  left: 100%;
}

.jw-site .jw-menu li:hover > .sub-menu,
.jw-site .jw-menu li:focus-within > .sub-menu {
  display: block;
}

.jw-site .jw-menu .sub-menu a {
  display: block;
  padding: 8px 16px;
}

.jw-site .jw-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.jw-site .jw-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--jw-navy);
}

/* Hero */
.jw-site .jw-hero {
  background: var(--jw-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.jw-site .jw-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(168, 192, 232, .45), rgba(168, 192, 232, .08) 70%);
  pointer-events: none;
}

.jw-site .jw-hero .jw-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.jw-site .jw-hero .jw-wrap.no-media {
  grid-template-columns: 1fr;
}

.jw-site .jw-hero-kicker {
  color: var(--jw-peri);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.jw-site .jw-hero h1 {
  color: #fff;
  font-size: clamp(40px, 5.2vw, 60px);
  font-weight: 300;
  letter-spacing: -.5px;
  margin-bottom: 22px;
  max-width: 14ch;
}

.jw-site .jw-hero p {
  color: #DCE5F4;
  font-size: 18px;
  margin-bottom: 28px;
}

.jw-site .jw-hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.jw-site .jw-hero-ctas .jw-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}

.jw-site .jw-hero-ctas .jw-btn-ghost:hover {
  background: #fff;
  color: var(--jw-navy);
}

.jw-site .jw-photo {
  display: block;
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.jw-site .jw-hero .jw-photo {
  aspect-ratio: 4 / 5;
  object-position: 34% 50%;
}

/* Highlights */
.jw-site .jw-highlights {
  padding: 64px 0;
}

.jw-site .jw-hl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--jw-white);
  border: 1px solid var(--jw-line);
  border-radius: 20px;
  overflow: hidden;
}

.jw-site .jw-hl {
  padding: 32px 30px;
  border-right: 1px solid var(--jw-line);
}

.jw-site .jw-hl:last-child {
  border-right: none;
}

.jw-site .jw-hl-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 52px;
  line-height: 1;
  color: var(--jw-terracotta);
  font-weight: 400;
  margin-bottom: 12px;
}

.jw-site .jw-hl-text {
  font-size: 16px;
  color: var(--jw-text);
}

/* Sections */
.jw-site section.jw-block {
  padding: 88px 0;
}

.jw-site .jw-block-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.jw-site .jw-block-head h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 300;
  margin-bottom: 18px;
}

.jw-site .jw-block-head p + p {
  margin-top: 16px;
}

.jw-site .jw-tint-apricot {
  background: var(--jw-apricot);
}

/* Services grid */
.jw-site .jw-svc-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.jw-site .jw-svc-card {
  display: block;
  flex: 1 1 180px;
  max-width: 220px;
  background: var(--jw-white);
  border: 1px solid var(--jw-line);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}

.jw-site .jw-svc-card:hover {
  border-color: var(--jw-navy);
}

.jw-site .jw-svc-icon {
  width: 44px;
  height: 44px;
  background: var(--jw-peri-soft);
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jw-site .jw-svc-icon img {
  width: 19px;
  height: 19px;
}

.jw-site .jw-svc-name {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  color: var(--jw-navy);
  margin-bottom: 4px;
}

.jw-site .jw-svc-sub {
  display: block;
  font-size: 13px;
  color: var(--jw-muted);
}

/* Doctor bio */
.jw-site .jw-dr-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 44px;
  align-items: center;
}

.jw-site .jw-dr-section.no-media {
  grid-template-columns: 1fr;
}

.jw-site .jw-dr-section .jw-photo {
  aspect-ratio: 3 / 4;
}

.jw-site .jw-dr-content p + p {
  margin-top: 16px;
}

.jw-site .jw-dr-content p + .jw-btn {
  margin-top: 24px;
}

.jw-site .jw-dr-content ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
}

.jw-site .jw-dr-content li {
  background: var(--jw-peri-soft);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--jw-text);
}

.jw-site .jw-dr-content li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jw-terracotta);
  flex-shrink: 0;
}

/* CTA */
.jw-site .jw-cta {
  background: var(--jw-apricot);
  padding: 88px 0;
  text-align: center;
}

.jw-site .jw-cta h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 300;
  margin-bottom: 14px;
}

.jw-site .jw-cta p {
  margin: 0 auto 28px;
  font-size: 18px;
}

.jw-site .jw-cta p:last-child {
  margin-bottom: 0;
}

.jw-site .jw-cta .jw-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
.jw-site .jw-footer {
  background: var(--jw-navy-deep);
  color: #DCE5F4;
  padding: 56px 0 28px;
  font-size: 15px;
}

.jw-site .jw-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(168, 192, 232, .3);
}

.jw-site .jw-footer-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}

.jw-site .jw-footer h4 {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--jw-peri);
  margin-bottom: 12px;
}

.jw-site .jw-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.jw-site .jw-footer a {
  color: #DCE5F4;
  text-decoration: none;
}

.jw-site .jw-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.jw-site .jw-footer .social-icons {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  font-size: 18px;
}

.jw-site .jw-footer-bottom {
  padding-top: 22px;
  display: grid;
  gap: 12px;
  font-size: 13px;
  color: #B8C6E0;
}

.jw-site .jw-footer-bottom p {
  max-width: none;
}

.jw-site .jw-footer-bottom .bottom-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Inner page title (parent page.php) */
.jw-site section.page-header {
  background: var(--jw-navy);
  padding: 56px 0;
  margin-bottom: 40px;
}

.jw-site section.page-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

.jw-site .jw-brand img + span {
  display: none;
}

/* Responsive */
@media (max-width: 980px) {
  .jw-site .jw-nav .jw-wrap {
    justify-content: flex-start;
    gap: 12px;
  }

  .jw-site .jw-nav .jw-btn-sm {
    margin-left: auto;
  }

  .jw-site .jw-menu-toggle {
    display: flex;
  }

  .jw-site .jw-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background: var(--jw-white);
    border-bottom: 1px solid var(--jw-line);
    padding: 8px 28px 20px;
  }

  .jw-site.jw-menu-open .jw-nav-links {
    display: block;
  }

  .jw-site .jw-menu {
    flex-direction: column;
    gap: 0;
    white-space: normal;
  }

  .jw-site .jw-menu > li {
    padding: 0;
  }

  .jw-site .jw-menu a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  .jw-site .jw-menu > .current-menu-item > a {
    border-bottom: 0;
    padding-bottom: 10px;
  }

  .jw-site .jw-menu .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
  }

  .jw-site .jw-menu .sub-menu a {
    padding: 8px 0;
  }
}

@media (max-width: 900px) {
  .jw-site .jw-hero .jw-wrap,
  .jw-site .jw-dr-section,
  .jw-site .jw-footer-top {
    grid-template-columns: 1fr;
  }

  .jw-site .jw-hero .jw-photo {
    aspect-ratio: 16 / 10;
  }

  .jw-site .jw-hl-grid {
    grid-template-columns: 1fr;
  }

  .jw-site .jw-hl {
    border-right: none;
    border-bottom: 1px solid var(--jw-line);
  }

  .jw-site .jw-hl:last-child {
    border-bottom: none;
  }

  .jw-site .jw-svc-grid {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  body.jw-site {
    font-size: 16px;
  }

  .jw-site .jw-wrap {
    padding: 0 20px;
  }

  .jw-site .jw-nav-links {
    padding: 8px 20px 20px;
  }

  .jw-site section.jw-block,
  .jw-site .jw-hero .jw-wrap,
  .jw-site .jw-cta,
  .jw-site .jw-highlights {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .jw-site .jw-svc-grid {
    max-width: 340px;
  }

  .jw-site .jw-svc-card {
    flex-basis: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jw-site * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

html .menu-item-has-children > a:after {
    right: -10px;
    font-size: 12px;
    top: 29px;
}