/* ==========================================================================
   HopeLooom — style.css
   A calm, textile-inspired design system. Tokens first, then base styles,
   then components in the order they appear on the page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Fabric */
  --linen: #f3f0e7;
  --linen-deep: #e8e3d5;
  --paper: #fbfaf7;
  --white: #ffffff;

  /* Greens */
  --moss: #1f3b2c;
  --moss-deep: #142a1e;
  --fern: #2f7a4c;
  --fern-deep: #245f3b;
  --sage: #c9dccb;
  --sage-soft: #e6efe6;

  /* The thread */
  --mulberry: #7d3b62;
  --mulberry-soft: #f3e6ed;

  /* Text */
  --ink: #1d2420;
  --muted: #5a655d;
  --line: #dde4dd;

  /* Status */
  --danger: #b3261e;
  --danger-soft: #fbeae8;
  --amber: #b8791d;
  --amber-soft: #fdf3df;
  --success: #2f7a4c;
  --success-soft: #e6efe6;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: var(--font-display);

  /* Shape & depth */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(29, 36, 32, 0.06), 0 1px 3px rgba(29, 36, 32, 0.04);
  --shadow-md: 0 12px 32px -14px rgba(31, 59, 44, 0.28);
  --shadow-lg: 0 24px 60px -20px rgba(20, 42, 30, 0.4);

  /* Layout */
  --container: 1140px;
  --gutter: 1.25rem;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 4.5vw + 1rem, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.9rem, 2.4vw + 0.8rem, 2.75rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--fern);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--fern-deep);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--mulberry);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--sage);
  color: var(--moss-deep);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--moss);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: 760px;
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.15rem;
  color: var(--muted);
}

.page-head {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.page-head p {
  max-width: 44rem;
  margin-inline: auto;
  font-size: 1.2rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.band {
  background: var(--linen);
}

.band--white {
  background: var(--white);
}

.band--moss {
  background: var(--moss);
  color: rgba(255, 255, 255, 0.86);
}

.band--moss h1,
.band--moss h2,
.band--moss h3,
.band--moss h4 {
  color: #fff;
}

.band--moss .eyebrow {
  color: var(--sage);
}

.stack > * + * {
  margin-top: 1rem;
}

.stack--lg > * + * {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   4. Typography components
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fern);
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--mulberry);
}

.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--muted);
}

.accent {
  color: var(--fern);
}

/* The thread: a hand-drawn underline beneath one emphasised word. */
.thread {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.thread svg {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.32em;
  color: var(--mulberry);
  overflow: visible;
  pointer-events: none;
}

.thread svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.thread--draw svg path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: thread-draw 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

@keyframes thread-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.ui {
  font-family: var(--font-ui);
}

/* --------------------------------------------------------------------------
   5. Icons
   -------------------------------------------------------------------------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1em;
  height: 1em;
}

.icon--lg {
  width: 1.75em;
  height: 1.75em;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--fern);
}

.icon-badge .icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.75;
}

.icon-badge--round {
  border-radius: 50%;
}

.icon-badge--lg {
  width: 4.25rem;
  height: 4.25rem;
}

.icon-badge--lg .icon {
  width: 2rem;
  height: 2rem;
}

.icon-badge--mulberry {
  background: var(--mulberry-soft);
  color: var(--mulberry);
}

.icon-badge--onmoss {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--fern);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(47, 122, 76, 0.7);
}

.btn--primary:hover {
  background: var(--fern-deep);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--fern);
  border-color: var(--fern);
}

.btn--outline:hover {
  background: var(--sage-soft);
  color: var(--fern-deep);
}

.btn--soft {
  background: var(--sage-soft);
  color: var(--fern-deep);
}

.btn--soft:hover {
  background: var(--sage);
  color: var(--moss);
}

.btn--light {
  background: #fff;
  color: var(--fern-deep);
}

.btn--light:hover {
  background: var(--linen);
  color: var(--moss);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--danger:hover {
  background: #931e17;
  color: #fff;
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 1rem 1.9rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--fern);
  cursor: pointer;
  text-decoration: none;
}

.link-btn:hover {
  color: var(--fern-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.link-btn .icon {
  transition: transform 0.2s;
}

.link-btn:hover .icon {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   7. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid var(--line);
}

/* The blur lives on a pseudo-element: a backdrop-filter on the header itself
   would turn it into the containing block for the fixed mobile panel. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--moss);
  text-decoration: none;
}

.brand:hover {
  color: var(--moss);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--fern);
  color: #fff;
}

.brand__mark .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--mulberry);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"]::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--moss);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.4rem;
  height: 1.4rem;
}

/* Mobile navigation panel */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  overflow: auto;
  padding: 1.25rem var(--gutter) 2rem;
  background: var(--paper);
  border-top: 3px solid var(--fern);
}

