/*
  site.css - Option A (familiar, refined) for counsellingpsychotherapyclonmel.ie

  One stylesheet for every page. Colours, fonts and spacing are set once in
  :root below; change a value there and it changes everywhere.
  Colour jobs and measured contrast: see ../DESIGN-NOTES.md.
  Round 5 (25 Sep night): moved closer to her live site at Canice's request.
  Round 7 (25 Sep): Canice's round-6 review, D1-D16 in ../DESIGN-NOTES.md. Lighter
  throughout: no shade on the swing, light tiles, light contact section.
*/

/* ---------- Font (stored with the site, SIL Open Font License) ---------- */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Settings ---------- */

:root {
  /* Her colours */
  --canvas: #FFFFFF;
  --surface: #F5F5F5;
  --stone: #E8E6E6;       /* her practice-information band */
  --sage: #A8C1AA;
  --sage-pale: #EEF3EF;
  --ink: #383838;
  --ink-soft: #57625A;
  --leaf: #48805C;        /* buttons: nearest to her #75B28A that white text passes on, 4.65:1 */
  --leaf-hover: #3E5F49;
  --deep: #3E5F49;
  --deep-soft: #D5E3D7;   /* small text on the deep green band, 5.38:1 */
  --accent: #75B28A;      /* decoration only, never text */
  --line: #C9D3CA;
  --alert: #A33A2B;       /* a form box that needs attention: 6.57:1 on white, 6.02:1 on the grey band */
  --alert-pale: #FBEFEC;
  --tile: rgba(255, 255, 255, 0.88); /* tiles on the photo; ink on it 9:1 even over black */

  --font: "Jost", "Futura", "Century Gothic", sans-serif;

  /* Spacing, 4px steps */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 48px; --s10: 64px;
  --gutter: clamp(16px, 5vw, 56px);
  --section: clamp(56px, 7vw, 104px);
  --measure: 62ch;
  --wide: 1200px;         /* header */
  --panel: 1600px;        /* white panel on Home and About: fills more of a big screen (W2, Canice 27 Sep) */
  --radius: 0;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --callbar: 72px;        /* height of the phone call bar, incl. padding */
  --header: 148px;        /* pinned header height on a computer */
}

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

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

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

@media (min-width: 700px) {
  html { scroll-padding-top: calc(var(--header) + var(--s4)); }
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.3125rem;          /* 21px on phones */
  line-height: 1.55;
  font-weight: 400;
  padding-bottom: var(--callbar);  /* room for the phone call bar */
}

@media (min-width: 700px) {
  body { padding-bottom: 0; }
}

@media (min-width: 900px) {
  body { font-size: 1.5rem; line-height: 1.5; }  /* 24px; her site uses 25px */
}

::selection { background: var(--deep-soft); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.15;
  color: inherit;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 1.3rem + 0.4vw, 1.625rem); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

a {
  color: var(--deep);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
}

:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 30;
  padding: var(--s3) var(--s4);
  background: var(--deep);
  color: #FFFFFF;
}
.skip-link:focus { top: var(--s4); }

.section-title { text-align: center; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  min-height: 50px;
  padding: 0 var(--s7);
  border: 1.5px solid var(--leaf);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease), transform 100ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--leaf); color: #FFFFFF; }
.btn-outline { background: transparent; color: var(--deep); border-color: var(--deep); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--leaf-hover); border-color: var(--leaf-hover); }
  .btn-outline:hover { background: var(--sage-pale); }
}

.btn .icon { width: 20px; height: 20px; flex: none; }

/* Her small arrows on buttons and links: "this leads somewhere" (D6, D9) */
.chev {
  width: 1em;
  height: 1em;
  flex: none;
  margin-right: -0.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* "Opens somewhere else": links that leave her site open in a new tab (26 Sep) */
.ext {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  margin-left: 0.3em;
  vertical-align: -0.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Read aloud by screen readers, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A plain text link with a 44px tap height */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 44px;
}

/* ---------- Header (pinned on a computer, as on her site; scrolls away on a phone) ---------- */

.site-header {
  padding: var(--s4) var(--gutter) var(--s1);
  background: var(--canvas);
  text-align: center;
}

@media (min-width: 700px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding-top: var(--s5);
    box-shadow: 0 1px 0 rgba(56, 56, 56, 0.08);
  }
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--wide);
  margin-inline: auto;
}

