/*
 * Mothercraft Care: "Practice" theme.
 * A calm, professional allied-health look built around purple (Leanne's favourite colour):
 * deep aubergine for the brand and actions, lavender tints for quiet backgrounds, warm near-black
 * text, and a muted sage used only to signal "available".
 */

:root {
  --plum-950: #1f1230;
  --plum-900: #2b1844;
  --plum-800: #3a2160;
  --plum-700: #4f2d7f;   /* brand, buttons, links: 9.9:1 on white */
  --plum-600: #6440a0;
  --plum-500: #7e5cb8;
  --lav-300: #cdbbe8;
  --lav-200: #ddd0f0;
  --lav-100: #ece4f7;
  --lav-50:  #f7f3fc;

  --ink: #251e2e;        /* body text: 15:1 on white */
  --ink-soft: #4d4459;   /* secondary text: 8.6:1 */
  --muted: #6b6178;      /* small print: 5.6:1 */
  --line: #e6dfee;
  --surface: #ffffff;
  --page: #fcfbfe;

  --sage-700: #3f6b4c;
  --sage-500: #5e9a6e;
  --sage-100: #e5f1e8;

  --notice: #8c2d5a;     /* replaces the old site's bright red notes */
  --notice-bg: #fbeef4;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(43, 24, 68, .06), 0 2px 8px rgba(43, 24, 68, .05);
  --shadow: 0 2px 4px rgba(43, 24, 68, .05), 0 12px 32px rgba(43, 24, 68, .09);
  /* Colours with a single job, so dark mode can change the palette safely. */
  --accent-bg: #4f2d7f;        /* buttons and markers */
  --accent-bg-hover: #3a2160;
  --on-accent: #ffffff;
  --topbar-bg: #2b1844;
  --topbar-ink: #ece4f7;
  --header-bg: rgba(255, 255, 255, .97);
  --cta-bg: #4f2d7f;
  --footer-bg: #1f1230;
  --mark-a: #4f2d7f;
  color-scheme: light dark;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* Dark mode follows the visitor's device setting. Text shades get lighter; the buttons stay a
   strong purple with white text. All text keeps AA contrast or better. */
@media (prefers-color-scheme: dark) {
  :root {
    --plum-950: #0e0914;
    --plum-900: #f1eafb;   /* headings: 15.6:1 on the page */
    --plum-800: #e3d5f6;
    --plum-700: #c6aaf0;   /* links: 8.9:1 */
    --plum-600: #d8c4f6;
    --plum-500: #9d7fd3;
    --lav-300: #4b3d66;
    --lav-200: #3b2f52;
    --lav-100: #2b2240;
    --lav-50: #1e1829;

    --ink: #ede7f4;
    --ink-soft: #cbc1d8;
    --muted: #a497b6;      /* 6.6:1 */
    --line: #2e2739;
    --surface: #1f1a2a;
    --page: #16121e;

    --sage-700: #8fd0a2;
    --sage-500: #6db783;
    --sage-100: #1d3324;
    --notice: #f3a8c8;
    --notice-bg: #3a1e2c;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .4);

    --accent-bg: #6c47a8;  /* white on it: 6.9:1 */
    --accent-bg-hover: #7d58ba;
    --topbar-bg: #0e0914;
    --header-bg: rgba(22, 18, 30, .95);
    --cta-bg: #2c1d44;
    --footer-bg: #0e0914;
    --mark-a: #8f6cd0;
  }
  .hero-media img { filter: brightness(.9); }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.125rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--plum-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--plum-600); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--plum-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lav-200); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--plum-900);
  margin: 0 0 .6em;
  text-wrap: balance;
}
p, ul, ol, blockquote, figure { margin: 0 0 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent-bg); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--plum-600);
  font: 700 .82rem/1.3 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.25em;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { min-height: 54px; padding: .75em 1.6em; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent-bg); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-bg-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--lav-300); background: var(--surface); color: var(--plum-700); }