.mobile-nav__links {
  display: grid;
  gap: 0.5rem;
}

.mobile-nav__links a {
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}

.mobile-nav__links a[aria-current="page"] {
  background: var(--fern);
  border-color: var(--fern);
  color: #fff;
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-actions .nav-cta {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   8. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--linen);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

/* The weave: warp and weft drawn in CSS, fading toward the text. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(47, 122, 76, 0.09) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(0deg, rgba(47, 122, 76, 0.07) 0 1px, transparent 1px 16px);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 78% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--mulberry);
  opacity: 0.55;
}

.hero__thread path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: hero-thread 3.2s cubic-bezier(0.45, 0, 0.2, 1) 0.3s forwards;
}

@keyframes hero-thread {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero__copy {
  max-width: 36rem;
}

.hero__copy .lede {
  margin-bottom: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__trust .icon {
  color: var(--fern);
  width: 1em;
  height: 1em;
}

/* The wordmark weaves in letter by letter. */
.wordmark {
  color: var(--fern);
  white-space: nowrap;
}

.wordmark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) rotate(3deg);
  animation: weave-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 75ms + 150ms);
}

@keyframes weave-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.8s ease-out forwards;
}

.fade-up--2 {
  animation-delay: 0.35s;
}

.fade-up--3 {
  animation-delay: 0.55s;
}

.fade-up--4 {
  animation-delay: 0.75s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1023px) {
  .hero {
    min-height: 0;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__thread {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.card--lift {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card--lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--linen {
  background: var(--linen);
  border-color: var(--linen-deep);
}

.card--moss {
  background: var(--moss);
  border-color: var(--moss);
  color: rgba(255, 255, 255, 0.88);
}

.card--moss h3,
.card--moss h4 {
  color: #fff;
}

.card--pad-lg {
  padding: clamp(2rem, 4vw, 3.25rem);
}

.card__body {
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
}

.service-card .icon-badge {
  margin-bottom: 1.25rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Testimonials */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial__stars {
  display: flex;
  gap: 0.15rem;
  color: var(--fern);
}

.testimonial__stars .icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  stroke: none;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.testimonial figcaption {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* Value cards */
.value-card {
  text-align: center;
}

.value-card .icon-badge {
  margin: 0 auto 1rem;
}

.value-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* Feature panel (about page) */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature--reverse .feature__copy {
  order: 2;
}

.feature__copy p {
  color: var(--muted);
  font-size: 1.1rem;
}

.feature__panel {
  position: relative;
  min-height: 20rem;
  padding: 2.5rem;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  background-color: var(--moss);
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 220, 203, 0.14) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(0deg, rgba(201, 220, 203, 0.1) 0 1px, transparent 1px 14px);
  color: #fff;
  overflow: hidden;
}

.feature__panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 59, 98, 0.55), transparent 65%);
  pointer-events: none;
}

.feature__panel blockquote {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
}

.feature__panel cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

@media (max-width: 860px) {
  .feature,
  .feature--reverse {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__copy {
    order: 0;
  }

  .feature__panel {
    min-height: 15rem;
  }
}

/* Professional cards */
.pro-card {
  display: flex;
  flex-direction: column;
}

.pro-card__media {
  position: relative;
  aspect-ratio: 4 / 3.6;
  background: var(--sage-soft);
  overflow: hidden;
}

.pro-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.pro-card__initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--moss), var(--fern));
  color: #fff;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pro-card__body {
  padding: 1.35rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.pro-card__body h3 {
  margin: 0;
  font-size: 1.3rem;
}

.pro-card__title {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fern);
}