/* Her bordered name box, with the butterfly in its own cell */
.brand {
  grid-column: 2;
  display: inline-flex;
  align-items: stretch;
  min-height: 46px;                 /* tap target, 44px plus the border */
  border: 1px solid var(--ink);
}

.mark {
  display: grid;
  place-items: center;
  width: 52px;
  border-right: 1px solid var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mark svg,
.mark img {
  grid-area: 1 / 1;
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: opacity 220ms var(--ease);
}

.mark .flower { opacity: 0; }
.mark.is-flower .butterfly { opacity: 0; }
.mark.is-flower .flower { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .mark:hover .butterfly { opacity: 0; }
  .mark:hover .flower { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mark svg, .mark img { transition: none; }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  padding: var(--s1) var(--s5);
  color: var(--ink);
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem);
  line-height: 1.25;
  text-decoration: none;
}

@media (min-width: 700px) {
  .mark { width: 64px; }
  .mark svg, .mark img { width: 48px; height: 48px; }
}

.header-call {
  grid-column: 3;
  justify-self: end;
  display: none;
}

@media (min-width: 700px) {
  .header-call { display: inline-flex; min-height: 46px; padding: 0 var(--s5); font-size: 1.0625rem; }
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  /* Phones: the five items spread across the full width (one line at 360px, measured).
     Computers: spread wide, as on her site (about 980px across at 1440). */
  justify-content: space-between;
  gap: 0 8px;
  margin: var(--s2) 0 0;
  padding: 0;
}

@media (min-width: 700px) {
  .site-nav ul { max-width: 1000px; margin: var(--s3) auto 0; gap: 0 var(--s6); }
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

@media (min-width: 700px) {
  .site-nav a { font-size: 1.3125rem; min-height: 48px; }   /* 21px, as hers */
}

/* The current page and the one under the mouse turn green, as on her site (D4).
   Leaf green, not her #75B28A: menu text needs 4.5:1 and hers is 2.47:1. */
.site-nav a[aria-current="page"] { color: var(--leaf); }

@media (hover: hover) and (pointer: fine) {
  .site-nav a { transition: color 150ms var(--ease); }
  .site-nav a:hover { color: var(--leaf); }
}

/* ---------- Phone menu: three bars that open a panel from the right, as on her site (E11) ----------
   Only when the page script runs (.js on <html>); without it the menu above simply stays open. */

.menu-toggle { display: none; }

@media (max-width: 699.98px) {
  .js .header-top { grid-template-columns: 1fr auto; }
  .js .brand { grid-column: 1; justify-self: start; }

  .js .menu-toggle {
    display: inline-grid;
    place-items: center;
    position: relative;
    z-index: 40;                /* stays above the open panel, where it becomes the ✕ */
    width: 48px;
    height: 48px;
    margin-right: -8px;         /* the bars line up with the page edge */
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle svg {
    grid-area: 1 / 1;
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }

  .menu-toggle .cross,
  .menu-toggle[aria-expanded="true"] .bars { visibility: hidden; }
  .menu-toggle[aria-expanded="true"] .cross { visibility: visible; }

  .js .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 30;                /* above the call bar */
    width: min(82vw, 360px);
    padding: 132px var(--s8) var(--s8);
    overflow-y: auto;
    background: var(--canvas);
    text-align: left;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 280ms var(--ease), visibility 0s linear 280ms;
  }

  .menu-open .site-nav {
    visibility: visible;
    transform: none;
    transition: transform 280ms var(--ease);
  }

  .js .site-nav ul { flex-direction: column; gap: var(--s2); margin: 0; }
  .js .site-nav a { font-size: 1.875rem; min-height: 56px; }

  /* The rest of the page dims behind the panel and stops scrolling; a tap on it closes the menu */
  html.menu-open { overflow: hidden; }
  .menu-open body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(34, 40, 36, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .site-nav, .menu-open .site-nav { transition: none; }
}

/* ---------- Hero: her title in the grass under the swing ---------- */

/* Round 7 (D1): no shade on the photo. The crops (tools/make-images.py) put the
   seat in the upper middle, as on her site, so the title sits in the grass
   below it. A light photo wins over the 3:1 rule for this title only (PLAN,
   Decisions); the glow hugging the letters helps, and its contrast is measured. */
.hero { position: relative; overflow: hidden; }

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (min-width: 700px) {
  .hero-img { aspect-ratio: 16 / 9; }
}

@media (min-width: 1100px) {
  .hero-img { aspect-ratio: 2 / 1; }
}

.hero-text {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 6%, 72px);
  text-align: center;
  color: #FFFFFF;
}

.hero h1 {
  font-size: clamp(2.125rem, 1rem + 4.2vw, 4.375rem);   /* 34px phone, 70px at 1440 as hers */
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow:
    0 0 1px rgba(10, 16, 12, 0.55),
    0 0 4px rgba(10, 16, 12, 0.55),
    0 0 10px rgba(10, 16, 12, 0.45),
    0 0 24px rgba(10, 16, 12, 0.3);
}

.hero h1 .line { display: block; }

.hero h1 .place {
  display: block;
  margin-top: var(--s4);
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ---------- Welcome (her white panel on the sage band) ---------- */

.welcome {
  background: var(--sage);
  padding: var(--gutter);
}

@media (min-width: 700px) {
  .welcome { padding: var(--section) var(--gutter); }
}

.welcome-panel {
  display: grid;
  max-width: var(--panel);
  margin-inline: auto;
  background: var(--canvas);
}

.welcome-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 18%;
}

.welcome-text {
  padding: var(--s7) var(--s5) var(--s8);
}

.welcome-text h2 {
  padding-bottom: var(--s4);
  margin-bottom: var(--s6);
  border-bottom: 1px solid var(--ink);
}

.welcome-text p { max-width: var(--measure); }

.welcome-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  margin-top: var(--s8);
}

.iahip {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.45;
  max-width: 34rem;
}

/* Larger, so her accreditation stands out as on her site (Canice, 27 Sep; was 140px) */
.iahip img { width: 240px; height: auto; flex: none; }

@media (max-width: 699.98px) {
  .iahip { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 900px) {
  .welcome-panel { grid-template-columns: 4fr 7fr; }
  .welcome-photo img { height: 100%; aspect-ratio: auto; object-position: 50% 30%; }
  .welcome-text { padding: var(--s10) clamp(40px, 5vw, 80px); align-self: center; }
}

/* ---------- How I can help: six tiles on a photo, as on her site ---------- */

.help { padding-top: var(--section); }

/* Her small arrow under the heading */
.down-arrow {
  display: block;
  width: 16px;
  height: 44px;
  margin: var(--s5) auto 0;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.down-arrow .head { fill: var(--ink); stroke: none; }

.help-band {
  position: relative;
  margin-top: var(--s6);
  padding: var(--s8) var(--gutter);
}

@media (min-width: 700px) {
  .help-band { padding: var(--s10) var(--gutter); }
}

.band-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* D7: on a computer the photo stays still and the band scrolls over it, as on
   her site. The band clips a screen-fixed photo (works in Safari too, unlike
   background-attachment: fixed). Off for reduced motion, and on very tall
   windows (full-page screenshots), where it would show a stretched photo. */
@media (min-width: 900px) and (hover: hover) and (max-height: 1400px) and (prefers-reduced-motion: no-preference) {
  .help-band { clip-path: inset(0); }
  .band-photo img { position: fixed; }
}

.tiles {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
}

.tiles li {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: var(--s4) var(--s3);
  background: var(--tile);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
  .tiles li { min-height: 124px; font-size: 1.5rem; }
}

.help-more {
  position: relative;
  margin-top: var(--s7);
  text-align: center;
}

/* ---------- Practice information: three picture cards, as on her site ---------- */

.practice {
  background: var(--stone);
  padding: var(--section) var(--gutter);
}

.cards {
  display: grid;
  gap: var(--s6);
  max-width: 1120px;
  margin: var(--s8) auto 0;
}

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: var(--s7); }
}

.card { background: var(--canvas); }

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;          /* shorter on phones: three cards stack */
  object-fit: cover;
}

