/* Rachel McGregor Psychologist: shared styles for every page. */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(/fonts/raleway-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #021782;
  --blue: #132cff;
  --mid: #5371ff;
  --tint: #eef1ff;
  --line: #d7ddff;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font: 400 16px/1.65 'Raleway', system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--mid); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .25em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: centred logo with a menu button, as on the original site */
.site-header { position: relative; padding: 28px var(--gutter) 24px; text-align: center; }
.site-header .logo { display: inline-block; }
.site-header .logo img { width: min(440px, 78vw); }
.site-header.compact .logo img { width: min(330px, 70vw); }
.menu-button {
  position: absolute; top: 18px; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--blue); background: #fff;
  color: var(--navy); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.menu-button:hover { background: var(--tint); }

/* Slide-in menu */
.menu {
  margin: 0 0 0 auto; height: 100%; max-height: none; width: min(380px, 100vw);
  border: 0; padding: 24px 32px 40px; background: #fff; color: var(--navy); overflow-y: auto;
}
.menu::backdrop { background: rgba(2, 23, 130, .45); }
.menu[open] { animation: slide-in .25s ease-out; }
@keyframes slide-in { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .menu[open] { animation: none; } }
.menu-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.menu-close:hover { background: var(--tint); }
.menu .menu-logo { display: block; margin: 16px auto 24px; width: 260px; }
.menu nav ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 4px; }
.menu nav li { margin: 0; }
.menu nav a { display: block; padding: 14px 20px; background: rgba(83, 113, 255, .1); color: var(--blue); text-decoration: none; font-size: 16px; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: rgba(83, 113, 255, .22); color: var(--navy); }
.menu nav .sub a { padding-left: 36px; font-size: 15px; }
.menu .btn { width: 100%; justify-content: center; margin-top: 10px; }