.pro-card__bio {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.tag {
  padding: 0.25rem 0.7rem;
  border-radius: var(--pill);
  background: var(--sage-soft);
  color: var(--fern-deep);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Plain feature list (why choose us, what to expect) */
.point {
  text-align: center;
}

.point .icon-badge {
  margin: 0 auto 1rem;
}

.point h3 {
  font-size: 1.2rem;
}

.point p {
  color: var(--muted);
  font-size: 1rem;
}

/* News cards */
.news-card {
  display: flex;
  flex-direction: column;
}

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--fern), var(--sage));
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
}

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

.news-card__media .icon {
  width: 3rem;
  height: 3rem;
  stroke-width: 1.5;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
}

.news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
}

.news-card h3 {
  margin: 0;
  font-size: 1.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .link-btn {
  margin-top: auto;
  padding-top: 0.5rem;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--linen-deep);
  border-radius: 6px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.skeleton--media {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.skeleton--line {
  height: 0.9rem;
}

/* Hotlines */
.hotline {
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hotline .icon-badge {
  margin: 0 auto 1rem;
}

.hotline h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hotline__number {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.hotline__number:hover {
  color: var(--sage);
}

.hotline p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Box breathing */
.breath-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.breath {
  position: relative;
  width: min(17rem, 80vw);
  aspect-ratio: 1;
  margin: 1rem auto;
}

.breath__box {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--fern), var(--sage));
  opacity: 0.6;
  transform: scale(0.8);
  transition: transform 4s ease-in-out, opacity 4s ease-in-out;
}

.breath[data-phase="0"] .breath__box,
.breath[data-phase="1"] .breath__box {
  transform: scale(1.12);
}

.breath[data-phase="0"] .breath__box,
.breath[data-phase="2"] .breath__box {
  opacity: 0.92;
}

.breath__core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.breath__label {
  width: 8.75rem;
  height: 8.75rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fern-deep);
  text-align: center;
  line-height: 1.25;
}

.breath__label small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.steps__num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--fern-deep);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps strong {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
}