@media (min-width: 900px) {
  .card img { aspect-ratio: 4 / 3; }
}

.card-body {
  padding: var(--s6) var(--s6) var(--s7);
  text-align: center;
}

.card-body h3 { margin-bottom: var(--s3); }

/* ---------- Blog: her sage band with a picture card ---------- */

.blog {
  background: var(--sage);
  padding: var(--section) var(--gutter);
}

.blog-grid {
  display: grid;
  gap: var(--s7);
  max-width: 1000px;
  margin-inline: auto;
}

.blog-intro { text-align: center; }

.blog-intro h2 { font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem); font-weight: 400; }

.blog-intro h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: var(--s5) auto 0;
  background: var(--ink);
}

.blog-intro p { margin-top: var(--s3); }
.blog-intro a { color: var(--ink); }   /* dark on sage: 6.07:1 */

.post-card { background: var(--canvas); display: grid; }

.post-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-body { padding: var(--s7) var(--s5) var(--s8); }

.post-subtitle { margin-top: var(--s2); color: var(--ink-soft); }

.post-body blockquote {
  margin: var(--s6) 0;
  padding-left: var(--s5);
  border-left: 2px solid var(--accent);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.35;
}
.post-body blockquote p { margin: 0; }
.post-body blockquote footer { margin-top: var(--s2); color: var(--ink-soft); font-size: 1rem; }

