/* PureMed inner pages: video banner, blog/post layout, and restyling of existing Elementor
   and custom-HTML page content into the PureMed fonts and colours (#594255 accent). */

body.pm-site { background: var(--pm-ivory); overflow-x: hidden; }
body.pm-site .pm-main { display: block; }

/* ---------- Page banner (video) ---------- */
body .pm-banner { position: relative; min-height: clamp(420px, 62vh, 620px); display: flex; align-items: flex-end; color: var(--pm-white); background: var(--pm-night); overflow: hidden; font-family: var(--pm-f-body); }
body .pm-banner__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body .pm-banner__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 19, .55) 0%, rgba(89, 66, 85, .35) 45%, rgba(20, 16, 19, .82) 100%); }
body .pm-banner__in { position: relative; width: 100%; max-width: var(--pm-wrap); margin: 0 auto; padding: 150px var(--pm-gut) clamp(48px, 7vw, 84px); }
body .pm-banner__crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; list-style: none; margin: 0 0 22px; padding: 0; font: 600 .74rem/1 var(--pm-f-body); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
body .pm-banner__crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--pm-accent-soft); }
body .pm-banner__crumbs a { color: var(--pm-white); text-decoration: none; }
body .pm-banner__crumbs a:hover { color: var(--pm-accent-soft); }
body .pm-banner__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 600 .76rem/1 var(--pm-f-body); letter-spacing: .28em; text-transform: uppercase; color: var(--pm-accent-soft); }
body .pm-banner__eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
body .pm-banner__title { margin: 0; max-width: 22ch; font: 400 clamp(2.1rem, 1.4rem + 2.4vw, 3.5rem)/1.12 "Saira", var(--pm-f-body); letter-spacing: .005em; color: var(--pm-white); }
body .pm-banner__title em { font-style: italic; font-weight: 300; color: var(--pm-accent-soft); }
body .pm-banner__sub { max-width: 40em; margin: 22px 0 0; color: rgba(255, 255, 255, .85); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.7; }
body .pm-banner__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
body .pm-banner .btn { display: inline-flex; align-items: center; padding: 16px 30px 14px; border-radius: 2px; border: 1px solid transparent; font: 600 .78rem/1 var(--pm-f-body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: background .35s var(--pm-ease), color .35s var(--pm-ease); }
body .pm-banner .btn--gold, body .pm-banner .btn--gold:hover { background: var(--pm-accent); color: var(--pm-white); }
body .pm-banner .btn--gold:hover { background: var(--pm-accent-hover); }
body .pm-banner .btn--line { border-color: rgba(255, 255, 255, .7); color: var(--pm-white); background: transparent; }
body .pm-banner .btn--line:hover { background: var(--pm-white); color: var(--pm-night); }

/* Elementor title strip replaced by the banner on these pages */
body.pm-hide-first [data-elementor-type="wp-page"] > :first-child { display: none !important; }

/* ---------- Elementor content: PureMed fonts + colours ---------- */
body.pm-site {
  --e-global-color-primary: #171717;
  --e-global-color-secondary: #594255;
  --e-global-color-accent: #594255;
  --e-global-color-text: #3A3437;
  --e-global-typography-primary-font-family: "Cormorant Garamond";
  --e-global-typography-secondary-font-family: "Josefin Sans";
  --e-global-typography-text-font-family: "Josefin Sans";
  --e-global-typography-accent-font-family: "Josefin Sans";
}
body.pm-site .pm-main .elementor :is(h1, h2, h3, h4, h5, h6),
body.pm-site .pm-main .elementor .elementor-heading-title { font-family: var(--pm-f-display) !important; font-weight: 500 !important; letter-spacing: -.005em; }
body.pm-site .pm-main .elementor :is(h1, h2) { line-height: 1.1 !important; }
body.pm-site .pm-main .elementor :where(p, li, a, td, th, label, input, select, textarea, button, blockquote, figcaption, small, strong, b, em, dd, dt, summary, span:not([class*="icon"]):not([class*="fa-"]):not([class^="e-"])) { font-family: var(--pm-f-body) !important; }
/* Custom-HTML blocks (prices cards etc.): all text in Josefin Sans, icons untouched */
body.pm-site .pm-main .elementor-widget-html :where(*:not(i):not(svg):not(svg *):not([class*="icon"]):not([class*="fa-"])) { font-family: var(--pm-f-body) !important; }
/* Words inside headings (e.g. <strong>) keep the heading font */
body.pm-site .pm-main .elementor :is(h1, h2, h3, h4, h5, h6) * { font-family: inherit !important; }
body.pm-site .pm-main .elementor .elementor-button { font-family: var(--pm-f-body) !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; background-color: var(--pm-accent); }
body.pm-site .pm-main .elementor .elementor-button:hover { background-color: var(--pm-accent-hover); color: #fff; }

/* Custom-HTML treatment pages (.puremed-botox, .puremed-braces, …): swap their purple palette */
body.pm-site .pm-main [class^="puremed-"], body.pm-site .pm-main [class*=" puremed-"] {
  --purple: #594255;
  --light: #F7F3EE;
  --border: #E6DDD4;
  --text: #3A3437;
}
body.pm-site .pm-main [class^="puremed-"] .pm-btn { border-radius: 2px; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; font-weight: 600; padding: 16px 28px 14px; }
body.pm-site .pm-main [class^="puremed-"] .pm-hero { border-radius: 4px; }
/* Their floating "WhatsApp" pill duplicates the site-wide chat bubble */
body.pm-site .pm-main a[class*="puremed-"][class$="-wa"] { display: none !important; }

/* Book Appointment page (custom HTML): palette + hide its duplicate in-page header */
body.pm-site.page-id-1677 {
  --purple: #594255;
  --purple-light: #6F5569;
  --lilac: #D9C2D1;
  --lilac-soft: #F3ECF1;
  --dark: #141013;
  --dark-soft: #3A2F37;
}
body.pm-site.page-id-1677 .pm-main :has(> .header-inner) { display: none !important; }
body.pm-site.page-id-1677 .pm-main .brand-mark-hero { display: none !important; }
body.pm-site.page-id-1677 .pm-main .hero { background: radial-gradient(circle at 15% 20%, rgba(89, 66, 85, .6), transparent 55%), radial-gradient(circle at 85% 75%, rgba(217, 194, 209, .16), transparent 50%), linear-gradient(160deg, #141013 0%, #3A2F37 60%, #594255 140%) !important; }
body.pm-site.page-id-1677 .pm-main .btn { border-radius: 2px; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }

/* Prices page (custom HTML, .kd-*) palette */
body.pm-site.page-id-1577 {
  --purple: #594255;
  --purple-mid: #6F5569;
  --purple-light: #F3ECF1;
  --purple-pale: #FBF8F5;
  --ink: #171717;
  --ink-soft: #3A3437;
  --line: #E6DDD4;
  --bg: #F7F3EE;
}

/* ---------- Blog, posts, search, 404 ---------- */
body .pm-prose { max-width: 780px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--pm-gut); font: 400 1.1rem/1.8 var(--pm-f-body); color: var(--pm-text); }
body .pm-prose > * + * { margin-top: 1.15em; }
body .pm-prose :is(h2, h3, h4) { font-family: var(--pm-f-display); font-weight: 500; color: var(--pm-ink); line-height: 1.15; margin-top: 1.8em; }
body .pm-prose h2 { font-size: 2.2rem; }
body .pm-prose h3 { font-size: 1.7rem; }
body .pm-prose a { color: var(--pm-accent); text-decoration: underline; text-underline-offset: 3px; }
body .pm-prose img { border-radius: 14px; height: auto; }
body .pm-prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--pm-accent); font: italic 400 1.5rem/1.45 var(--pm-f-display); color: var(--pm-ink); }
body .pm-prose .pm-post-meta { font: 600 .74rem/1 var(--pm-f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--pm-muted); }
body .pm-prose .pm-post-cta { margin-top: 3em; padding: 32px; background: var(--pm-white); border: 1px solid var(--pm-line); border-radius: 14px; text-align: center; }
body .pm-prose .pm-post-cta p { margin: 0 0 18px; font: 400 1.6rem/1.2 var(--pm-f-display); color: var(--pm-ink); }
body .pm-prose .pm-post-cta a { display: inline-block; padding: 16px 30px 14px; background: var(--pm-accent); color: #fff; text-decoration: none; font: 600 .78rem/1 var(--pm-f-body); letter-spacing: .18em; text-transform: uppercase; border-radius: 2px; }

body .pm-posts { max-width: var(--pm-wrap); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--pm-gut); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
body .pm-post-card { display: flex; flex-direction: column; background: var(--pm-white); border: 1px solid var(--pm-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--pm-text); transition: transform .5s var(--pm-ease), box-shadow .5s var(--pm-ease); font-family: var(--pm-f-body); }
body .pm-post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(58, 42, 49, .45); color: var(--pm-text); }
body .pm-post-card__img { aspect-ratio: 16 / 10; background: #E9E1DA center / cover no-repeat; }
body .pm-post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
body .pm-post-card__body time { font: 600 .7rem/1 var(--pm-f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--pm-accent); }
body .pm-post-card__body h2 { margin: 0; font: 500 1.6rem/1.15 var(--pm-f-display); color: var(--pm-ink); }
body .pm-post-card__body p { margin: 0; color: var(--pm-muted); font-size: .98rem; line-height: 1.6; }
body .pm-pagination { max-width: var(--pm-wrap); margin: 0 auto; padding: 0 var(--pm-gut) 80px; display: flex; gap: 8px; justify-content: center; font-family: var(--pm-f-body); }
body .pm-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--pm-line); border-radius: 2px; color: var(--pm-ink); text-decoration: none; }
body .pm-pagination .page-numbers.current, body .pm-pagination .page-numbers:hover { background: var(--pm-accent); border-color: var(--pm-accent); color: #fff; }
body .pm-empty { max-width: 640px; margin: 0 auto; padding: 96px var(--pm-gut); text-align: center; font: 400 1.1rem/1.7 var(--pm-f-body); }
body .pm-empty a { display: inline-block; margin-top: 24px; padding: 16px 30px 14px; background: var(--pm-accent); color: #fff; text-decoration: none; font: 600 .78rem/1 var(--pm-f-body); letter-spacing: .18em; text-transform: uppercase; }

@media (max-width: 960px) {
  body .pm-posts { grid-template-columns: 1fr 1fr; }
  body .pm-banner__in { padding-top: 130px; }
}
@media (max-width: 640px) {
  body .pm-posts { grid-template-columns: 1fr; }
  body .pm-banner { min-height: 440px; }
  body .pm-banner__btns .btn { flex: 1 1 100%; justify-content: center; }
}
