/* Re:Function — styles recreated from the Canva design */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-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;
}

/* ---------- Design tokens ---------- */
:root {
  --cream: #f5f2ee;
  --sage: #cdd1cb;
  --green: #5d7466;
  --green-dark: #3f5246;
  --logo: #606b65;        /* logo drawing colour: 4.97:1 on cream */   /* links: 5.4:1 on sage, 7:1+ on cream */
  --accent: #99a69c;       /* decorative only (rules, quote marks) */
  --accent-text: #7a887d;  /* Canva #99a69c darkened to reach 3:1 for large numerals */
  --text: #4a4a4a;
  --white: #ffffff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.9375rem;  /* labels, captions, references */
  --step-0: 1.0625rem;   /* body text */
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --step-3: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem);
  --step-4: clamp(2.5rem, 1.8rem + 3vw, 3.5rem);

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3rem, 2rem + 4vw, 5rem);

  --content: 64rem;
  --measure: 42rem;
  --header-h: 4.5rem;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
/* <picture> only chooses the file (WebP or JPEG, right size); layout styles target the <img>. */
picture { display: contents; }
picture > source { display: none; }  /* otherwise it becomes a grid/flex item */

h1, h2, h3 {
  margin: 0 0 var(--space-s);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-s); }

/* Links in running text keep an underline: link and body colours differ by only 1.06:1,
   so the underline is what identifies them (WCAG 1.4.1). It's softened at rest and
   turns solid on hover/focus. */
a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}
a:hover,
a:focus-visible { text-decoration-thickness: 2px; text-decoration-color: currentColor; }

/* Stand-alone links whose position or styling already marks them as links
   (breadcrumbs, arrow links, card titles): no underline until hover/focus. */
.breadcrumb a,
.more-link,
.back-link,
.quote__more,
.service-card__title a,
.article-card h2 a,
.related .article-card h3 a,
.site-header__logo,
.social a { text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible,
.more-link:hover, .more-link:focus-visible,
.back-link:hover, .back-link:focus-visible,
.quote__more:hover, .quote__more:focus-visible,
.service-card__title a:hover, .service-card__title a:focus-visible,
.article-card h2 a:hover, .article-card h2 a:focus-visible,
.related .article-card h3 a:hover, .related .article-card h3 a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--text); }

:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }

/* ---------- Bands ---------- */
.band { padding-block: var(--space-xl); }
.band--cream { background: var(--cream); }
.band--sage { background: var(--sage); }

.section-head {
  max-width: var(--content);
  margin: 0 auto var(--space-l);
  padding-inline: var(--space-m);
  text-align: center;
}
.section-head p { margin: 0; font-size: var(--step-0); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid rgb(0 0 0 / 0.06);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-m);
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem var(--space-m);
}
.site-header__logo { flex: none; display: flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }
.site-header__logo img { width: 3.5rem; height: auto; }
.site-header__logo {
  gap: 0.625rem;
  color: var(--logo);
  text-decoration: none;
}
.site-header__name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-header__logo:hover .site-header__name { text-decoration: underline; text-underline-offset: 0.2em; }

.site-nav { flex: 1 1 auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.5rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.625rem;
  color: var(--text);
  font-size: var(--step-0);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

@media (max-width: 52rem) {
  /* Sticky header would cover too much of a small screen once the nav wraps. */
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }
  .site-nav ul { justify-content: flex-start; }
}

/* ---------- Hero ---------- */
/* Hero: text on cream, photo as a framed card capped at ~40rem so the
   1359px source is never upscaled (≈2 source px per CSS px on retina). */
.hero {
  background: var(--cream);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40rem);
  align-items: center;
  gap: var(--space-xl);
  max-width: 80rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-l) calc(var(--space-xl) + 1.5rem);
}
.hero__content { max-width: 34rem; justify-self: end; }
.hero h1 { margin: 0; color: var(--green-dark); line-height: 1.05; }
.hero__name {
  display: block;
  font-size: clamp(2.75rem, 1.5rem + 4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero__tagline {
  margin: var(--space-xs) 0 var(--space-m);
  font-size: var(--step-2);
  color: var(--text);
}
.hero__text { font-size: var(--step-1); line-height: 1.5; }
.hero__media {
  position: relative;
  max-width: 40rem;
}
/* Sage block offset behind the photo, echoing the Canva shapes */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  background: var(--sage);
  border-radius: 6px;
}
.hero__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 58% center;
  border-radius: 6px;
  box-shadow: 0 1rem 2.5rem rgb(40 46 42 / 0.18);
}
.hero__text p { margin: 0; }