.post-excerpt { margin-bottom: var(--s7); }

/* K4: the heading now sits centred above the card (as her other sections do),
   so there is no empty column beside it on a computer */
@media (min-width: 900px) {
  .post-card { grid-template-columns: 5fr 7fr; }
  .post-card img { height: 100%; aspect-ratio: auto; }
  .post-body { padding: var(--s8) var(--s8) var(--s8); }
}

/* ---------- Get in touch: light and simple, as on her site (D15) ---------- */

.contact {
  background: var(--surface);
  padding: var(--section) var(--gutter);
}

.contact-intro { max-width: 34rem; margin: var(--s4) auto 0; text-align: center; }

/* Phone | Email | Address, side by side on a computer with her thin dividers */
.contact-info {
  list-style: none;
  display: grid;
  max-width: 1000px;
  margin: var(--s8) auto 0;
  padding: 0;
  border-top: 1px solid var(--ink-soft);
  text-align: center;
}

.contact-info li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  padding: var(--s5) var(--s4);
}

.contact-info li + li { border-top: 1px solid var(--line); }

.contact-info .label { color: var(--ink-soft); font-size: 1.125rem; }

.contact-info a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.contact-info .phone {
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);   /* the main call: a little larger */
  letter-spacing: 0.01em;
}

@media (min-width: 900px) {
  .contact-info { grid-template-columns: 1fr 1.4fr 1fr; }
  .contact-info li + li { border-top: 0; border-left: 1px solid var(--ink-soft); }
}

.form-panel {
  max-width: 1000px;
  margin: var(--s9) auto 0;
  padding: var(--s7) var(--s5);
  background: var(--canvas);
}

/* h3 on Home, h2 on Contact: the same size either way */
.form-panel h3,
.form-panel h2 { margin-bottom: var(--s2); font-size: clamp(1.375rem, 1.3rem + 0.4vw, 1.625rem); }
.form-panel .hint { color: var(--ink-soft); font-size: 1rem; }