.steps span {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .breath-panel {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10. Notices, alerts
   -------------------------------------------------------------------------- */
.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.98rem;
  text-align: left;
}

.notice .icon {
  margin-top: 0.15rem;
}

.notice p {
  margin: 0;
}

.notice--info {
  background: var(--sage-soft);
  border: 1px solid var(--sage);
  color: var(--moss);
}

.notice--info .icon {
  color: var(--fern);
}

.notice--warn {
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  color: var(--ink);
}

.notice--warn .icon {
  color: var(--amber);
}

.notice--danger {
  background: var(--danger-soft);
  border: 1px solid #f1c5c0;
  color: #7a1a14;
}

.notice--danger .icon {
  color: var(--danger);
}

.notice--mulberry {
  background: var(--mulberry-soft);
  border: 1px solid #e3c7d6;
  color: #4d2340;
}

.notice--mulberry .icon {
  color: var(--mulberry);
}

.notice--center {
  max-width: 44rem;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.field label small {
  font-weight: 500;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: #9aa49d;
}

.input:focus {
  outline: none;
  border-color: var(--fern);
  box-shadow: 0 0 0 4px rgba(47, 122, 76, 0.16);
}

textarea.input {
  resize: vertical;
  min-height: 7rem;
}

select.input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a655d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form__hint {
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-line {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-line .icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.contact-line strong {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
}

.contact-line span,
.contact-line a {
  color: var(--muted);
}

.contact-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.contact-line a:hover {
  color: var(--mulberry);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.98rem;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.checklist .icon {
  margin-top: 0.2rem;
  color: var(--sage);
}

/* Success state */
.success {
  text-align: center;
}

.success .icon-badge {
  margin: 0 auto 1.25rem;
  background: var(--success-soft);
  color: var(--success);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   16. CTA band & footer
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 220, 203, 0.09) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(201, 220, 203, 0.06) 0 1px, transparent 1px 18px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000);
  pointer-events: none;
}

.cta .container {
  position: relative;
}

.cta p {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  opacity: 0.85;
}

.site-footer {
  background: var(--moss-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 0.9rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: var(--font-ui);
}

.footer-links a:hover {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-links .icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  margin-right: 0.35rem;
}

.footer-crisis {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.footer-crisis strong {
  color: #fff;
}

.footer-crisis a {
  color: var(--sage);
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   18. Page-specific layouts
   -------------------------------------------------------------------------- */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .booking-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

  .wordmark span,
  .fade-up,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .thread--draw svg path,
  .hero__thread path {
    stroke-dashoffset: 0;
  }
}

/* --------------------------------------------------------------------------
   20. Utilities & small adjustments
   -------------------------------------------------------------------------- */
.mt-3 {
  margin-top: 1.25rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

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



.btn-row--center {
  justify-content: center;
}

.text-left {
  text-align: left;
}

.onmoss {
  color: rgba(255, 255, 255, 0.8);
}

.band--moss .section-head p,
.band--moss .lede {
  color: rgba(255, 255, 255, 0.8);
}


/* --------------------------------------------------------------------------
   21. Photo slots, counselor profile, sessions, booking widget
   -------------------------------------------------------------------------- */
/* Wordmark letter delays (replaces inline custom properties). */
.wordmark span:nth-child(1) { --i: 0; }
.wordmark span:nth-child(2) { --i: 1; }
.wordmark span:nth-child(3) { --i: 2; }
.wordmark span:nth-child(4) { --i: 3; }
.wordmark span:nth-child(5) { --i: 4; }
.wordmark span:nth-child(6) { --i: 5; }
.wordmark span:nth-child(7) { --i: 6; }
.wordmark span:nth-child(8) { --i: 7; }

/* A photo slot: drop a file in assets/img and it appears; if the file is
   missing the <img> removes itself and the designed fallback shows. */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sage-soft);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--4x3 {
  aspect-ratio: 4 / 3;
}

.photo--16x9 {
  aspect-ratio: 16 / 9;
}

.photo--portrait {
  aspect-ratio: 4 / 5;
}

.feature__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 42, 30, 0) 25%, rgba(20, 42, 30, 0.88) 100%);
  pointer-events: none;
}

/* Counselor profile */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.profile__media {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.profile__media .photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.profile__media img {
  object-position: center 20%;
}

.profile__caption {
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.profile__name {
  font-size: clamp(2rem, 3vw + 0.5rem, 2.9rem);
  margin-bottom: 0.2rem;
}

.profile__title {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fern);
}

.profile__copy p {
  color: var(--muted);
  font-size: 1.1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.75rem 0;
}

.fact {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--moss);
  line-height: 1.1;
}

.fact span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
}

.profile__section {
  margin-top: 2.25rem;
}

.profile__section h3 {
  margin-bottom: 0.9rem;
}

@media (max-width: 860px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .profile__media {
    position: static;
    max-width: 22rem;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* Session types */
.sessions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.session:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
}

.session strong {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
}

.session span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.session__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fern-deep);
  white-space: nowrap;
}

.session--compact {
  padding: 0.65rem 0.9rem;
  background: var(--paper);
}

/* Booking widget (VoltsBook) */
.vb-widget {
  min-height: 30rem;
}

.vb-widget iframe {
  width: 100% !important;
  max-width: 100%;
  border: 0;
  display: block;
}

.vb-fallback {
  margin-top: 1rem;
}

.mobile-nav__auth {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
}

/* Links inside notices take the notice colour so they stay readable on tinted backgrounds. */
.notice a {
  color: inherit;
  font-weight: 600;
}

/* Booking card: the widget runs edge to edge inside the card. */
.booking-card {
  padding: 0;
  overflow: hidden;
}

.booking-card__head {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem) 0.75rem;
}

.booking-card__head h2 {
  margin-bottom: 0.4rem;
}

.booking-card .vb-widget {
  padding: 0 clamp(0.5rem, 1.5vw, 1.25rem) clamp(0.5rem, 1.5vw, 1.25rem);
}

.booking-card .vb-fallback {
  margin: 0 clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem);
}

.wordmark span:nth-child(9) { --i: 8; }

/* --------------------------------------------------------------------------
   22. Hero visual: practice photo, booking card, pill
   -------------------------------------------------------------------------- */
.hero__visual {
  position: relative;
  padding: 1.5rem 1rem 2.5rem 1.75rem;
}

