/* Muireann Banks Therapy.
   Palette is her existing brand (navy, slate, cream) on a lighter, cooler base. */

/* Fonts are served from this site, not Google, so Google never sees a visit
   (the privacy notice says so). Latin and Latin Extended subsets from Google Fonts. */
@font-face {
  font-family: 'Literata'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/literata-normal-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;
}
@font-face {
  font-family: 'Literata'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/literata-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/literata-italic-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;
}
@font-face {
  font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/literata-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/nunito-sans-normal-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;
}
@font-face {
  font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/nunito-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* The six base colours: her brand. */
  --bg: #eef2f1;           /* page background */
  --text: #182241;         /* her navy: main text */
  --dark: #182241;         /* header, footer and the dark section */
  --on-dark: #fff5d9;      /* her cream: text on the dark colour */
  --accent: #7b949c;       /* her blue-grey: the colour blocks */
  --btn: #182241;          /* buttons */
  /* Text colours on top of the button and colour-block colours. */
  --on-btn: #fff5d9;
  --on-accent: #182241;

  /* Everything else is mixed from the six above. */
  --mist: var(--bg);
  --ink: var(--text);
  --ink-soft: color-mix(in srgb, var(--text) 82%, var(--bg));
  --slate: var(--accent);
  --slate-deep: color-mix(in srgb, var(--accent) 50%, var(--text));
  --slate-pale: color-mix(in srgb, var(--accent) 28%, var(--bg));
  --paper: color-mix(in srgb, var(--bg) 60%, white);
  --cream: var(--on-dark);
  --field-line: color-mix(in srgb, var(--accent) 45%, var(--text));
  --on-dark-soft: color-mix(in srgb, var(--on-dark) 82%, var(--dark));
  --dark-line: color-mix(in srgb, var(--on-dark) 18%, var(--dark));

  --font-heading: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 36rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 1.25rem;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: calc(var(--text-scale, 1) * 100%); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-variation-settings: "opsz" 48; }
h3 { font-size: 1.4rem; font-variation-settings: "opsz" 24; margin-bottom: 0.35em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--slate-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--dark); color: var(--on-dark); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* ---------- Header ---------- */

.site-header { background: var(--dark); color: var(--on-dark); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  min-height: 4.5rem; padding-block: 0.6rem;
}
.brand {
  font-family: var(--font-heading); font-size: 1.3rem; color: var(--on-dark);
  text-decoration: none; line-height: 1.2;
}
.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 3vw, 2rem); }
.site-nav a { color: var(--on-dark); text-decoration: none; font-size: 1rem; }
.site-nav a:not(.button) { padding-block: 0.7rem; } /* a big enough tap target */
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-header :focus-visible { outline-color: var(--on-dark); }

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  background: var(--btn); color: var(--on-btn);
  font: 600 1.05rem/1 var(--font-body);
  padding: 1rem 1.6rem; border: 0; border-radius: calc(var(--radius) * 3);
  text-decoration: none; cursor: pointer;
}
.button:hover { background: color-mix(in srgb, var(--btn) 86%, white); text-decoration: none; }
.site-nav .button {
  white-space: nowrap;
  background: var(--accent); color: var(--on-accent);
  padding: 0.7rem 1.15rem; font-size: 0.98rem;
}
.site-nav .button:hover { background: color-mix(in srgb, var(--accent) 86%, white); text-decoration: none; }
.short-label { display: none; }

/* ---------- Hero ---------- */

.hero { overflow: hidden; position: relative; z-index: 0; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
}
.hero-text { padding: calc(clamp(3rem, 8vw, 6.5rem) * var(--space, 1)) clamp(1.5rem, 4vw, 4rem) calc(clamp(3rem, 7vw, 5.5rem) * var(--space, 1)) 0; }
.hero-questions {
  font-family: var(--font-heading); font-style: italic;
  color: var(--slate-deep); font-size: 1.15rem; line-height: 1.6;
  max-width: 30rem; margin-bottom: 1.75rem;
}
.hero h1 { margin-bottom: 0.45em; }
.hero-lead { font-size: 1.3rem; color: var(--ink-soft); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-bottom: 2.5rem; }
.hero-facts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  font-size: 0.98rem; color: var(--ink-soft);
}