@media (max-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-l);
    padding: var(--space-m) var(--space-m) var(--space-l);
  }
  .hero__media { order: -1; margin-right: 1rem; justify-self: center; width: 100%; }
  .hero__media::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
  .hero__content { justify-self: start; }
  .hero__image { aspect-ratio: 16 / 9; }
  .hero__tagline { margin-bottom: var(--space-s); }
  .hero__text { font-size: var(--step-0); }
}

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "portrait title"
    "portrait text";
  align-items: start;
  column-gap: var(--space-xl);
  max-width: var(--content);
  margin: 0 auto;
  padding-inline: var(--space-m);
}
.about__title {
  grid-area: title;
  max-width: 22ch;
  font-size: var(--step-3);
  text-align: center;
  justify-self: center;
}
.about__portrait {
  grid-area: portrait;
  position: relative;
  margin: 0;
}
.about__portrait img { width: 100%; }
.name-card {
  position: absolute;
  right: -1.5rem;
  bottom: 30%;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem;
  background: var(--green);
  color: var(--white);
  text-align: center;
}
.name-card__name {
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.6);
  font-size: var(--step--1);
  font-weight: 500;
}
.name-card__role { font-size: var(--step--1); }
.about__text {
  grid-area: text;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
}
.about__text strong { font-weight: 700; }
.about__closing {
  margin-top: var(--space-m);
  font-size: var(--step-1);
  font-weight: 700;
}

@media (max-width: 48rem) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "portrait" "text";
  }
  .about__portrait { max-width: 24rem; margin: 0 auto var(--space-l); }
  .name-card { position: static; }
}

/* ---------- Services ---------- */
/* Cards (templates/partials/service-card.html) are shared with the /ypiresies/ page;
   their styles live under "Services index" below. */

/* ---------- Approach (process steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-m);
  max-width: 58rem;
  margin: 0 auto;
  padding-inline: var(--space-m);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-m) var(--space-m) calc(var(--space-l) + 2rem);
  background: var(--cream);
  text-align: center;
  /* Ribbon-shaped bottom edge, as in the design */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 2rem), 0 100%);
}
.step__number {
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-text);
}
.step__number::after {
  content: "";
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  margin: var(--space-m) auto;
  border-radius: 50%;
  background: var(--accent);
}
.step h3 {
  font-size: var(--step-2);
  font-weight: 400;
}
.step h3::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 1px;
  margin: var(--space-m) auto 0;
  background: var(--green);
}
.step p { font-size: var(--step-0); margin: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1rem;
  padding-top: var(--space-xl);
  background: var(--cream);
}
.gallery img { width: 100%; height: 100%; max-height: 22rem; object-fit: cover; }

@media (max-width: 40rem) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Testimonials & recommendations ---------- */
/* Quote columns (patients and professionals). Text is left-aligned for readability;
   names/credentials and "read more" links sit at the bottom so they line up. */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  max-width: var(--content);
  margin: 0 auto;
  padding-inline: var(--space-m);
}
.quotes > li {
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-l) var(--space-m);
  text-align: left;
}
.quotes > li + li { border-left: 1px solid var(--accent); }

.quote {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
}
.quote::before {
  content: "\201C";
  content: "\201C" / "";
  display: block;
  height: 3rem;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: var(--step-0);
  line-height: 1.55;
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  font-size: var(--step-0);
  line-height: 1.4;
}
.quote figcaption::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 1px;
  margin: var(--space-xs) 0 var(--space-s);
  background: var(--accent);
}
.quote__author { font-weight: 700; }
.quote__role { font-size: var(--step--1); color: var(--text); }
.quote__more {
  margin-top: var(--space-s);
  font-weight: 600;
  align-self: flex-start;
}

/* Patients: white cards, so they read as a different group from the professionals */
.quotes--cards { gap: var(--space-m); }
.quotes--cards > li {
  padding: var(--space-m) var(--space-m) var(--space-l);
  background: var(--white);
  border-radius: 6px;
}
.quotes--cards > li + li { border-left: 0; }