.field { margin-top: var(--s5); }

.field label {
  display: block;
  margin-bottom: var(--s1);
  font-weight: 500;
  font-size: 1.0625rem;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3);
  border: 1px solid #7C877E;    /* 3.9:1 against white: a visible field edge */
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 0; }

@media (min-width: 700px) {
  .form-panel { padding: var(--s8); }
  .form-panel form { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
  .form-panel form > * { grid-column: 1 / -1; }
  .form-panel form > .field:not(.field-wide) { grid-column: auto; }
}

.form-actions { margin-top: var(--s6); }

/* After Send: what happened, in words (js/contact-form.js). Hidden until then */
.form-status {
  margin-top: var(--s5);
  padding: var(--s4) var(--s5);
  border-left: 4px solid var(--leaf);
  background: var(--sage-pale);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.form-status.is-error { border-left-color: var(--alert); background: var(--alert-pale); }

/* The box that needs attention */
.field [aria-invalid="true"] { border-color: var(--alert); border-width: 2px; }

.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Map: a still picture (tools/make-map.py), so it shows at once and nothing loads
   from Google: no cookies, no banner. The whole picture opens Google Maps (D16, 26 Sep). */
.map {
  max-width: 1000px;
  margin: var(--s9) auto 0;
}

.map-picture {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  text-decoration: none;
}

.map-picture img { width: 100%; height: auto; }

/* The pin's tip sits on her house: 88.75% across the phone picture, the centre of the wide one */
.map .pin {
  position: absolute;
  left: 88.75%;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -92%);
  fill: var(--deep);
  stroke: var(--canvas);
  stroke-width: 1.5;
}

.map .pin circle { fill: var(--canvas); stroke: none; }

@media (min-width: 700px) {
  .map .pin { left: 50%; }
}

.map-open {
  position: absolute;
  right: var(--s3);
  bottom: var(--s3);
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s2) var(--s4);
  background: var(--canvas);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  color: var(--deep);
  font-size: 1rem;
}

@media (hover: hover) and (pointer: fine) {
  .map-picture:hover .map-open { text-decoration: underline; }
}

/* OpenStreetMap asks for this credit wherever its map is shown */
.map figcaption {
  margin-top: var(--s2);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-align: right;
}

.map figcaption a { color: inherit; }

/* Honeypot: hidden from people, visible to spam robots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- About Helen: Home's white panel, portrait on the right, as on her About page ---------- */

/* Her About page sits on a pale grey band, not the sage of Home */
.about-intro {
  background: var(--surface);
  padding: var(--gutter);
}

@media (min-width: 700px) {
  .about-intro { padding: var(--section) var(--gutter); }
}

.about-intro h1 {
  padding-bottom: var(--s4);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
  font-weight: 400;
}

.about-role { color: var(--ink-soft); margin-bottom: var(--s6); }

.about-cta { margin-top: var(--s8); }

@media (min-width: 900px) {
  .about-panel { grid-template-columns: 7fr 4fr; }
  .about-panel .welcome-photo { order: 2; }
}

/* "My aim...": one centred paragraph between the panel and the qualifications, as hers */
.about-aim {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--section) var(--gutter) 0;
  text-align: center;
}

/* Her short rule above the heading */
.about-experience { padding: var(--section) var(--gutter); }

.about-experience .section-title::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin: 0 auto var(--s6);
  background: var(--ink);
}

.about-body {
  max-width: var(--measure);
  margin: var(--s8) auto 0;
}

/* Her accreditation at full size, as on her About page: badge above, sentence in body text (Canice, 27 Sep) */
.about-iahip {
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  margin: var(--s9) 0;
  max-width: none;
  color: var(--ink);
  font-size: inherit;
  line-height: inherit;
  text-align: center;
}

.about-iahip img { width: min(300px, 80%); }

.about-list-title {
  margin-bottom: var(--s4);
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
}

/* Left-aligned, so the longer lines read easily (hers are centred) */
.qualifications {
  margin: 0;
  padding-left: 1.2em;
}

