/* =========================================================
   Hand In Hand Kernow Care
   Brand stylesheet — May 2026
   --------------------------------------------------------
   Colour palette:
     Dark Amethyst   #2F184B  Primary / headers / nav
     Indigo Velvet   #532B88  Secondary / sections
     Lavender Purple #9B72CF  Highlights / icons / hover
     Wisteria        #C8B1E4  Backgrounds / dividers
     Lavender Mist   #F4EFFA  Page backgrounds
   Typography: Garet (Book = regular, Heavy = bold), 1.4× line-height min.
   ========================================================= */

/* ---------- Garet font (self-hosted) ---------- */
@font-face {
  font-family: "Garet";
  src: url("fonts/Garet-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Garet";
  src: url("fonts/Garet-Heavy.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark-amethyst: #2F184B;
  --indigo-velvet: #532B88;
  --lavender-purple: #9B72CF;
  --wisteria: #C8B1E4;
  --lavender-mist: #F4EFFA;
  --white: #ffffff;
  --text: #2F184B;
  --text-muted: #5a4a78;
  --shadow-soft: 0 8px 30px rgba(47, 24, 75, 0.08);
  --shadow-lift: 0 12px 36px rgba(47, 24, 75, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Garet', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--lavender-mist);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo-velvet); text-decoration: none; }
a:hover, a:focus-visible { color: var(--lavender-purple); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--dark-amethyst);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); }
p  { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { padding: clamp(60px, 8vw, 110px) 0; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender-purple);
  margin-bottom: 14px;
}
.section-intro { max-width: 720px; margin-bottom: 50px; }
.section-intro p { font-size: 1.05rem; color: var(--text-muted); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark-amethyst);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--header-height);
  gap: 24px;
  padding: 8px 0;
}
/* On mobile, add a little breathing room from the left edge for the logo */
@media (max-width: 899px) {
  .nav__brand { padding-left: 16px; }
}
/* Mobile-only: just the logo image, no wordmark text */
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img {
  height: 80px;
  width: auto;
  /* Filter the colour logo to pure white so it reads on the dark nav */
  filter: brightness(0) invert(1);
}
/* Wordmark text is intentionally hidden — the logo already includes it */
.nav__brand-text { display: none !important; }

/* Desktop-only: small house icon "home" button on the left.
   The icon image is dark-amethyst on transparent background of its own;
   on a dark-amethyst nav it reads as a clean white house mark. */
.nav__home {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.nav__home img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav__home:hover, .nav__home:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
@media (min-width: 900px) {
  .nav__home { display: inline-flex; }
  .nav__brand { display: none; }
}

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--white);
  font-weight: 700;
  font-size: 0.97rem;
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--wisteria);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
/* Buttons inside the nav: Wisteria fill, dark text — matches the hero CTAs */
.nav__links a.btn { padding: 11px 22px; }
.nav__links a.btn--primary {
  background: var(--wisteria);
  color: var(--dark-amethyst);
  border: 2px solid var(--dark-amethyst);
}
.nav__links a.btn--primary:hover,
.nav__links a.btn--primary:focus-visible {
  background: var(--white);
  color: var(--dark-amethyst);
  border-color: var(--dark-amethyst);
}
.nav__links a.btn::after { display: none; }
/* Push the Get In Touch CTA (last <li>) to the far right on desktop */
@media (min-width: 900px) {
  .nav__links li:last-child { margin-left: auto; }
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 10px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav__links { display: flex; flex: 1; } /* fill remaining width so last item can right-align */
  .nav__toggle { display: none; }
}
@media (max-width: 899px) {
  .nav__links {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark-amethyst);
    padding: 16px var(--gutter) 28px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav__links[data-open="true"] {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav__links li:last-child { border-bottom: 0; padding-top: 18px; }
  .nav__links a { display: block; font-size: 1.05rem; }
  .nav__links .btn { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--dark-amethyst);
  color: var(--white);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--indigo-velvet);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.btn--secondary {
  background: transparent;
  color: var(--dark-amethyst);
  border-color: var(--dark-amethyst);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--dark-amethyst);
  color: var(--white);
  transform: translateY(-1px);
}
.btn--accent {
  background: var(--lavender-purple);
  color: var(--white);
}
.btn--accent:hover, .btn--accent:focus-visible {
  background: var(--indigo-velvet);
  color: var(--white);
  transform: translateY(-1px);
}
/* Wisteria fill, Dark Amethyst outline + text — used for the
   three hero CTA buttons and the matching nav "Get In Touch" CTA. */