@media (max-width: 52rem) {
  .quotes > li { padding-inline: 0; }
  .quotes > li + li {
    border-left: 0;
    border-top: 1px solid var(--accent);
    padding-top: var(--space-m);
  }
  .quotes--cards { gap: var(--space-s); }
  .quotes--cards > li { padding: var(--space-s) var(--space-m) var(--space-m); }
  .quotes--cards > li + li { border-top: 0; padding-top: var(--space-s); }
  /* Phones: smaller quote mark and tighter spacing to keep the sections short */
  .quote::before { height: 2.25rem; font-size: 3.25rem; }
  .quote blockquote p { margin-bottom: var(--space-xs); }
  .quote figcaption::before { margin: 0 0 var(--space-xs); }
  .quotes > li:not(:first-child) { padding-top: var(--space-s); }
  .quotes:not(.quotes--cards) > li { padding-bottom: var(--space-s); }
  .quote__more { margin-top: var(--space-xs); }
}

/* ---------- FAQ ---------- */
.faq__inner {
  max-width: 46rem;  /* ~75 characters per line */
  margin: 0 auto;
  padding-inline: var(--space-m);
}
.faq h2 { text-align: center; margin-bottom: var(--space-l); }
.faq__item {
  padding-block: var(--space-s);
  border-bottom: 1px solid var(--accent-text);
  font-size: var(--step-0);
}
.faq__item:last-child { border-bottom: 0; }
.faq__item h3 { font-size: var(--step-0); margin-bottom: var(--space-xs); }
.faq__item p:last-child { margin-bottom: 0; }
.faq__item ol, .faq__item ul { margin: 0 0 var(--space-xs); padding-left: 1.5rem; }
.faq__sources li { margin-bottom: 0.25rem; overflow-wrap: anywhere; }

/* ---------- Articles list (home) ---------- */
.articles__inner {
  max-width: 48rem;
  margin: 0 auto;
  padding-inline: var(--space-m);
}
.articles h2 { text-align: center; color: #000; }
.article-links { padding-left: 1.25rem; font-size: var(--step-1); }
.article-links li { margin-bottom: 0.25rem; }
.article-links a { color: var(--text); }
.article-links a:hover { color: var(--green-dark); }

/* ---------- Contact ---------- */
/* Same idea as the hero: text beside a framed photo card, never text on the photo. */
.contact {
  background: var(--sage);
  border-top: 1px solid var(--accent-text);  /* separates it from sage bands above (FAQ, steps) */
  overflow: hidden;
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-xl);
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-l) calc(var(--space-xl) + 1.5rem);
}
.contact__media { position: relative; max-width: 28rem; }
.contact__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem 1.5rem -1.5rem -1.5rem;
  background: var(--green);
  border-radius: 6px;
}
.contact__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1rem 2.5rem rgb(40 46 42 / 0.2);
}
.contact__body h2 { margin-bottom: var(--space-s); }
.contact__intro { font-size: var(--step-1); max-width: 30rem; }
.contact__list { margin-top: var(--space-m) !important; font-size: var(--step-2); font-weight: 600; }
.contact__list li + li { margin-top: var(--space-s); }
.contact__label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact__list a { overflow-wrap: anywhere; }

@media (max-width: 48rem) {
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-l);
    padding: var(--space-l) var(--space-m) var(--space-xl);
  }
  .contact__media { margin-left: 1rem; width: calc(100% - 1rem); max-width: 22rem; }
  .contact__media::before { inset: 0.75rem 0.75rem -0.75rem -0.75rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-xl) var(--space-m);
  background: var(--green);
  color: var(--cream);
  text-align: center;
}
.site-footer__name { font-weight: 600; font-size: var(--step-0); margin-bottom: var(--space-xs); }
.site-footer__role { font-size: var(--step--1); }
.social { display: flex; justify-content: center; gap: var(--space-s); margin-top: var(--space-m); }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--cream);
}
.social svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.site-footer :focus-visible { outline-color: var(--cream); }

/* ---------- Article & letter pages ---------- */
.article__inner,
.letter__inner,
.articles-index {
  max-width: var(--content);
  margin: 0 auto;
  padding-inline: var(--space-m);
}
.letter__inner { max-width: var(--measure); }