/* Pill buttons with a calendar icon */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 26px 8px 20px;
  border: 1.5px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue);
  text-decoration: none; line-height: 1.15; text-align: left; transition: background .15s, color .15s;
}
.btn:hover { background: var(--blue); color: #fff; }
.btn svg { flex: none; }
.btn .label { display: block; font-size: 18px; text-transform: uppercase; }
.btn .sub { display: block; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* Page titles and shared headings */
.page-title { font-size: clamp(38px, 6vw, 60px); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 8px 0 20px; }
.page-title.light { font-weight: 200; color: var(--mid); letter-spacing: .14em; }
.eyebrow { font-size: clamp(17px, 2vw, 21px); letter-spacing: .2em; text-transform: uppercase; color: var(--mid); margin-bottom: .6em; }
.lead { font-size: clamp(21px, 2.4vw, 28px); font-weight: 200; line-height: 1.4; }
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-heading { font-size: clamp(26px, 3.6vw, 38px); text-transform: uppercase; letter-spacing: .1em; text-align: center; margin: 1.4em 0 .4em; }
.sub-heading { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: .06em; text-align: center; margin: 1.2em 0 .5em; }

/* Two columns: text and a photo */
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.photo-left { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.split .photo { position: sticky; top: 24px; }
.photo img { width: 100%; }
@media (max-width: 820px) {
  .split, .split.even, .split.photo-left { grid-template-columns: 1fr; }
  .split .photo { position: static; max-width: 460px; }
}

/* Home: hero */
.hero { position: relative; min-height: clamp(420px, 42vw, 580px); display: flex; align-items: center; overflow: hidden; background: #ece6e1; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero .wrap { position: relative; width: 100%; }
.hero-text { max-width: 540px; padding: 48px 0; }
.hero h1 { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.4; text-shadow: 0 0 18px rgba(255, 255, 255, .8); }
.hero p { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.4; text-shadow: 0 0 18px rgba(255, 255, 255, .8); margin-bottom: 18px; }
.hero .btn .label { font-size: 17px; }
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero picture img { position: static; height: 300px; object-position: 78% 30%; }
  .hero-text { padding: 28px 0 36px; }
  .hero h1, .hero p { text-shadow: none; }
}

/* Home: service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; text-align: center; }
.tile { display: flex; flex-direction: column; align-items: center; }
.tile-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.tile h3 { font-size: clamp(21px, 2.2vw, 26px); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35em; }
.tile p { color: var(--mid); font-size: 16px; max-width: 32ch; margin-bottom: .7em; }
.tile a { color: var(--navy); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.tile a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.band img { width: 100%; height: clamp(240px, 32vw, 440px); object-fit: cover; object-position: 50% 40%; }

.ticks { list-style: none; padding: 0; columns: 1; }
.ticks li { position: relative; padding-left: 20px; margin-bottom: .45em; }
.ticks li::before { content: '›'; position: absolute; left: 2px; top: -1px; color: var(--mid); font-size: 1.15em; }
.ticks-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 640px) { .ticks-wrap { grid-template-columns: 1fr; } }

/* Services: two columns of entries and photos */
.service-columns { columns: 2 340px; column-gap: clamp(24px, 4vw, 48px); }
.service-columns > * { break-inside: avoid; margin-bottom: 36px; }
.service .icon { color: var(--mid); margin-bottom: 8px; }
.service h2 { font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-bottom: .6em; scroll-margin-top: 24px; }

/* About the process (services and team) */
.process { background: var(--blue); color: #fff; padding: clamp(48px, 7vw, 96px) 0; }
.process a { color: #fff; }
.process h2 { font-size: clamp(30px, 4.6vw, 52px); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.process-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 32px; padding: 28px 0; border-top: 1.5px solid rgba(255, 255, 255, .45); }
.process-row h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .14em; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; font-size: 15px; }
.steps .n { display: block; font-weight: 700; letter-spacing: .2em; color: #c9d2ff; margin-bottom: 4px; }
.steps h4 { font-size: 17px; font-weight: 700; letter-spacing: .1em; color: #c9d2ff; margin: .6em 0 .3em; }
.process .btn { background: transparent; border-color: #fff; color: #fff; }
.process .btn:hover { background: #fff; color: var(--blue); }
.process .btn-row { margin: 12px 0 8px; }
@media (max-width: 760px) { .process-row, .steps { grid-template-columns: 1fr; } }

/* Fees table */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
td:nth-child(2) { white-space: nowrap; }

.callout { background: var(--navy); color: #fff; padding: clamp(24px, 4vw, 36px); text-align: center; font-size: clamp(17px, 1.8vw, 20px); margin: 1.5em 0; }
.callout a { color: #fff; }
.callout p:last-child { margin: 0; }

/* Team */
.member { padding: 12px 0 40px; }
.member h2 { font-size: clamp(22px, 2.4vw, 26px); text-transform: uppercase; letter-spacing: .12em; color: var(--mid); }
.member .photo { max-width: 340px; }

/* Booking widget */
.halaxy-frame { display: block; width: 100%; height: 1100px; border: 0; background: var(--tint); }

/* Contact (every page) */
.contact { text-align: center; padding: clamp(48px, 7vw, 80px) 0 56px; font-size: 15px; }
.contact h2 { font-size: clamp(34px, 4.4vw, 46px); font-weight: 200; letter-spacing: .2em; padding-left: .2em; text-transform: uppercase; color: var(--mid); margin-bottom: .5em; }
.social { display: flex; justify-content: center; gap: 10px; margin: 26px 0; }
.social a { color: var(--navy); display: grid; place-items: center; width: 48px; height: 48px; }
.social a:hover { color: var(--blue); }
.contact address { font-style: normal; display: grid; gap: 16px; margin-bottom: 20px; }
.contact address p { margin: 0; }
.credentials { margin: 0 0 18px; line-height: 1.5; }
.aps { margin: 0 auto; width: 160px; }
.site-footer { border-top: 1px solid var(--line); padding: 20px var(--gutter) 28px; text-align: center; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--navy); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer p { margin: 0; color: var(--mid); }
