/* ==========================================================
   Dr Marieke Ledingham – site styles
   Colours and type taken from the original Canva design.
   ========================================================== */

:root {
  --bg-light: #edf0f2;
  --bg-hero: #efefef;
  --bg-dark: #2b2b2b;
  --bg-grey: #606060;
  --ink: #200f07;
  --ink-body: #2b2b2b;
  --ink-muted: #606060;
  --ink-nav: #304254;
  --on-dark: #edf0f2;
  --on-dark-muted: #bdbdbd;
  --accent: #9f8c82;
  --accent-hover: #8a776d;

  --font-sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-pad: clamp(56px, 8vw, 104px);
  --header-h: 64px;
  --radius: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }

a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-pad) 0; }
.dark { background: var(--bg-dark); color: var(--on-dark); }
.grey { background: var(--bg-grey); color: var(--on-dark); }

/* Image frames show a soft placeholder until the image loads */
.hero-photo, .intro-photo, .about-photo, .talks-photo,
.bookings-photo, .referrers-photo, .referrers-flyer {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(127, 127, 127, 0.18);
}
.hero-photo img, .intro-photo img, .about-photo img, .talks-photo img,
.bookings-photo img, .referrers-photo img, .referrers-flyer img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-light);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter);
}
.brand img { width: 40px; height: 40px; border-radius: 50%; }