.btn--wisteria {
  background: var(--wisteria);
  color: var(--dark-amethyst);
  border-color: var(--dark-amethyst);
}
.btn--wisteria:hover, .btn--wisteria:focus-visible {
  background: var(--white);
  color: var(--dark-amethyst);
  border-color: var(--dark-amethyst);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn--block { width: 100%; }

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 3px solid var(--lavender-purple);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Hero (full-width image with flat Lavender Mist wash) ---------- */
.hero {
  position: relative;
  width: 100%;
  padding: clamp(50px, 8vw, 90px) var(--gutter);
  overflow: hidden;
  background: var(--lavender-mist);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* content sits in the upper area */
  text-align: center;
  min-height: clamp(420px, 48vw, 620px);
}
/* Full-width image, no rounded corners */
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 0;
}
/* Flat Lavender Mist wash directly on top of the image */
.hero__wash {
  position: absolute;
  inset: 0;
  background: rgba(244, 239, 250, 0.4); /* Lavender Mist #F4EFFA @ 40% */
  z-index: 1;
}
/* Content sits centred horizontally, in the upper-centre area */
.hero__overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 32px) 0;
}
.hero__logo {
  width: clamp(180px, 16vw, 200px);
  height: auto;
  margin: 0 0 clamp(14px, 2vw, 22px);
}
.hero__brand {
  font-weight: 700;
  color: var(--dark-amethyst);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 clamp(8px, 1.4vw, 14px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero__tagline {
  font-weight: 400;
  color: var(--dark-amethyst);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 0;
  line-height: 1.4;
  max-width: 640px;
}

/* CTA band: white background, trust line + 3 Wisteria buttons */
.hero-cta-band {
  background: var(--white);
  padding: clamp(36px, 5vw, 56px) 0;
  text-align: center;
  border-bottom: 1px solid rgba(155, 114, 207, 0.15);
}
.hero-cta-band__lede {
  max-width: 780px;
  margin: 0 auto clamp(22px, 3vw, 32px);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  color: var(--dark-amethyst);
  font-weight: 700;
}
.hero-cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Trust band ---------- */
.trust-band {
  background: var(--white);
  padding: 36px 0;
  border-top: 1px solid rgba(155, 114, 207, 0.18);
  border-bottom: 1px solid rgba(155, 114, 207, 0.18);
}
.trust-band p {
  text-align: center;
  margin: 0;
  color: var(--dark-amethyst);
  font-weight: 700;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  max-width: 820px;
  margin-inline: auto;
}

/* ---------- About (50/50, image fills row height) ---------- */
.about { background: var(--white); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (min-width: 880px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  min-height: 320px;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__copy p { font-size: 1.05rem; color: var(--text-muted); }
.about__copy p:first-of-type {
  font-size: 1.18rem;
  color: var(--dark-amethyst);
  font-weight: 700;
}

/* ---------- Wave dividers ---------- */
.wave {
  display: block;
  width: 100%;
  height: 70px;
  margin: 0;
}
.wave--down { color: var(--dark-amethyst); }
.wave--up   { color: var(--dark-amethyst); }
.wave svg { display: block; width: 100%; height: 100%; }

/* ---------- Services ---------- */
.services {
  background: var(--dark-amethyst);
  color: var(--white);
  padding-top: clamp(50px, 7vw, 90px);
  padding-bottom: clamp(50px, 7vw, 90px);
}
.services h2, .services h3 { color: var(--white); }
.services .section-eyebrow { color: var(--wisteria); }
.services .section-intro p { color: rgba(255, 255, 255, 0.82); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
.service-card {
  background: rgba(244, 239, 250, 0.06);
  border: 1px solid rgba(200, 177, 228, 0.22);
  border-radius: var(--radius-md);
  padding: 26px 26px 24px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  background: rgba(244, 239, 250, 0.12);
  border-color: rgba(200, 177, 228, 0.45);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(155, 114, 207, 0.22);
  color: var(--wisteria);
  margin-bottom: 16px;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { margin: 0 0 8px; font-size: 1.13rem; }
.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.97rem;
}

/* Single-line additional services note below the cards.
   Bold white on the dark services block, with the "talk to us"
   link in Lavender Purple and no underline. */
.services__additional {
  margin: 38px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(200, 177, 228, 0.22);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  max-width: 900px;
  font-size: 1.02rem;
  line-height: 1.55;
}
.services__additional-link {
  color: var(--lavender-purple);
  text-decoration: none;
}
.services__additional-link:hover,
.services__additional-link:focus-visible {
  color: var(--wisteria);
  text-decoration: none;
}

/* ---------- How it works (image left, text right; 50/50) ---------- */
.how { background: var(--white); }
.how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (min-width: 880px) {
  .how__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.how__steps { display: grid; gap: 22px; align-content: center; }
.how__step {
  background: var(--lavender-mist);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(155, 114, 207, 0.18);
}
.how__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-amethyst);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 999px;
}
.how__step h3 { margin: 0 0 4px; font-size: 1.1rem; }
.how__step p { margin: 0; color: var(--text-muted); }
.how__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  min-height: 360px;
  order: -1; /* image first (left) on desktop */
}
.how__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Who we support (text left, image right; 50/50) ---------- */
.who { background: var(--lavender-mist); }
.who__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (min-width: 880px) {
  .who__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.who__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  min-height: 360px;
}
.who__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* On mobile, stack the image above the text — matches How It Works.
   Also centre the "Talk to us" CTA so it sits in the middle of the column. */
@media (max-width: 879px) {
  .who__media { order: -1; }
  .who .btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }
}
.who__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 14px;
}
.who__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  color: var(--dark-amethyst);
}
.who__list li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--lavender-purple);
  margin-top: 6px;
}