.breadcrumb { margin-bottom: var(--space-l); font-size: var(--step--1); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.25rem; color: var(--text); }
.breadcrumb a[aria-current] { color: var(--text); text-decoration: none; }

.article__header { max-width: var(--measure); margin-bottom: var(--space-l); }
.article__category {
  margin-bottom: var(--space-xs);
  color: var(--green-dark);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article h1, .letter h1, .articles-index h1 { font-size: var(--step-3); }
.article__lead { font-size: var(--step-1); font-style: italic; }

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-l); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 var(--space-s); }
.prose blockquote {
  margin: var(--space-m) 0;
  padding-left: var(--space-m);
  border-left: 3px solid var(--accent);
  font-style: italic;
}

.glance {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: var(--space-m);
  background: var(--sage);
}
.glance h2 {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.glance ul { margin: 0; padding-left: 1.25rem; }
.glance li + li { margin-top: var(--space-xs); }

.article__footer {
  max-width: var(--measure);
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--accent-text);
}
.article__footer h2 { font-size: var(--step-1); }
.references { padding-left: 1.25rem; font-size: var(--step--1); overflow-wrap: anywhere; }
.disclaimer { font-size: var(--step--1); font-style: italic; }

.pager ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-m); margin-top: var(--space-l); }
.pager a { display: block; padding: var(--space-s); background: var(--white); text-decoration: none; color: var(--text); }
.pager a:hover { text-decoration: underline; }
.pager__label { display: block; color: var(--green-dark); font-size: var(--step--1); font-weight: 600; }
.pager__next { text-align: right; }

.article-cards { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.article-card { padding: var(--space-m); background: var(--white); }
.article-card h2 { font-size: var(--step-1); }
.article-card h2 a { color: var(--green-dark); }
.article-card p:last-child { margin: 0; font-size: var(--step-0); }

.letter__date { text-align: right; }
.letter__signature { margin-top: var(--space-l); }
.back-link { font-weight: 600; }

@media (max-width: 48rem) {
  .article__layout { grid-template-columns: minmax(0, 1fr); }
  .glance { position: static; order: -1; }
}

/* ---------- Multi-page additions ---------- */
.more-link { font-weight: 600; }
.more-link::after,
.quote__more::after { content: "\2192"; content: "\2192" / ""; margin-left: 0.35em; }
.back-link::before { content: "\2190"; content: "\2190" / ""; margin-right: 0.35em; }
.faq__more { margin: var(--space-m) 0 0; text-align: center; }


/* Section landing pages */
.section-head h1 { font-size: var(--step-3); }
.section-head__lead { font-size: var(--step-1); font-weight: 600; }

/* About page */
.about__title h1 { font-size: var(--step-3); margin-bottom: var(--space-xs); }
.about__subtitle { font-size: var(--step-1); font-weight: 600; }
.credentials__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--space-m);
}
.credentials ul { margin: 0; padding-left: 1.25rem; }
.credentials li + li { margin-top: var(--space-xs); }

/* Services index */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: var(--space-m);
  max-width: var(--content);
  margin: 0 auto;
  padding-inline: var(--space-m);
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
}
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-m);
}
.service-card__title { font-size: var(--step-1); margin-bottom: var(--space-xs); }
.service-card__title a { color: var(--green-dark); }
.service-card p { margin: 0 0 var(--space-m); font-size: var(--step-0); }
.service-card__more {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 600;
  font-size: var(--step--1);
}
.service-card__more::after { content: "\2192"; margin-left: 0.35em; }
.service-card:hover .service-card__title a { text-decoration: underline; }
@media (max-width: 40rem) {
  .service-card img { aspect-ratio: 16 / 9; }
}