/* The slate field runs from the photo column to the right edge of the window. */
.hero-figure {
  position: relative; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
}
.hero-figure::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: 0; right: -100vw; /* clipped by .hero overflow */
  background: var(--slate);
}
.hero-figure img {
  width: 100%; max-width: 24rem; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  margin-left: calc(-1 * clamp(3rem, 7vw, 6rem));
  box-shadow: 0 1.5rem 3rem -1.5rem color-mix(in srgb, var(--dark) 45%, transparent);
}
.hero-figure figcaption {
  margin-top: 1.25rem; /* starts inside the colour block, so it sits on one colour */
  color: var(--on-accent); font-size: 1rem; line-height: 1.5;
}
.hero-figure figcaption strong { font-family: var(--font-heading); font-weight: 500; font-size: 1.2rem; display: block; }

/* ---------- Sections ---------- */

.section { padding-block: calc(clamp(3.5rem, 8vw, 6.5rem) * var(--space, 1)); }
.section + .section { border-top: 1px solid var(--slate-pale); }

/* Heading on the left, text on the right, on wide screens. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); }
.split > :last-child { max-width: var(--measure); }

.band { background: var(--dark); color: var(--on-dark-soft); }
.band h2 { color: var(--on-dark); }
.band strong { color: var(--on-dark); font-weight: 600; }
.band + .section { border-top: 0; }

.help-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.help-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--slate-pale); }
.help-list li:first-child { padding-top: 0.25rem; }
.help-list h3 { margin: 0; }
.help-list p { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 1rem; }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.ways h3 { padding-top: 1rem; border-top: 3px solid var(--slate); }
.ways p { color: var(--ink-soft); font-size: 1.02rem; }

.insurance {
  margin-top: 2.5rem; padding: 1.5rem 1.75rem; max-width: 46rem;
  background: var(--paper); border-radius: var(--radius);
  border-left: 6px solid var(--slate);
}
.insurance h3 { font-size: 1.2rem; }
.insurance p { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }

/* ---------- Enquiry ---------- */

.enquiry { background: var(--accent); color: var(--on-accent); }
.enquiry .split > :first-child p { max-width: 26rem; }
.enquiry .split > :last-child { max-width: 38rem; }