.btn-ghost:hover { border-color: var(--plum-500); color: var(--plum-800); }
.btn-light { background: #fff; color: #3a2160; }          /* on the purple band, in both modes */
.btn-light:hover { background: #ece4f7; color: #2b1844; }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform .15s; }

/* ---------- Top bar ---------- */

.topbar { background: var(--topbar-bg); color: var(--topbar-ink); font-size: .9rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .5em; }
.topbar-contact { gap: 22px !important; }
.topbar a { display: inline-flex; align-items: center; gap: .45em; color: #fff; text-decoration: none; }
.topbar a:hover { color: #ddd0f0; text-decoration: underline; }
.topbar .icon { color: #cdbbe8; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 1.5rem/1.1 var(--serif); color: var(--plum-900); letter-spacing: -.01em; }
.brand-sub { margin-top: 3px; color: var(--muted); font-size: .88rem; line-height: 1.25; }
.brand-sub::first-letter { text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; flex-direction: column; text-align: right; text-decoration: none; line-height: 1.2; }
.header-phone-label { color: var(--muted); font-size: .8rem; }
.header-phone-number { color: var(--plum-800); font-weight: 700; font-size: 1.15rem; }
.header-phone:hover .header-phone-number { color: var(--plum-600); }

.site-nav { border-top: 1px solid var(--line); }
.menu { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0; padding: 0; list-style: none; }
.menu a {
  position: relative; display: block; padding: 13px 12px;
  color: var(--ink-soft); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.menu a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px;
  border-radius: 3px; background: var(--accent-bg); transform: scaleX(0); transition: transform .2s;
}
.menu a:hover { color: var(--plum-700); }
.menu a:hover::after { transform: scaleX(.6); }
.menu .current a { color: var(--plum-800); }
.menu .current a::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--lav-300); border-radius: 999px;
  background: var(--surface); color: var(--plum-800); font: 600 1rem var(--sans); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Home: hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(1100px 520px at 88% -10%, var(--lav-100), transparent 70%),
    radial-gradient(700px 400px at -10% 110%, var(--lav-100), transparent 70%),
    var(--lav-50);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-title {
  margin: 0 0 .45em;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.08; letter-spacing: -.015em;
  color: var(--plum-900);
}
.hero-title::first-letter { text-transform: uppercase; }
.hero-lead { max-width: 36em; margin: 0 0 1.8em; color: var(--ink-soft); font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 1.4em 0 0; font-size: 1rem; }
.hero-note a { display: inline-flex; align-items: center; gap: .55em; color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.hero-note a:hover { color: var(--plum-700); text-decoration: underline; }

.status-dot {
  position: relative; display: inline-block; width: 10px; height: 10px; flex: none;
  border-radius: 50%; background: var(--sage-500); box-shadow: 0 0 0 4px var(--sage-100);
}

.hero-media { position: relative; justify-self: center; width: min(100%, 480px); }
.hero-media::before {
  content: ''; position: absolute; inset: 9% -7% -7% 9%; z-index: 0;
  border-radius: 46% 54% 44% 56% / 52% 46% 54% 48%;
  background: linear-gradient(140deg, var(--lav-300), var(--plum-500));
  opacity: .55;
}
.hero-media img {
  position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border: 8px solid var(--surface); border-radius: 42% 58% 40% 60% / 50% 44% 56% 50%;
  box-shadow: var(--shadow);
}

/* ---------- Home: highlights ---------- */

.highlights { position: relative; z-index: 2; margin-top: -34px; }
.highlight-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.highlight { display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
.highlight + .highlight { border-left: 1px solid var(--line); }
.highlight-icon {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--lav-100);
}
.highlight-icon::after {
  content: ''; position: absolute; inset: 0; background: var(--plum-700);
  -webkit-mask: var(--icon) center / 24px no-repeat; mask: var(--icon) center / 24px no-repeat;
}
.icon-heart  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f2d7f' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.1A4.4 4.4 0 0 1 12 7.2a4.4 4.4 0 0 1 7.5 2.7C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E"); }
.icon-home   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f2d7f' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20h-5.5v-5.5h-5V20H4z'/%3E%3C/svg%3E"); }
.icon-sprout { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f2d7f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20v-8M12 12c0-4 3-6.5 7-6.5 0 4-3 6.5-7 6.5zM12 14c0-3.2-2.4-5.2-5.6-5.2 0 3.2 2.4 5.2 5.6 5.2z'/%3E%3C/svg%3E"); }

/* ---------- Home: sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin: 0 0 clamp(28px, 4vw, 44px); }
.section-head h2, .about-section h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0; }
.section-foot { margin: 32px 0 0; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.service-card::before {
  content: ''; width: 36px; height: 4px; margin-bottom: 18px; border-radius: 4px;
  background: linear-gradient(90deg, var(--plum-700), var(--plum-500));
}
.service-card:hover { border-color: var(--lav-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card h3 { margin: 0 0 .5em; font-size: 1.3rem; }
.service-card h3 a { color: var(--plum-900); text-decoration: none; }
.service-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card is the link */
.service-card p { flex: 1; margin: 0 0 1em; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }
.card-more { color: var(--plum-700); font-weight: 600; font-size: .98rem; }
.card-more::after { content: ' →'; }

.about-section { background: var(--lav-50); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.about-text { margin: 0 0 1.2em; font: 500 clamp(1.18rem, 1.8vw, 1.4rem)/1.6 var(--serif); color: var(--ink); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.post-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: var(--plum-900); text-decoration: none; }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; }
.post-card p { color: var(--ink-soft); font-size: 1rem; }
.post-date { margin: 0 0 .5em; color: var(--muted); font-size: .9rem; }

/* ---------- Inner pages ---------- */

.page-hero {
  padding: clamp(36px, 5vw, 60px) 0 clamp(32px, 4vw, 48px);
  background: radial-gradient(900px 300px at 100% 0, var(--lav-100), transparent 70%), var(--lav-50);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 .8rem; color: var(--muted); font-size: .92rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--plum-700); }
.page-title { margin: 0; font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -.01em; }
.page-meta { margin: .6em 0 0; color: var(--muted); }

.page-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px);
  align-items: start; padding-block: clamp(40px, 6vw, 72px);
}
.page-main { min-width: 0; max-width: 760px; }

.page-aside { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 16px; }
.aside-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.aside-card h2 { margin: 0 0 14px; font-size: 1.3rem; }
.contact-line { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; overflow-wrap: break-word; }
a.contact-line:hover { color: var(--plum-700); }
.contact-line .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--plum-600); }
.contact-line small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.contact-card .btn { margin-top: 6px; }
.availability-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, var(--surface), var(--sage-100));
}
.availability-card:hover { color: var(--ink); border-color: var(--sage-500); }
.availability-card strong { display: block; }
.availability-card small { color: var(--muted); font-size: .9rem; }
.availability-card > span:nth-child(2) { flex: 1; }
.availability-card .icon { color: var(--sage-700); }