/* Service page */
.service-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-xl);
  align-items: start;
}
.service-page h1 { font-size: var(--step-3); }
.service-page__lead { font-size: var(--step-1); font-style: italic; margin-bottom: var(--space-m); }
.service-page__image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Long service texts: keep the photo beside the text while scrolling (desktop only) */
@media (min-width: 48.01rem) {
  .service-page__image { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.related { margin-top: var(--space-xl); }
.related h2 { font-size: var(--step-2); }
.related .article-card h3 { font-size: var(--step-1); }
.related .article-card h3 a { color: var(--green-dark); }

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.button:hover { background: var(--text); text-decoration: underline; }
.cta { margin-top: var(--space-l); }

/* FAQ page: questions are h2 there, h3 on the home page */
.faq h1 { text-align: center; font-size: var(--step-3); margin-bottom: var(--space-xs); }
.faq__subtitle { text-align: center; font-size: var(--step-1); font-weight: 600; margin-bottom: var(--space-l); }
.faq__item h2 { font-size: var(--step-0); margin-bottom: var(--space-xs); text-align: left; }

@media (max-width: 48rem) {
  .service-page__layout { grid-template-columns: minmax(0, 1fr); }
  .service-page__image { order: -1; aspect-ratio: 16 / 9; }
}

/* ---------- Accessibility & usability pass ---------- */

/* Stand-alone links get a 44px-tall target (WCAG 2.5.5); links inside prose are exempt. */
.breadcrumb a,
.more-link,
.back-link,
.quote__more,
.article-links a,
.not-found__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.breadcrumb ol { align-items: center; }
.breadcrumb a { min-width: 2.75rem; justify-content: center; }

/* Hero call to action */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-s);
  margin-top: var(--space-m) !important;
}
.button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button--secondary {
  background: transparent;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 2px var(--green-dark);
}
.button--secondary:hover { background: var(--white); color: var(--green-dark); }

/* Home sections: heading + subtitle, "read more" row */
.faq__inner > h2 { margin-bottom: var(--space-xs); }
.section-more { margin: var(--space-m) 0 0; text-align: center; }

/* Testimonials page */
.testimonials-page__lead { font-size: var(--step-1); margin-bottom: var(--space-l); }
.testimonial {
  margin: 0 0 var(--space-l);
  padding: var(--space-m);
  background: var(--white);
  border-left: 4px solid var(--accent);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial figcaption { margin-top: var(--space-s); font-weight: 600; }

/* 404 */
.not-found__links { padding-left: 1.25rem; }

/* Small screens: logo and menu share the row; the 5 links wrap beside the logo
   in two rows (Σχετικά · Υπηρεσίες · Άρθρα / Συχνές ερωτήσεις · Επικοινωνία).
   Links keep 44px-tall targets. */
@media (max-width: 52rem) {
  .site-header__inner { flex-wrap: nowrap; align-items: stretch; column-gap: 1rem; padding-block: 0; padding-left: 0; }
  .site-nav { align-self: center; padding-block: 0.25rem; }
  /* Brand block: dark green tab flush with the left edge, full header height,
     white logo (logo-light.svg) and name (5.05:1). The menu stays on the light bar. */
  .site-header__logo {
    padding: 0.375rem 0.625rem;
    background: var(--green);
    color: var(--white);
  }
  .site-header__logo:focus-visible { outline-color: var(--white); outline-offset: -5px; }
  /* name under the drawing, so the menu keeps its room beside the logo */
  .site-header__logo { flex-direction: column; gap: 0.125rem; }
  .site-header__logo img { width: 2.75rem; }
  .site-header__name { font-size: 0.75rem; }
}
@media (max-width: 22.5rem) {
  .site-header__name { font-size: 0.6875rem; }
  .site-nav ul { gap: 0 0.625rem; }
}
/* between tablet and desktop: name beside the drawing, a little smaller */
@media (min-width: 52.01rem) and (max-width: 64rem) {
  .site-header__logo img { width: 3rem; }
  .site-header__name { font-size: 1.125rem; }
}
@media (max-width: 30rem) {
  .site-header__inner { column-gap: 0.75rem; padding: 0 0.625rem 0 0; }
  .site-header__logo { padding-inline: 0.5rem; }
  .site-header__logo img { width: 3rem; }
  .site-nav ul { gap: 0 0.875rem; }   /* clear gaps so multi-word links don't run together */
  .site-nav a { padding-inline: 0.25rem; font-size: 0.9375rem; }
}

/* Whole card is clickable (stretched title link): larger target, clear affordance
   now that card titles have no underline. Focus ring wraps the card. */
.article-card,
.service-card { position: relative; transition: box-shadow 0.15s ease; }
.article-card h2 a::after,
.article-card h3 a::after,
.service-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover,
.service-card:hover { box-shadow: 0 0.5rem 1.5rem rgb(40 46 42 / 0.15); }
.article-card a:focus-visible,
.service-card a:focus-visible { outline: none; }
.article-card:focus-within,
.service-card:focus-within { outline: 3px solid var(--green-dark); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .article-card, .service-card { transition: none; }
}

/* Article byline and "how I can help" box */
.byline { margin: 0; font-size: var(--step--1); }
.byline a { font-weight: 600; }
.help-box {
  max-width: var(--measure);
  margin-top: var(--space-xl);
  padding: var(--space-m);
  background: var(--sage);
  border-radius: 6px;
}
.help-box h2 { font-size: var(--step-2); margin-bottom: var(--space-xs); }
.help-box ul { padding-left: 1.25rem; margin: 0 0 var(--space-m); }
.help-box li + li { margin-top: var(--space-xs); }
.help-box p:last-child { margin: 0; }


/* ---------- Radical Elements credit (footer) ---------- */
/* From the studio snippet; inherits the footer's font and colour. */
.re-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-size: 0.75em;
  line-height: 1;
  vertical-align: middle;
}
.re-credit__tile {
  padding: 0.25em 0.45em;
  border: 1px solid currentColor;
  border-radius: 3px;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.25s;
}
.re-credit::after {
  content: attr(data-wink);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6em);
  white-space: nowrap;
  padding: 0.5em 0.75em;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: Canvas;
  color: CanvasText;
  font-size: 0.95em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.re-credit:hover .re-credit__tile,