.qualifications li { padding-left: var(--s2); margin-bottom: var(--s3); }
.qualifications li::marker { color: var(--leaf); }

.about-experience .about-cta { text-align: center; }

/* ---------- My Services: About's panel with Mountain View on the left, as on her Services page ---------- */

/* Her landscape keeps its shape on phones (the portrait's square crop would cut the mountain) */
.services-panel .welcome-photo img { aspect-ratio: 899 / 575; object-position: 50% 50%; }

@media (min-width: 900px) {
  .services-panel { grid-template-columns: 6fr 5fr; }   /* her photo is the wider half */
  .services-panel .welcome-photo img { aspect-ratio: auto; object-position: 50% 45%; }
}

.services-help { padding: var(--section) var(--gutter); }

.services-help .section-title::before,
.methods .section-title::before,
.services-contact .section-title::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin: 0 auto var(--s6);
  background: var(--ink);
}

.services-quote {
  margin: var(--s7) 0;
  padding-left: var(--s5);
  border-left: 2px solid var(--accent);
  font-style: italic;
}

/* Text, button and list share one left edge, as hers */
.services-help .about-body { max-width: 1000px; }
.services-help .about-body p { max-width: var(--measure); }

/* Her issues list under the button, with her pond photo beside both on a computer (R3) */
.issues {
  display: grid;
  gap: var(--s8);
  max-width: 1000px;
  margin: var(--s7) auto 0;
  align-items: start;
}

.issues-more { margin-bottom: var(--s7); }

.issues-photo img { width: 100%; height: auto; }

@media (min-width: 700px) {
  .issues { grid-template-columns: 1fr 1fr; gap: var(--s10); }
}

/* Canice chose the overlap version, 27 Sep (R1, R4) */

/* R1: her white box over the right edge of the mountain photo */
@media (min-width: 900px) {
  .services-panel {
    grid-template-columns: repeat(12, 1fr);
    background: transparent;
  }
  .services-panel .welcome-photo { grid-column: 1 / 9; grid-row: 1; }
  .services-panel .welcome-text {
    grid-column: 8 / 13;
    grid-row: 1;
    position: relative;
    margin-block: var(--s10);     /* the photo stands a little taller than the box */
    background: var(--canvas);
  }
}

/* R4: each card's white box rises into its picture, all by the same amount */
.methods .card { display: flex; flex-direction: column; background: transparent; }
.methods .card-body {
  flex: 1;
  position: relative;
  margin: -48px var(--s4) 0;
  background: var(--canvas);
}

.methods-intro {
  max-width: var(--measure);
  margin: var(--s6) auto 0;
  text-align: center;
}

/* Her card text is left-aligned: longer sentences than Home's cards */
.methods .card-body { text-align: left; }

.services-contact {
  padding: var(--section) var(--gutter);
  text-align: center;
}

.services-contact p { margin-top: var(--s6); }

/* ---------- Blog: her pale grey band with the article card, as on her Blog page ---------- */

.blog-page {
  background: var(--surface);
  padding: var(--section) var(--gutter);
}

.blog-page h1,
.contact-page h1 {
  text-align: center;
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
  font-weight: 400;
}

/* Home's short rule under "My blog" */
.blog-page h1::after,
.contact-page h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: var(--s5) auto 0;
  background: var(--ink);
}

.blog-page .post-card {
  max-width: 1000px;
  margin: var(--s9) auto 0;
}

.blog-page .post-body h2 { font-weight: 400; }

/* ---------- Blog post: one white box on the pale grey band, as on her post ---------- */

.post-page {
  background: var(--surface);
  padding: var(--s6) var(--s4) var(--section);
}

@media (min-width: 700px) {
  .post-page { padding: var(--section) var(--gutter); }
}

.post-article {
  max-width: 820px;
  margin-inline: auto;
  padding: var(--s8) var(--s5);
  background: var(--canvas);
}