.form { display: grid; gap: 1.25rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .form legend { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.field .hint, .form legend .hint, .field label .hint { font-weight: 400; color: inherit; font-size: 0.92rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--field-line); border-radius: calc(var(--radius) * 0.6);
  padding: 0.75rem 0.9rem;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--on-accent); outline-offset: 1px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { padding: 0; margin-bottom: 0.5rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.check {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--paper); color: var(--text); border: 1px solid var(--field-line); border-radius: calc(var(--radius) * 3);
  padding: 0.55rem 1.1rem 0.55rem 0.8rem; font-size: 1rem; cursor: pointer;
}
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--btn); margin: 0; }
.check:has(input:checked) { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.hp { position: absolute; left: -9999px; }
.field-help { margin: -0.15rem 0 0.1rem; font-size: 0.95rem; }
.consent { margin-top: 0.4rem; }
.about-card dd a { color: inherit; }
.field-error { margin: 0.15rem 0 0; font-size: 0.95rem; font-weight: 700; }
.form [aria-invalid="true"] { border: 2px solid var(--on-accent); }
.form-note { font-size: 0.95rem; margin: 0; }
.form-status {
  margin: 0; padding: 1rem 1.25rem; border-radius: 0.75rem;
  background: var(--paper); color: var(--text); border-left: 6px solid var(--btn);
}
.form-status[hidden] { display: none; }

/* ---------- About page ---------- */

.page-head { padding-top: calc(clamp(3rem, 7vw, 5rem) * var(--space, 1)); }
.page-head h1 { margin-bottom: 0; }
.about.section { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.about { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-main { max-width: 40rem; }
.about-main h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.2em; }
.about-main .aside-note { font-style: italic; color: var(--ink-soft); }
.page-head h1 + p { font-size: 1.15rem; color: var(--ink-soft); margin: 0.6rem 0 0; }
.sources { font-size: 0.92rem; color: var(--ink-soft); padding-left: 1.2rem; }
.sources li { margin-bottom: 0.4rem; }
.quote-card {
  margin: 2.5rem 0; padding: 1.4rem 1.75rem 1.3rem;
  background: var(--slate-pale); border-radius: var(--radius);
}
.quote-card blockquote { margin: 0; }
.quote-lead { margin: 1.5rem 0 0; max-width: 46rem; }
.quote-card blockquote::before {
  content: "“"; display: block; height: 1.6rem;
  font-family: var(--font-heading); font-size: 3.6rem; line-height: 1; color: var(--slate-deep);
}
.quote-card blockquote p {
  margin: 0; font-family: var(--font-heading); font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.45; color: var(--ink);
}
.photo { margin: 2.5rem 0; border-radius: var(--radius); overflow: hidden; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.page-head .photo { margin: 2rem 0 0; }
.photo-wide img { aspect-ratio: 21 / 8; object-fit: cover; object-position: center 62%; }
.quote-card figcaption { margin-top: 0.9rem; font-size: 0.95rem; color: var(--ink-soft); }
.two-col { columns: 2; column-gap: 2.5rem; padding-left: 1.2rem; margin: 0 0 1.5rem; }
.two-col li { break-inside: avoid; margin-bottom: 0.45rem; }
.about-card {
  position: sticky; top: 1.5rem;
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: 1.5rem;
}
.about-card img { border-radius: calc(var(--radius) - 0.4rem); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.about-card dl { margin: 1.25rem 0 1.5rem; font-size: 0.98rem; line-height: 1.5; }
.about-card dt { font-weight: 700; margin-top: 0.9rem; }
.about-card dd { margin: 0.15rem 0 0; }
.about-card .button { width: 100%; text-align: center; }

/* ---------- Privacy notice ---------- */

.legal { max-width: 46rem; }
.legal h1 { margin-bottom: 0.2em; }
.legal-updated { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 2rem; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 2em; }
.legal li { margin-bottom: 0.5rem; }
/* Draft placeholders: facts only Muireann can supply. */
mark.fill { background: #ffe58f; color: #1a1a1a; padding: 0 0.2em; border-radius: 3px; }

.field .consent { font-weight: 400; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.98rem; line-height: 1.45; cursor: pointer; }
.consent input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--btn); }
.form-note a { color: inherit; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: var(--on-dark-soft); padding: 3rem 0 2.5rem; font-size: 0.98rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { display: block; margin-bottom: 0.5rem; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer a { color: var(--on-dark); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.2rem; }
.site-footer li a { display: inline-block; padding-block: 0.3rem; }
.site-footer :focus-visible { outline-color: var(--on-dark); }
.footer-base { grid-column: 1 / -1; border-top: 1px solid var(--dark-line); padding-top: 1.25rem; font-size: 0.9rem; }

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-text { padding-right: 0; padding-bottom: 2.5rem; }
  .hero-figure { padding: 2rem var(--gutter); margin: 0 calc(-1 * var(--gutter)); flex-direction: row; align-items: flex-end; gap: 1.25rem; }
  .hero-figure::before { right: 0; }
  .hero-figure img, .hero-figure figcaption { margin-left: 0; }
  .hero-figure img { width: 46%; max-width: 15rem; }
  .split, .about { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; gap: 0.5rem; }
  .about-card { order: -1; position: static; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 0 1.25rem; align-items: start; }
  .about-card dl { margin-top: 0; }
  .about-card .button { grid-column: 1 / -1; }
  .about-card.card-last { order: 0; grid-template-columns: 1fr; } /* no photo: keep it after the text */
  .site-footer .wrap { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .brand { font-size: 1rem; }
  .site-nav { gap: 0.9rem; }
  .site-nav .button { padding: 0.6rem 0.9rem; font-size: 0.92rem; }
  .long-label { display: none; }
  .short-label { display: inline; }
  .form .row { grid-template-columns: 1fr; }
  .two-col { columns: 1; }
  .about-card { padding: 1rem; gap: 0 1rem; }
  .about-card dl { font-size: 0.9rem; }
}