/* ---------- Page content (written in the editor) ---------- */

.entry-content { overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h1 { font-size: 2rem; }
.entry-content h2 { margin-top: 1.4em; font-size: 1.75rem; }
.entry-content h3 { margin-top: 1.6em; font-size: 1.4rem; }
.entry-content h4 { margin-top: 1.4em; font-size: 1.15rem; font-family: var(--sans); font-weight: 700; color: var(--plum-800); }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--plum-500); }
.entry-content strong { color: var(--ink); }
.entry-content hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }
.entry-content blockquote {
  position: relative; margin: 0 0 1.6em; padding: 28px 30px 10px 30px;
  border-radius: var(--radius); background: var(--lav-50); border: 1px solid var(--line); color: var(--ink);
}
.entry-content blockquote::before {
  content: '“'; position: absolute; top: -18px; left: 22px;
  font: 700 4.4rem/1 var(--serif); color: var(--plum-500);
}
.entry-content blockquote.testimonial { margin-bottom: 36px; padding-bottom: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.entry-content blockquote.testimonial p:last-of-type { margin-bottom: 0; }
.testimonial-by {
  margin: 16px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--plum-800); font-weight: 700;
}
.testimonial-by::before { content: '— '; color: var(--plum-500); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 0 0 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; clear: both; margin: .3em auto 1.2em; }
.entry-content::after { content: ''; display: block; clear: both; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-medium-font-size { font-size: inherit; }

/* The old site's bright red notes become a calm, clear notice. */
.entry-content [style*="color: #ff0000"], .entry-content [style*="color:#ff0000"] { color: var(--notice) !important; }
.entry-content h4.has-text-align-center:has([style*="ff0000"]) {
  margin: 0 0 .6em; padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--notice-bg); font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
}
.entry-content h4.has-text-align-center:has([style*="ff0000"]) + h4.has-text-align-center:has([style*="ff0000"]) { margin-top: -.9em; padding-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.entry-content h4.has-text-align-center:has([style*="ff0000"]):has(+ h4.has-text-align-center [style*="ff0000"]) { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

/* Pages with a few known shapes */
.page-services .entry-content h3 {
  margin-top: 2em; padding: 0 0 .5em; border-bottom: 2px solid var(--lav-100);
  scroll-margin-top: calc(var(--header-h) + 60px);
}
.page-services .entry-content h3:first-child { margin-top: 0; }
/* Contact: the phone and email headings become one panel; "Please note:" starts the notes below it. */
.page-contact .entry-content h2 { margin: 0; font-size: 1.4rem; }
.page-contact .entry-content h2 br { display: none; }
.page-contact .entry-content h2:not(:has(em)) { padding: 4px 24px; background: var(--lav-50); border-inline: 1px solid var(--line); }
.page-contact .entry-content h2:not(:has(em)):first-child { padding-top: 22px; border-top: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.page-contact .entry-content h2:not(:has(em)):has(+ h2 em), .page-contact .entry-content h2:not(:has(em)):has(+ p) {
  padding-bottom: 22px; border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
}
.page-contact .entry-content h2:has(em) { margin: 1.6em 0 .5em; font-size: 1.2rem; color: var(--plum-700); }
.page-disclaimer .entry-content h1 {
  margin: 1.4em 0; padding: 18px 22px; border-radius: var(--radius-sm);
  background: var(--notice-bg); color: var(--notice); font: 700 1.25rem/1.4 var(--sans); text-align: center !important;
}
.page-disclaimer .entry-content h1 strong { color: inherit; }
.page-availability .entry-content > p:first-child {
  padding: 16px 20px; border-left: 4px solid var(--plum-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--lav-50);
}
.page-availability .entry-content span[style*="underline"] {
  text-decoration: none !important; font-weight: 700; color: var(--plum-800);
}
.page-availability .entry-content .wp-block-image img,
.page-about .entry-content img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Blog ---------- */

.blog .hentry.post {
  margin: 0 0 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.blog .entry-title { margin: 0 0 .25em; font-size: 1.55rem; }
.blog .entry-title a { color: var(--plum-900); text-decoration: none; }
.blog .entry-title a:hover { color: var(--plum-700); text-decoration: underline; }
.entry-meta { margin: 0 0 1em; color: var(--muted); font-size: .95rem; }
.more-link { font-weight: 600; }
.post-navigation { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.post-navigation a { text-decoration: none; }
.no-results .entry-content p { color: var(--ink-soft); }

/* ---------- Call to action and footer ---------- */

.cta-band {
  padding: clamp(40px, 6vw, 64px) 0;
  background: radial-gradient(800px 300px at 90% 0, rgba(126, 92, 184, .45), transparent 70%), var(--cta-bg);
  color: #fff;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3em; color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.cta-band p { max-width: 38em; margin: 0; color: #ece4f7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--footer-bg); color: #d9cfe7; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font: 700 .85rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ddd0f0; text-decoration: underline; }
.brand-footer .brand-name { color: #fff; font-size: 1.35rem; }
.brand-footer .brand-mark { width: 40px; height: 40px; }
.footer-tagline { margin: 14px 0 6px; }
.footer-tagline::first-letter { text-transform: uppercase; }
.footer-about p { margin-bottom: .4em; }
.footer-list, .footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; overflow-wrap: break-word; }
.footer-list a { display: inline-flex; align-items: center; gap: 10px; }
.footer-list .icon { color: #cdbbe8; margin-top: 3px; }
.footer-menu { columns: 2; column-gap: 20px; }
.footer-menu li { margin-bottom: 8px; break-inside: avoid; }
.footer-menu .current a { color: #ddd0f0; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap;
  padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .12);
  color: #b7aac9; font-size: .9rem;
}
.footer-bottom p { margin: 0; }

.mobile-actions { display: none; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
  .header-phone { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar-area { display: none !important; }
  .topbar-inner { justify-content: center; }
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; }
  .site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .menu { flex-direction: column; padding: 8px 0 14px; }
  .menu a { padding: 12px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .menu li:last-child a { border-bottom: 0; }
  .menu a::after { display: none; }
  .menu .current a { color: var(--plum-700); }
  .menu .current a::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent-bg); vertical-align: .1em; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; width: min(78%, 380px); }
  .highlights { margin-top: 0; padding-top: 28px; }
  .highlight-list { grid-template-columns: minmax(0, 1fr); }
  .highlight + .highlight { border-left: 0; border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }

  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1.06rem; padding-bottom: 64px; } /* room for the call bar */
  .topbar-contact a:last-child:not(:first-child) { display: none; }
  .header-cta { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.3rem; }
  .hero-actions .btn { width: 100%; }
  .hero { padding-top: 28px; }
  .hero-media { width: min(62%, 260px); }
  /* Photos set to Left or Right still have text wrapping beside them on a phone, at no more than
     about 40% of the width so the text stays readable. (The editor follows the same rule.) */
  .entry-content .alignleft, .entry-content .alignright { max-width: 42%; height: auto; }
  .entry-content .alignleft { margin: .3em 1em .6em 0; }
  .entry-content .alignright { margin: .3em 0 .6em 1em; }
  .entry-content figure.alignleft img, .entry-content figure.alignright img { max-width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .entry-content blockquote { padding: 26px 20px 6px; }

  .mobile-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--header-bg); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(43, 24, 68, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-actions a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 60px; color: var(--plum-800); font-weight: 600; font-size: .85rem; text-decoration: none;
  }
  .mobile-actions a:first-child { background: var(--accent-bg); color: var(--on-accent); }
  .mobile-actions .icon { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-nav, .header-actions, .page-aside, .cta-band, .mobile-actions, .site-footer nav { display: none !important; }
  .site-header { position: static; }
  body { background: #fff; padding: 0; }
}