@media (min-width: 800px) {
  .post-article { padding: var(--s10) 90px; }
}

.post-article h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
  font-weight: 400;
}

.post-photo {
  width: 100%;
  height: auto;
  margin: var(--s7) 0;
}

/* Her green subtitle, in the green that passes on white (4.65:1) */
.post-lead {
  color: var(--leaf);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
}

.post-quote {
  margin: var(--s7) 0 var(--s8);
  padding-left: var(--s5);
  border-left: 2px solid var(--accent);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.35;
}
.post-quote p { margin: 0; }
.post-quote footer { margin-top: var(--s2); color: var(--ink-soft); font-size: 1rem; }

.post-article > p { margin-bottom: 1.25em; }

.post-strong { font-weight: 500; }

.post-article h2 {
  margin: var(--s9) 0 var(--s5);
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
}

.post-contact {
  margin-top: var(--s9);
  padding-top: var(--s7);
  border-top: 1px solid var(--line);
}

.post-contact p { margin-bottom: var(--s5); }
.post-contact p:last-child { margin: var(--s6) 0 0; }

/* ---------- Privacy policy: the post's white box, with lists and draft notes ---------- */

.policy h1 { margin-bottom: var(--s6); }   /* no photo under it, unlike the post */
.policy ul { margin: 0 0 1.25em; padding-left: 1.2em; }
.policy li { margin-bottom: var(--s2); }
.policy-updated { margin-top: var(--s7); color: var(--ink-soft); }

/* DRAFT ONLY: the banner and the notes for Helen and Canice. Remove at go-live (README).
   The form's attention colours: text on the pale box 10.42:1 (TESTING.md) */
.draft-banner,
.draft-note {
  border-left: 4px solid var(--alert);
  background: var(--alert-pale);
  padding: var(--s4) var(--s5);
  font-size: 1rem;
}
.draft-banner { margin: 0 0 var(--s7); }
.draft-note { margin: 0 0 1.25em; }
.draft-note p { margin: 0; }

/* ---------- Footer: her sage band ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s7);
  padding: var(--s8) var(--gutter);
  background: var(--sage);
  color: var(--ink);
  font-size: 1.0625rem;
  text-align: center;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); }

/* ---------- Phone call bar (phones only) ---------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  background: var(--deep);
  box-shadow: 0 -4px 16px rgba(30, 48, 36, 0.18);
}

.callbar .btn {
  width: 100%;
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: var(--deep);
}

@media (min-width: 700px) {
  .callbar { display: none; }
}

/* ---------- Contact: her pale grey band, phone first, pond photo beside the form ---------- */

/* Uses Home's .contact block (phone, email, address, form, map) with a page title */
.contact-split { max-width: 1000px; margin: var(--s9) auto 0; }
.contact-split .form-panel { margin: 0; }

/* On phones the photo is left out, so the form follows the phone number closely.
   A hidden lazy image is not downloaded */
.contact-photo { display: none; }

@media (min-width: 900px) {
  .contact-split { display: grid; grid-template-columns: 2fr 3fr; }
  .contact-photo { display: block; }
  .contact-photo img { width: 100%; height: 100%; object-fit: cover; }
  /* Beside the photo the form is narrower: one box per row */
  .contact-split .form-panel form { display: block; }
}

/* ---------- Back to top (12 Oct, as on her Wix site; js/to-top.js) ---------- */

/* Bottom right; on a phone it sits just above the call bar, never over the number */
.to-top {
  position: fixed;
  right: var(--s4);
  bottom: calc(var(--callbar) + var(--s3) + env(safe-area-inset-bottom));
  z-index: 11;                /* above the call bar, below the menu */
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--deep);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(30, 48, 36, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.menu-open .to-top { visibility: hidden; }   /* like the rest of the page while the menu is open */
.site-header:focus { outline: none; }        /* focus lands here after the button; no ring */

@media (min-width: 700px) {
  .to-top { right: var(--s5); bottom: var(--s5); }   /* no call bar on a computer */
}

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}
