/*
Theme Name: Hompath Modern
Theme URI: https://hompath.co.za/
Description: A modern, accessible child theme for Dr Hannah Norton's Hompath practice.
Author: Datora
Template: healthy-smiles
Version: 1.1.8
Text Domain: hompath-modern
*/

:root {
  --hm-plum: #60206f;
  --hm-plum-dark: #3f164b;
  --hm-sage: #5f8974;
  --hm-sage-light: #e7f0eb;
  --hm-ink: #26332d;
  --hm-muted: #65736c;
  --hm-cream: #fbf8f3;
  --hm-white: #fff;
  --hm-gold: #c99748;
  --hm-shadow: 0 20px 50px rgba(38, 51, 45, .11);
  --hm-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--hm-ink); background: var(--hm-white); font-family: "Inter", "Segoe UI", Arial, sans-serif; line-height: 1.7; }
a { color: var(--hm-plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.hm-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hm-skip { position: fixed; left: 12px; top: -80px; z-index: 9999; padding: 10px 16px; background: #fff; color: #000; }
.hm-skip:focus { top: 12px; }

.hm-topbar { background: var(--hm-plum-dark); color: #fff; font-size: .9rem; }
.hm-topbar .hm-wrap { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hm-topbar a { color: #fff; text-decoration: none; }
.hm-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); box-shadow: 0 3px 20px rgba(41,35,45,.08); backdrop-filter: blur(10px); }
.hm-navrow { width: min(1480px, calc(100% - 40px)); min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hm-brand { display: flex; align-items: center; gap: 12px; color: var(--hm-plum-dark); text-decoration: none; }
.hm-logo { display: block; width: min(360px, 30vw); max-height: 70px; object-fit: contain; object-position: left center; }
.hm-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,var(--hm-plum),#8d4a98); font-family: Georgia,serif; font-weight: 700; box-shadow: 0 8px 22px rgba(96,32,111,.25); }
.hm-brand-copy strong { display: block; font: 700 1.2rem/1.15 Georgia,serif; }
.hm-brand-copy span { display: block; color: var(--hm-muted); font-size: .73rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.hm-menu { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.hm-menu a { color: var(--hm-ink); font-size: .91rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.hm-menu a:hover, .hm-menu .current-menu-item > a { color: var(--hm-plum); }
.hm-menu > li { position: relative; }
.hm-menu .sub-menu { position: absolute; left: -18px; top: calc(100% + 12px); z-index: 20; display: none; width: max-content; min-width: 250px; margin: 0; padding: 10px; list-style: none; border: 1px solid rgba(95,137,116,.16); border-radius: 14px; background: #fff; box-shadow: var(--hm-shadow); }
.hm-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.hm-menu .sub-menu li { margin: 0; }
.hm-menu .sub-menu a { display: block; padding: 9px 11px; border-radius: 9px; }
.hm-menu .sub-menu a:hover, .hm-menu .sub-menu .current-menu-item > a { background: var(--hm-sage-light); }
.hm-menu > li:hover > .sub-menu, .hm-menu > li:focus-within > .sub-menu { display: block; }
.hm-menu .menu-item-has-children > a::after { content: "\25BE"; margin-left: 6px; color: var(--hm-sage); font-size: .72em; }
.hm-menu-toggle { display: none; border: 0; border-radius: 10px; padding: 10px 12px; color: #fff !important; background: var(--hm-plum) !important; font-weight: 700; }
.hm-header button.hm-menu-toggle { color: #fff !important; background-color: var(--hm-plum) !important; border-color: var(--hm-plum) !important; }

.hm-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; color: #fff; background: var(--hm-plum); font-weight: 750; text-decoration: none; box-shadow: 0 10px 24px rgba(96,32,111,.2); transition: transform .2s, box-shadow .2s; }
.hm-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(96,32,111,.27); }
.hm-button--light { color: var(--hm-plum-dark); background: #fff; box-shadow: none; }
.hm-button--outline { color: var(--hm-plum); background: transparent; border: 1px solid rgba(96,32,111,.32); box-shadow: none; }
.hm-button--nav { white-space: nowrap; }

.hm-hero { position: relative; overflow: hidden; min-height: 650px; display: grid; align-items: center; background: var(--hm-cream); }
.hm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(251,248,243,.98) 0%,rgba(251,248,243,.93) 43%,rgba(251,248,243,.24) 72%); }
.hm-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hm-hero .hm-wrap { position: relative; z-index: 1; }
.hm-hero-copy { max-width: 690px; padding: 82px 0; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--hm-sage); font-weight: 800; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; }
.hm-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--hm-gold); }
h1, h2, h3 { color: var(--hm-plum-dark); font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
.hm-hero h1 { margin: 0 0 20px; font-size: clamp(2.7rem, 6vw, 5.4rem); letter-spacing: -.04em; }
.hm-hero p { max-width: 610px; margin: 0 0 30px; font-size: clamp(1.05rem, 2vw, 1.27rem); color: #46564e; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-trustline { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--hm-muted); font-size: .9rem; }
.hm-trustline span::before { content: "✓"; margin-right: 7px; color: var(--hm-sage); font-weight: 900; }

.hm-personal-hero { position: relative; overflow: hidden; padding: 58px 0 68px; background: linear-gradient(125deg,#eef5f0 0%,#f7f0fa 58%,#edf7f6 100%); }
.hm-personal-hero::before { content: ""; position: absolute; width: 330px; height: 330px; right: -95px; top: -120px; border-radius: 50%; background: rgba(95,205,211,.19); }
.hm-personal-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.92fr); align-items: center; gap: 64px; }
.hm-personal-copy h1 { max-width: 690px; margin: 4px 0 20px; color: var(--hm-ink); font-family: "Manrope","Inter","Segoe UI",Arial,sans-serif; font-size: clamp(3.1rem,5.7vw,5.5rem); font-weight: 400; line-height: .95; letter-spacing: -.055em; }
.hm-personal-copy h1 span { display: block; }
.hm-personal-copy h1 em { display: block; color: var(--hm-plum); font-weight: 400; }
.hm-personal-copy > p { max-width: 620px; margin: 0 0 28px; color: #46564e; font-size: 1.15rem; }
.hm-personal-visual { position: relative; max-width: 570px; justify-self: end; }
.hm-personal-visual::before { content: ""; position: absolute; inset: 24px -22px -22px 30px; border-radius: 48% 48% 26px 26px; background: linear-gradient(145deg,rgba(95,205,211,.72),rgba(96,32,111,.34)); }
.hm-personal-visual img { position: relative; z-index: 1; display: block; width: 100%; max-height: 620px; object-fit: cover; object-position: center 24%; border-radius: 48% 48% 26px 26px; box-shadow: 0 22px 55px rgba(42,36,46,.18); }
.hm-personal-note { position: absolute; z-index: 2; right: -18px; bottom: 24px; max-width: 250px; padding: 15px 18px; border-radius: 16px; color: var(--hm-plum-dark); background: rgba(255,255,255,.94); box-shadow: var(--hm-shadow); font-family: Georgia,"Times New Roman",serif; font-size: 1.08rem; font-style: italic; line-height: 1.35; }
.hm-personal-note strong { display: block; margin-top: 2px; color: var(--hm-sage); font-family: Arial,sans-serif; font-size: .73rem; font-style: normal; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }

.hm-section { padding: 88px 0; }
.hm-section--soft { background: var(--hm-cream); }
.hm-section--sage { background: var(--hm-sage-light); }
.hm-section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.hm-section-head h2 { margin: 5px 0 14px; font-size: clamp(2rem,4vw,3.4rem); }
.hm-section-head p { margin: 0; color: var(--hm-muted); }
.hm-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.hm-card { padding: 30px; border: 1px solid rgba(95,137,116,.17); border-radius: var(--hm-radius); background: #fff; box-shadow: var(--hm-shadow); }
.hm-card h3 { margin: 14px 0 10px; font-size: 1.45rem; }
.hm-card p { margin: 0 0 16px; color: var(--hm-muted); }
.hm-card-link { font-weight: 800; text-decoration: none; }
.hm-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--hm-plum); background: #f4eaf6; font-size: 1.35rem; }
.hm-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 62px; align-items: center; }
.hm-portrait { position: relative; max-width: 420px; margin: auto; }
.hm-portrait img { width: 100%; border-radius: 42% 42% 24px 24px; box-shadow: var(--hm-shadow); }
.hm-portrait::before { content: ""; position: absolute; inset: -18px 24px 24px -18px; z-index: -1; border: 2px solid rgba(96,32,111,.18); border-radius: 42% 42% 28px 28px; }
.hm-copy h2 { margin: 0 0 18px; font-size: clamp(2.1rem,4vw,3.5rem); }
.hm-copy p { color: var(--hm-muted); }
.hm-badges { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 24px 0 30px; }
.hm-badge { padding: 14px 16px; border-radius: 14px; background: var(--hm-sage-light); font-size: .89rem; font-weight: 700; }

.hm-page-hero { position: relative; overflow: hidden; padding: 92px 0 82px; background: linear-gradient(130deg,var(--hm-cream),var(--hm-sage-light)); }
.hm-page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -100px; top: -180px; background: rgba(96,32,111,.08); }
.hm-page-hero h1 { max-width: 850px; margin: 8px 0 14px; font-size: clamp(2.5rem,5vw,4.7rem); }
.hm-page-hero p { max-width: 720px; margin: 0; color: var(--hm-muted); font-size: 1.15rem; }
.hm-page { padding: 72px 0 92px; }
.hm-prose { max-width: 900px; margin: auto; font-size: 1.04rem; }
.hm-prose h2 { margin: 2.3em 0 .7em; font-size: clamp(1.8rem,3vw,2.6rem); }
.hm-prose h3 { margin: 1.7em 0 .55em; font-size: 1.35rem; }
.hm-prose p { margin: 0 0 1.2em; }
.hm-prose ul { padding-left: 1.25rem; }
.hm-prose li { margin: .45em 0; }
.hm-prose a { color: var(--hm-plum); }
.hm-page-image { float: right; width: min(360px,42%); margin: 4px 0 30px 42px; }
.hm-page-image img { display: block; width: 100%; max-height: 430px; object-fit: cover; border-radius: 24px; box-shadow: var(--hm-shadow); }
.hm-note { margin: 30px 0; padding: 24px 28px; border-left: 4px solid var(--hm-gold); border-radius: 0 16px 16px 0; background: var(--hm-cream); }
.hm-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 26px 0; }
.hm-contact-card { padding: 24px; border-radius: 18px; background: var(--hm-sage-light); }
.hm-contact-card strong { display: block; color: var(--hm-plum-dark); }
.hm-contact-footer { padding: 82px 0 72px; color: rgba(255,255,255,.82); background: var(--hm-plum-dark); }
.hm-contact-footer-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr); gap: clamp(54px,8vw,120px); align-items: start; }
.hm-contact-kicker { display: block; margin-bottom: 24px; color: #66e4e0; font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hm-contact-pitch h2 { max-width: 650px; margin: 0 0 24px; color: #fff; font-family: "Manrope","Inter","Segoe UI",Arial,sans-serif; font-size: clamp(2.8rem,5.4vw,5rem); font-weight: 400; line-height: .95; letter-spacing: -.055em; }
.hm-contact-pitch > p { max-width: 620px; margin: 0 0 30px; font-size: 1.08rem; }
.hm-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hm-contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 0 24px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; color: #fff !important; font-weight: 800; text-decoration: none !important; transition: transform .2s,background .2s,color .2s; }
.hm-contact-button:hover { transform: translateY(-2px); }
.hm-contact-button--light { color: var(--hm-plum-dark) !important; background: #fff; border-color: #fff; }
.hm-contact-button--outline { background: transparent; }
.hm-contact-email { display: inline-flex; gap: 12px; color: #fff !important; font-size: 1.22rem; text-underline-offset: 7px; }
.hm-practice-details { border-top: 1px solid rgba(255,255,255,.16); }
.hm-practice-details section { padding: 25px 0 23px; border-bottom: 1px solid rgba(255,255,255,.16); }
.hm-practice-details h3 { margin: 0 0 9px; color: #66e4e0; font-family: "Manrope","Inter","Segoe UI",Arial,sans-serif; font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hm-practice-details p { margin: 0; line-height: 1.65; }

.hm-quick-actions { position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; }
.hm-quick-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 19px; border-radius: 999px; color: #fff !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 12px 28px rgba(30,39,34,.22); transition: transform .2s, box-shadow .2s; }
.hm-quick-action:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30,39,34,.28); }
.hm-quick-action--whatsapp { background: #168c58; }
.hm-quick-action--call { background: var(--hm-plum); }

.hm-footer { padding: 28px 0 25px; color: rgba(255,255,255,.7); background: #26172a; }
.hm-footer-line { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.hm-footer-line strong { color: #fff; }
.hm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.hm-footer h3 { margin: 0 0 14px; color: #fff; font: 700 1rem/1.3 "Inter","Segoe UI",sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.hm-footer-logo {
  display: block;
  width: min(430px, 100%);
  height: auto;
  box-sizing: border-box;
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.hm-footer a { color: #fff; }
.hm-footer ul { margin: 0; padding: 0; list-style: none; }
.hm-footer li { margin: 7px 0; }
.hm-legal { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

@media (max-width: 960px) {
  .hm-menu-toggle { display: block; }
  .hm-navigation { display: none; position: absolute; left: 0; right: 0; top: 120px; padding: 18px 24px 26px; background: #fff; box-shadow: var(--hm-shadow); }
  .hm-navigation.is-open { display: block; }
  .hm-menu { display: block; }
  .hm-menu li { padding: 9px 0; }
  .hm-menu .sub-menu { position: static; display: block; width: auto; min-width: 0; margin: 7px 0 0 14px; padding: 2px 0 2px 16px; border: 0; border-left: 2px solid var(--hm-sage-light); border-radius: 0; box-shadow: none; }
  .hm-menu .sub-menu li { padding: 4px 0; }
  .hm-menu .sub-menu a { padding: 4px 8px; font-size: .86rem; }
  .hm-header .hm-button--nav { display: none; }
  .hm-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hm-split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .hm-wrap { width: min(100% - 28px,1160px); }
  .hm-topbar .hm-wrap { min-height: 32px; justify-content: center; font-size: .8rem; }
  .hm-topbar span:last-child { display: none; }
  .hm-brand-copy span { display: none; }
  .hm-navrow { min-height: 70px; gap: 12px; }
  .hm-logo { width: 205px; max-height: 48px; }
  .hm-menu-toggle { padding: 8px 10px; font-size: .9rem; }
  .hm-navigation { top: 102px; }
  .hm-page-image { float: none; width: 100%; max-width: 420px; margin: 0 auto 28px; }
  .hm-hero { min-height: 0; }
  .hm-hero::after { background: rgba(251,248,243,.93); }
  .hm-hero-copy { max-width: none; padding: 38px 0 34px; }
  .hm-hero .hm-eyebrow { margin-bottom: 12px; font-size: .72rem; line-height: 1.45; }
  .hm-hero h1 { margin-bottom: 14px; font-size: clamp(2.55rem,12vw,3.35rem); line-height: 1.02; }
  .hm-hero p { margin-bottom: 22px; font-size: 1rem; line-height: 1.5; }
  .hm-hero .hm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .hm-hero .hm-button { min-height: 46px; padding: 0 8px; font-size: .88rem; white-space: nowrap; }
  .hm-hero .hm-trustline { display: flex; gap: 7px 14px; margin-top: 18px; font-size: .78rem; }
  .hm-hero .hm-trustline span { margin: 0; }
  .hm-personal-hero { padding: 14px 0 24px; }
  .hm-personal-hero::before { width: 190px; height: 190px; right: -70px; top: -80px; }
  .hm-personal-grid { grid-template-columns: 1fr; gap: 14px; }
  .hm-personal-visual { order: -1; width: min(100%,362px); max-width: none; justify-self: center; }
  .hm-personal-visual::before { inset: 14px -7px -10px 18px; border-radius: 48% 48% 24px 24px / 26% 26% 24px 24px; }
  .hm-personal-visual img { width: 100%; height: 250px; object-position: center 35%; border-radius: 48% 48% 24px 24px / 26% 26% 24px 24px; }
  .hm-personal-note { right: 7px; bottom: 10px; width: 190px; max-width: 56%; padding: 9px 12px; border-radius: 12px; font-size: .78rem; }
  .hm-personal-note strong { margin-top: 1px; font-size: .62rem; }
  .hm-personal-copy .hm-eyebrow { margin-bottom: 9px; font-size: .69rem; }
  .hm-personal-copy h1 { margin: 2px 0 11px; font-size: clamp(2.25rem,9.8vw,2.85rem); line-height: 1.02; }
  .hm-personal-copy > p { margin-bottom: 17px; font-size: .92rem; line-height: 1.4; }
  .hm-personal-copy .hm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .hm-personal-copy .hm-button { min-height: 46px; padding: 0 8px; font-size: .88rem; white-space: nowrap; }
  .hm-personal-copy .hm-trustline { display: flex; gap: 7px 14px; margin-top: 17px; font-size: .78rem; }
  .hm-personal-copy .hm-trustline span { margin: 0; }
  .hm-personal-hero .hm-trustline { display: none; }
  .hm-page-hero { padding: 36px 0 32px; }
  .hm-page-hero::after { width: 180px; height: 180px; right: -60px; top: -90px; }
  .hm-page-hero .hm-eyebrow { margin-bottom: 8px; font-size: .72rem; }
  .hm-page-hero h1 { margin: 4px 0 10px; font-size: clamp(2.15rem,11vw,3rem); line-height: 1.05; }
  .hm-page-hero p { font-size: 1rem; line-height: 1.5; }
  .hm-page { padding: 30px 0 60px; }
  .hm-prose .hm-split { gap: 26px; }
  .hm-prose .hm-portrait { width: min(100%,320px); margin-inline: auto; }
  .hm-section { padding: 64px 0; }
  .hm-grid, .hm-badges, .hm-contact-grid, .hm-footer-grid { grid-template-columns: 1fr; }
  .hm-contact-footer { padding: 62px 0 52px; }
  .hm-contact-footer-grid { grid-template-columns: 1fr; gap: 46px; }
  .hm-contact-pitch h2 { font-size: clamp(2.75rem,13vw,4rem); }
  .hm-contact-actions { display: grid; grid-template-columns: 1fr; }
  .hm-contact-button { width: 100%; }
  .hm-contact-email { font-size: 1rem; }
  .hm-footer-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hm-trustline { display: block; }
  .hm-trustline span { display: block; margin: 7px 0; }
  .hm-quick-actions { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 8px; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -8px 25px rgba(38,51,45,.14); backdrop-filter: blur(10px); }
  .hm-quick-action { flex: 1; min-height: 48px; padding: 0 10px; border-radius: 13px; font-size: .93rem; }
}