.site-nav ul {
  display: flex; gap: clamp(16px, 2vw, 28px);
  margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  color: var(--ink-nav);
  opacity: 0.72;
  font-size: 1.125rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { opacity: 1; }
.site-nav a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 1px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--ink-nav);
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 24px; height: 2px; background: currentColor;
    border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .js .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--bg-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .js .site-nav a { display: block; padding: 10px 0; }

  /* Without JavaScript: a simple scrollable row of links */
  html:not(.js) .site-nav { overflow-x: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 32px;
  border-radius: 10px;
  font-size: 1.125rem; line-height: 1.2; text-align: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-solid { background: var(--accent); color: #fff; text-decoration: none; }
.btn-solid:hover { background: var(--accent-hover); }
.btn-outline {
  border: 2px solid var(--on-dark-muted); color: var(--on-dark);
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--on-dark); }

/* ---------- Lists ---------- */
.list { margin: 0 0 1em; padding-left: 1.2em; }
.list li { margin: 0.15em 0; padding-left: 0.2em; }
.list-muted { color: var(--ink-muted); }

/* ---------- Hero ---------- */
.hero { background: var(--bg-hero); padding: 24px 0 var(--section-pad); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-text { text-align: center; color: var(--ink); font-family: var(--font-serif); }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  letter-spacing: -0.03em; line-height: 1.05;
}
.hero-subtitle { font-size: clamp(1.5rem, 2.4vw, 1.95rem); letter-spacing: -0.015em; margin: 0.9em 0 0.6em; }
.hero-tagline { font-size: clamp(1.25rem, 2vw, 1.65rem); margin-bottom: 1.6em; }
.hero .btn { font-family: var(--font-sans); min-width: 270px; }
.hero-photo { aspect-ratio: 612 / 752; }
.hero-photo img { object-position: center 20%; }

/* ---------- Intro ---------- */
.intro h2 { font-size: clamp(1.6rem, 2.6vw, 1.85rem); color: var(--ink); margin-bottom: 1em; font-weight: 600; letter-spacing: -0.01em; }
.intro-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.intro-text { font-size: 1.25rem; }
.intro-photo { aspect-ratio: 467 / 284; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about-photo { aspect-ratio: 430 / 372; }
.about-block { border-top: 1px solid rgba(237, 240, 242, 0.5); padding-top: 18px; }
.about-block + .about-block { margin-top: 36px; }
.label { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.8em; }

/* ---------- Areas of practice / credentials ---------- */
.practice-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.display { font-size: clamp(2.2rem, 4vw, 3.3rem); color: var(--ink-body); margin-bottom: 0.6em; letter-spacing: -0.02em; }
.credentials { text-align: center; color: var(--ink-muted); font-size: 1.05rem; }
.cred-row { padding: 28px 0; border-top: 1px solid rgba(0, 0, 0, 0.12); }
.cred-row:first-child { border-top: 0; padding-top: 0; }
.cred-row h3 { font-size: 1.25rem; color: var(--ink-body); margin-bottom: 0.6em; }
.cred-row .small { font-size: 1rem; }
/* Each row of logos always stays on one line and scales down to fit.
   --ar (set on each <img>) is the logo's width ÷ height, so wider logos get
   proportionally more room and every logo ends up the same height. */
.logos {
  --logo-h: 60px;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: clamp(12px, 4vw, 40px); margin-bottom: 20px;
}
.logos img {
  flex: var(--ar) 1 0;
  min-width: 0;
  max-width: calc(var(--logo-h) * var(--ar));
  width: 100%; height: auto;
  aspect-ratio: var(--ar);
  object-fit: contain;
}
.logos img.crop-left { object-fit: cover; object-position: left center; }

/* ---------- Talks ---------- */
.section-title { font-size: clamp(2rem, 3.4vw, 2.65rem); letter-spacing: -0.01em; }
.center { text-align: center; }
.talks .section-title { margin-bottom: 1.2em; }
.talks-intro {
  display: grid; grid-template-columns: 3fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; color: #fff;
}
.talks-photo { aspect-ratio: 291 / 199; }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(48px, 6vw, 72px);
  color: var(--on-dark-muted); font-size: 1.0625rem;
}
.cards h3 { font-size: 1.45rem; color: var(--on-dark); margin-bottom: 0.6em; }
.cards .list { margin-top: 0.5em; }
.get-in-touch { text-align: center; margin-top: clamp(48px, 6vw, 72px); font-size: 1.4rem; color: var(--on-dark-muted); }
.get-in-touch a { color: var(--on-dark); overflow-wrap: anywhere; }

/* ---------- FAQs ---------- */
.display-lg { font-size: clamp(2.6rem, 4.6vw, 3.75rem); color: var(--ink); margin-bottom: 0.6em; }
.faq-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px);
  color: var(--ink-muted); font-size: 1.0625rem;
}
.faq-grid h3 {
  font-size: 1.3rem; font-weight: 600; color: var(--ink-body);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.25;
  margin-bottom: 0.9em;
}
.faq-grid a { color: var(--ink-body); }
.online-booking {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--ink-muted); font-size: clamp(1.6rem, 2.6vw, 2.1rem); text-decoration: none;
}
.online-booking:hover span { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Bookings ---------- */
.bookings .section-title { margin-bottom: 1.2em; }
.bookings-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact-list { list-style: none; margin: 0 0 32px; padding: 0; color: #ecebe9; font-size: 1.0625rem; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 10px 0; }
.contact-list svg { flex: none; width: 28px; height: 28px; margin-top: 0; color: #fff; }
.contact-list small { display: block; font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }
.contact-list a { overflow-wrap: anywhere; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.btn-stack .btn { min-width: 260px; }
.bookings-photo { aspect-ratio: 579 / 407; }
.bookings-photo img { object-position: center 61%; }

/* ---------- Referrers ---------- */
.referrers { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.referrers-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 40px;
}
.btn-icon { padding: 10px 24px; }
.referrers-grid {
  display: grid; grid-template-columns: 1fr 0.85fr 1fr; gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.referrers-photo { aspect-ratio: 440 / 558; }
.referrers-text { color: #ecebe9; font-size: 1.0625rem; }
.referrers-text address { margin-top: 0.4em; }
.referrers-text a { overflow-wrap: anywhere; }
.referrers-flyer { display: block; aspect-ratio: 438 / 622; background: #fff; }
.referrers-flyer img { object-fit: contain; }

img.is-missing { visibility: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark); color: var(--on-dark-muted);
  font-size: 0.9rem; padding: 28px 0; text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .faq-grid { grid-template-columns: 1fr 1fr; }
  .cards article:last-child, .faq-grid article:last-child { grid-column: 1 / -1; }
  .referrers-grid { grid-template-columns: 1fr 1fr; }
  .referrers-text { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .hero { padding-top: 16px; }
  .hero-grid, .intro-grid, .about-grid, .practice-grid,
  .talks-intro, .bookings-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 4 / 5; max-height: 70vh; width: 100%; }
  .intro-text { font-size: 1.125rem; }
  .cards, .faq-grid { grid-template-columns: 1fr; }
  .cards article:last-child, .faq-grid article:last-child { grid-column: auto; }
  .cards article + article, .faq-grid article + article {
    border-top: 1px solid currentColor; border-top-color: rgba(127, 127, 127, 0.35); padding-top: 28px;
  }
  .talks-photo { max-width: 480px; }
  .referrers-grid { grid-template-columns: 1fr; }
  .referrers-text { grid-row: auto; }
  .referrers-photo, .referrers-flyer { max-width: 440px; width: 100%; }
  .btn, .btn-stack .btn, .hero .btn { width: 100%; min-width: 0; }
  .btn-stack { align-items: stretch; }
}