/* ---------- Trust block (Wisteria background, all Dark Amethyst) ---------- */
.trust {
  background: var(--wisteria);
  color: var(--dark-amethyst);
  text-align: center;
}
.trust h2 {
  margin: 0 0 clamp(36px, 5vw, 56px);
  color: var(--dark-amethyst);
  /* Bold + same size as the other h2 headings on the site */
}
.trust__lede {
  max-width: 720px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  color: var(--dark-amethyst);
  font-size: 1.05rem;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 22px;
}
@media (min-width: 760px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
}
.trust__pillar { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 8px; }
/* Icons sit directly on Wisteria — solid/filled dark amethyst, ~85px tall */
.trust__pillar-icon {
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-amethyst);
}
.trust__pillar-icon svg { width: 80px; height: 80px; }
.trust__pillar-icon img { height: 88px; width: auto; object-fit: contain; }
.trust__pillar h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--dark-amethyst);
  font-weight: 700;
  max-width: 220px;
  line-height: 1.35;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--indigo-velvet);
  color: var(--white);
  text-align: center;
  padding: clamp(50px, 6vw, 80px) 0;
}
.cta-strip h2 { color: var(--white); margin-bottom: 14px; }
.cta-strip p { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: 0 auto 26px; }
.cta-strip .btn--primary {
  background: var(--white);
  color: var(--dark-amethyst);
}
.cta-strip .btn--primary:hover,
.cta-strip .btn--primary:focus-visible {
  background: var(--lavender-mist);
  color: var(--dark-amethyst);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-amethyst);
  color: rgba(255, 255, 255, 0.82);
  padding: 70px 0 0;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
/* Everything in the left footer column is flush against the column's
   left edge — including the visible left edge of the trimmed logo. */
.footer__brand { text-align: left; }
.footer__brand img,
.footer__brand p,
.footer__social { margin-left: 0; }
.footer__brand img { height: auto; width: 120px; max-width: 100%; margin: 0 0 20px; display: block; }
/* Use the colour brand logo, filtered to pure white, so the wordmark
   reads cleanly on the Dark Amethyst footer. */