.re-credit:focus-visible .re-credit__tile {
  opacity: 1;
  transform: rotate(-6deg);
}
.re-credit:hover::after,
.re-credit:focus-visible::after {
  opacity: 1;
  transform: none;
}
.re-credit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .re-credit__tile,
  .re-credit::after { transition: none; transform: none; }
}
/* Site additions: 44px tap area, matching the other links (the tile itself stays small),
   and full opacity: at the snippet's 0.7 the small "Re" is 3.1:1 on this footer (needs 4.5:1). */
.site-footer .re-credit__tile { opacity: 1; }
.site-footer .re-credit { min-width: 2.75rem; min-height: 2.75rem; justify-content: center; }
.site-footer__credit { margin-top: var(--space-m); font-size: var(--step--1); display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
/* The tile sits alone in the centre of the footer, so centre the wink over it
   (the snippet anchors it to the right, which runs off-screen on small phones). */
.site-footer .re-credit::after { right: auto; left: 50%; transform: translate(-50%, 4px); }
.site-footer .re-credit:hover::after,
.site-footer .re-credit:focus-visible::after { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .site-footer .re-credit::after { transform: translate(-50%, 0); }
}

/* Info pages (e.g. the first assessment) */
.info-page h1 { font-size: var(--step-3); }
.info-page .prose h3 { font-size: var(--step-1); margin: var(--space-m) 0 var(--space-xs); }
.info-page .prose ol li + li { margin-top: var(--space-xs); }

/* Contact: service area */
.contact__area { margin-top: var(--space-m); max-width: 30rem; }
.contact__area p { margin-bottom: var(--space-xs); }
.contact__area .contact__label { margin-bottom: 0.15rem; }
.contact__note { font-size: var(--step--1); }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  inset: auto var(--space-s) var(--space-s) auto;
  z-index: 50;
  max-width: 30rem;
  padding: var(--space-m);
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--accent-text);
  border-radius: 6px;
  box-shadow: 0 0.75rem 2rem rgb(40 46 42 / 0.25);
}
.cookie-banner h2 { font-size: var(--step-1); margin-bottom: var(--space-xs); }
.cookie-banner p { font-size: var(--step--1); }
/* Equal weight: accepting is not made easier than refusing */
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.cookie-banner__actions .button { flex: 1 1 8rem; }
/* While the banner is open, scrolling to a focused element keeps it above the banner */
.has-cookie-banner { scroll-padding-bottom: calc(var(--cookie-banner-h, 0px) + 1rem); }
.has-cookie-banner body { padding-bottom: var(--cookie-banner-h, 0px); }
@media (max-width: 40rem) {
  .cookie-banner { inset: auto 0 0 0; max-width: none; border-radius: 0; border-width: 1px 0 0; }
}
.cookie-settings {
  min-height: 2.75rem;
  padding: 0 0.5rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: var(--step--1);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* Footer legal links (privacy policy, cookie settings) */
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 var(--space-s); margin-top: var(--space-s); }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--cream); font-size: var(--step--1); }