.hero__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--moss);
  box-shadow: 0 40px 80px -32px rgba(20, 42, 30, 0.5);
  transform: rotate(-1.5deg);
  animation: fade-up 0.9s ease-out 0.25s both;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 42, 30, 0) 55%, rgba(20, 42, 30, 0.45) 100%);
  pointer-events: none;
}

.hero__photo--missing {
  background-color: var(--moss);
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 220, 203, 0.14) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(0deg, rgba(201, 220, 203, 0.1) 0 1px, transparent 1px 14px);
}

.hero__card {
  position: absolute;
  left: 0;
  bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
  max-width: 21rem;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fade-up 0.8s ease-out 0.7s both;
}

.hero__card:hover {
  transform: translateY(-3px);
  color: var(--ink);
}

.hero__card-label {
  grid-column: 1 / -1;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mulberry);
}

.hero__card strong {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero__card-meta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__card .icon {
  grid-column: 2;
  grid-row: 2 / span 2;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--fern);
}

.hero__pill {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--pill);
  background: var(--moss);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: fade-up 0.8s ease-out 1s both;
}

@media (max-width: 1023px) {
  .hero__visual {
    max-width: 32rem;
    margin: 2.5rem auto 0;
    padding: 1.25rem 0.5rem 2.75rem;
  }

  .hero__photo {
    aspect-ratio: 4 / 3;
    transform: none;
    border-radius: 22px;
  }

  .hero__card {
    left: 0.75rem;
    bottom: 0.5rem;
    max-width: calc(100% - 1.5rem);
  }

  .hero__pill {
    right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo,
  .hero__card,
  .hero__pill {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Pull line inside the counsellor profile */
.profile__pull {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--mulberry);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--moss);
}

.hero__text {
  margin: -1rem 0 2rem;
  max-width: 34rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   23. Long-form pages: services, landing pages, blog, privacy
   -------------------------------------------------------------------------- */
.page-head--left {
  text-align: left;
}

.page-head--left p {
  margin-inline: 0;
}

.page-head--left .btn-row {
  margin-top: 1.75rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--fern);
}

.breadcrumb [aria-current] {
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2.25rem 0 0.75rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.6rem 0 0.5rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.1em;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--fern);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--mulberry);
  font-style: italic;
  color: var(--moss);
}

.prose a {
  font-weight: 600;
}

.prose .notice {
  margin-bottom: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--fern);
}

.faq[open] summary::after {
  content: "–";
}

.faq__body {
  padding: 0 1.15rem 1rem;
  color: var(--muted);
}

.faq__body p:last-child {
  margin-bottom: 0;
}

.aside-card .eyebrow {
  margin-bottom: 0.5rem;
}

.aside-card h3 {
  margin-bottom: 0.35rem;
}

.aside-card .btn {
  margin: 0.75rem 0 0.6rem;
}

.aside-card p:last-child {
  margin: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.section-foot {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.section-actions {
  margin-top: 2rem;
}

/* Blog cards and posts */
.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sage-soft);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  padding: 1.35rem 1.5rem 1.5rem;
}

.post-card__meta {
  display: flex;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
}

.post-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--fern);
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.post-card .link-btn {
  margin-top: auto;
  padding-top: 0.5rem;
}

.post__head {
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}

.post__head h1 {
  font-size: clamp(2rem, 3.4vw + 0.6rem, 3.25rem);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
}

.post-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
}

.post__hero {
  margin: 1rem 0 2.5rem;
  border-radius: var(--radius-lg);
}

.post__body {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.cta-box {
  margin: 2.5rem 0 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--moss);
  color: rgba(255, 255, 255, 0.88);
}

.cta-box h3 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.cta-box p {
  margin-bottom: 1rem;
}

.post__note {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-grid--5 {
  grid-template-columns: 1.6fr 1fr 1.1fr 1fr 1.2fr;
}

@media (max-width: 960px) {
  .footer-grid--5 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid--5 > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid--5 {
    grid-template-columns: 1fr;
  }
}

/* On narrow screens a long emphasised phrase must be allowed to wrap, so the
   drawn underline gives way to a wavy text underline. */
@media (max-width: 640px) {
  .thread {
    display: inline;
    white-space: normal;
    text-decoration: underline wavy var(--mulberry);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
  }

  .thread svg {
    display: none;
  }
}