.footer__brand .footer__logo {
  filter: brightness(0) invert(1);
  width: 120px;
  height: auto;
}
.footer__brand p { font-size: 0.98rem; max-width: 360px; margin: 0 0 18px; }
.footer__contact { font-size: 0.96rem; line-height: 1.8; }
.footer__contact a { color: var(--wisteria); }
.footer__contact a:hover, .footer__contact a:focus-visible { color: var(--white); }
.footer__contact address { font-style: normal; }
.footer__links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer__links a { color: rgba(255, 255, 255, 0.82); }
.footer__links a:hover, .footer__links a:focus-visible { color: var(--white); }
.footer__social {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer__social a:hover, .footer__social a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.footer__social svg { width: 20px; height: 20px; }
.footer__social img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer__bottom {
  margin-top: 50px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Legal pages (Privacy / Cookies / Terms) ---------- */
.legal { background: var(--white); padding: clamp(50px, 7vw, 90px) 0; }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--dark-amethyst);
}
.legal-content h2 {
  color: var(--dark-amethyst);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  margin: 36px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: var(--dark-amethyst);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.legal-content ul {
  padding-left: 22px;
  margin: 0 0 18px;
}
.legal-content li {
  color: var(--dark-amethyst);
  line-height: 1.65;
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--indigo-velvet);
  text-decoration: underline;
}
.legal-content a:hover, .legal-content a:focus-visible {
  color: var(--lavender-purple);
}
.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ---------- Contact page ---------- */
.page-header {
  background: var(--lavender-mist);
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  text-align: center;
}
.page-header h1 { margin-bottom: 14px; }
.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.contact { background: var(--white); padding-bottom: clamp(70px, 8vw, 110px); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 880px) {
  .contact__grid { grid-template-columns: 1.3fr 1fr; gap: 60px; }
}
/* Grid items default to min-width:auto which lets them grow past the
   track if a child (e.g. the textarea) has a minimum content size.
   Force shrinkability so the cards stay inside the viewport. */
.contact__grid > * { min-width: 0; }

/* Form */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(155, 114, 207, 0.18);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 44px);
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
/* On mobile, guarantee equal left/right padding on both contact cards
   and lock the cards to the viewport width. */
@media (max-width: 879px) {
  .form-card,
  .contact-info {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  /* Stop long unbroken strings (e.g. email addresses) forcing extra width */
  .contact-info__value,
  .contact-info__value a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.form-card > p { color: var(--text-muted); margin-bottom: 26px; }

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--dark-amethyst);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark-amethyst);
  background: var(--lavender-mist);
  border: 2px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row textarea {
  min-height: 150px;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--lavender-purple);
  background: var(--white);
}
.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(180, 60, 60, 0.45);
}
.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}
.form-status[data-state="success"] {
  display: block;
  background: rgba(155, 114, 207, 0.16);
  color: var(--indigo-velvet);
  border: 1px solid rgba(155, 114, 207, 0.4);
}
.form-status[data-state="error"] {
  display: block;
  background: #fdecec;
  color: #8a2c2c;
  border: 1px solid #f0c2c2;
}

/* Contact info card */
.contact-info {
  background: var(--lavender-mist);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 38px);
  border: 1px solid rgba(155, 114, 207, 0.18);
}
.contact-info h2 { font-size: 1.35rem; margin-bottom: 18px; }
.contact-info__row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(155, 114, 207, 0.18);
}
.contact-info__row:last-child { border-bottom: 0; }
.contact-info__icon {
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lavender-purple);
}
.contact-info__icon svg { width: 18px; height: 18px; }
.contact-info__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender-purple);
  margin-bottom: 2px;
}
.contact-info__value {
  font-weight: 700;
  color: var(--dark-amethyst);
  font-style: normal;
}
.contact-info__value a { color: var(--dark-amethyst); }
.contact-info__value a:hover, .contact-info__value a:focus-visible { color: var(--lavender-purple); }
.contact-info__note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  border: 0; clip: rect(0 0 0 0); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.text-center { text-align: center; }
.skip-link {
  position: absolute;
  left: -1000px;
  top: 8px;
  background: var(--white);
  color: var(--dark-amethyst);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
