/* ============================================================
   Added sections — services, process, testimonials, blog, FAQ,
   CTA, contact details, floating WhatsApp, mobile sticky CTA.
   Everything here reuses the tokens defined in styles.css and
   never overrides rules that already exist there.
   ============================================================ */

/* ------------------------------------------------------------
   Anchor scrolling — every in-page target lands with breathing
   room below the fixed nav instead of tucking under it
   ------------------------------------------------------------ */

main [id] {
  scroll-margin-top: 76px;
}

/* The nav now carries nine links; the less essential ones bow
   out as the viewport narrows so nothing ever clips */
@media (max-width: 1020px) {
  .site-nav__links .nav-extra {
    display: none;
  }
}

@media (max-width: 470px) {
  .site-nav__links .nav-extra-sm {
    display: none;
  }
}

/* ------------------------------------------------------------
   Book — retailer links with logos
   ------------------------------------------------------------ */

.book__buy-label {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}

.book__buy {
  display: flex;
  margin: 1rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
}

.buy-link {
  display: inline-flex;
  padding: 0.6rem 1rem;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgb(16 16 16 / 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  transition:
    border-color var(--dur-mid) var(--ease-out),
    background var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out);
}

.buy-link:hover {
  border-color: var(--accent-dim);
  background: var(--ink-raised);
  transform: translateY(-2px);
}

.buy-link__logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--paper);
}

.buy-link__arrow {
  color: var(--accent);
  font-size: 0.72em;
  opacity: 0.7;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid) var(--ease-out);
}

.buy-link:hover .buy-link__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ------------------------------------------------------------
   Cosmos — a live star-field behind everything after the book.
   The sky is a viewport-sized sticky canvas: it pins while the
   wrapped sections scroll over it, so the canvas never has to
   be taller than the screen.
   ------------------------------------------------------------ */

.cosmos-wrap {
  position: relative;
}

.cosmos-sky {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  /* Cancels the sticky element's flow height so content rides on top */
  margin-bottom: -100svh;
  pointer-events: none;
  /* Stars dissolve at the viewport edges rather than cutting off hard */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.cosmos-sky canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Sections ride above the sky and let it show through */
.cosmos-wrap > section {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ------------------------------------------------------------
   Shared bits for the added sections
   ------------------------------------------------------------ */

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2.6rem, 5vw, 4.6rem);
  text-align: center;
}

.section-title {
  margin-top: 0.8rem;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
  line-height: 1.02;
}

.section-lede {
  max-width: 30rem;
  margin-inline: auto;
  margin-top: clamp(1.2rem, 2.4vw, 2rem);
  color: var(--muted);
  line-height: 1.8;
}

/* Pill buttons, echoing the consultation submit */
.pill-link {
  position: relative;
  display: inline-flex;
  padding: 1rem 1.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid rgb(167 139 250 / 0.42);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    border-color var(--dur-mid) var(--ease-out),
    background var(--dur-mid) var(--ease-out),
    color var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out);
}

.pill-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pill-link--solid {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.pill-link--solid:hover {
  background: #b9a3fb;
}

/* Small diamond glyph used as the card icon */
.diamond-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.8;
}

/* ------------------------------------------------------------
   Stats strip — trust bar with counters
   ------------------------------------------------------------ */

.stats {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  background: var(--ink);
}

.stats__grid {
  display: grid;
  max-width: 72rem;
  margin: 0 auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  text-align: center;
}

.stats__num {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stats__num em {
  font-style: normal;
  color: var(--accent);
}

.stats__label {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Services
   ------------------------------------------------------------ */

.services {
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
  background: var(--ink);
}

/* Hairline grid: 1px gaps over a line-coloured backdrop */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  border: 1px solid var(--ink-line);
  background: var(--ink-line);
}

.svc {
  display: flex;
  min-height: 15rem;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  flex-direction: column;
  /* Slightly translucent so the star-field glimmers through */
  background: rgb(0 0 0 / 0.62);
  transition: background var(--dur-mid) var(--ease-out);
}

.svc:hover {
  background: rgb(16 16 16 / 0.85);
}

.svc__title {
  margin-top: 1.1rem;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.svc__desc {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.svc__benefit {
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ------------------------------------------------------------
   Why choose
   ------------------------------------------------------------ */

.why {
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1.8rem, 3vw, 2.8rem) clamp(1.5rem, 3vw, 3rem);
}

.why__item {
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink-line);
}

.why__item h3 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.why__index {
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.why__item p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Process — five diamonds
   ------------------------------------------------------------ */

.process {
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
}

.process__steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(2.2rem, 4vw, 3rem) clamp(1.2rem, 2.5vw, 2.4rem);
  list-style: none;
  counter-reset: step;
}

.step__badge {
  display: flex;
  width: 54px;
  height: 54px;
  margin-bottom: 1.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-dim);
  transform: rotate(45deg);
  transition: border-color var(--dur-mid) var(--ease-out);
}

.step:hover .step__badge {
  border-color: var(--accent);
}

.step__badge span {
  transform: rotate(-45deg);
  font-family: 'Bodoni Moda', Georgia, serif;
  color: var(--accent);
  font-size: 1rem;
}

.step h3 {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.step p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Testimonials — one voice at a time
   ------------------------------------------------------------ */

.voices {
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
}

.voices__viewport {
  overflow: hidden;
}

.voices__track {
  display: flex;
  transition: transform 700ms var(--ease-out);
}

.voice {
  width: 100%;
  margin: 0;
  flex-shrink: 0;
  padding: 0 2px;
}

.voice blockquote {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.voice blockquote::before {
  content: '“';
  color: var(--accent);
}

.voice blockquote::after {
  content: '”';
  color: var(--accent);
}

.voice figcaption {
  display: flex;
  margin-top: 1.6rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.voice figcaption::before {
  width: 2rem;
  height: 1px;
  background: var(--accent-dim);
  content: '';
}

.voice figcaption strong {
  color: var(--paper);
  font-weight: 500;
}

.voices__dots {
  display: flex;
  margin-top: clamp(2rem, 4vw, 3rem);
  justify-content: center;
  gap: 0.8rem;
}

.voices__dot {
  width: 26px;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--faint);
  cursor: pointer;
  transition: background var(--dur-mid) var(--ease-out);
}

.voices__dot.is-active {
  background: var(--accent);
}

/* ------------------------------------------------------------
   Blog
   ------------------------------------------------------------ */

.blog {
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
}

.blog__grid {
  display: grid;
  max-width: 72rem;
  margin-inline: auto;
  /* auto-fit (not auto-fill) so no empty phantom columns push the cards left */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.post {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink-line);
  background: rgb(0 0 0 / 0.45);
  transition: border-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}

.post:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}

.post__media {
  display: flex;
  height: 10rem;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ink-line);
  background:
    radial-gradient(80% 120% at 30% 0%, rgb(167 139 250 / 0.10), transparent 60%),
    var(--ink-raised);
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post__body {
  display: flex;
  padding: 1.5rem;
  flex-direction: column;
  flex-grow: 1;
}

.post__cat {
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post h3 {
  margin: 0.7rem 0 0;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.post p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.post__more {
  display: inline-flex;
  margin-top: auto;
  padding-top: 1.3rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post__more span:last-child {
  color: var(--accent);
  transition: transform var(--dur-mid) var(--ease-out);
}

.post:hover .post__more span:last-child {
  transform: translateX(3px);
}

/* ------------------------------------------------------------
   FAQ — native details/summary accordion
   ------------------------------------------------------------ */

.faq {
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
}

.faq__list {
  max-width: 46rem;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--ink-line);
}

.faq__item:first-of-type {
  border-top: 1px solid var(--ink-line);
}

.faq__item summary {
  display: flex;
  padding: 1.3rem 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  transition: color var(--dur-mid) var(--ease-out);
}

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

.faq__item summary:hover {
  color: var(--accent);
}

.faq__mark {
  flex-shrink: 0;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--dur-mid) var(--ease-out);
}

.faq__item[open] .faq__mark {
  transform: rotate(45deg);
}

.faq__item > p {
  padding-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 40rem;
}

/* ------------------------------------------------------------
   CTA banner
   ------------------------------------------------------------ */

.cta {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
  overflow: clip;
  background: var(--ink);
  text-align: center;
}

/* A faint diamond behind the words, echoing the chart-house motif */
.cta::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(60vw, 420px);
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  content: '';
  opacity: 0.08;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

.cta__title {
  margin: 0.8rem auto 0;
  max-width: 24ch;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.cta__lede {
  max-width: 28rem;
  margin: clamp(1.2rem, 2.4vw, 2rem) auto 0;
  color: var(--muted);
  line-height: 1.8;
}

.cta__actions {
  display: flex;
  margin-top: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ------------------------------------------------------------
   Contact details strip
   ------------------------------------------------------------ */

.contact-details {
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
}

.contact-details__grid {
  display: grid;
  max-width: 72rem;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.2rem;
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-details dd {
  margin-top: 0.5rem;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  /* Long unbreakable strings (the email address) wrap instead of
     overflowing into the neighbouring column */
  overflow-wrap: anywhere;
}

.contact-details__grid > div {
  min-width: 0;
}

.contact-details dd a {
  border-bottom: 1px solid var(--faint);
  padding-bottom: 2px;
  transition: border-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
}

.contact-details dd a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------------------
   Floating WhatsApp
   ------------------------------------------------------------ */

.float-wa {
  position: fixed;
  right: clamp(1.1rem, 3vw, 1.8rem);
  bottom: clamp(1.1rem, 3vw, 1.8rem);
  z-index: 70;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(167 139 250 / 0.42);
  border-radius: 999px;
  background: var(--ink-raised);
  color: var(--accent);
  transition:
    border-color var(--dur-mid) var(--ease-out),
    background var(--dur-mid) var(--ease-out),
    color var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out);
}

.float-wa:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------
   Mobile sticky CTA
   ------------------------------------------------------------ */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 65;
  display: none;
  padding: 0.7rem var(--gutter);
  gap: 0.6rem;
  border-top: 1px solid var(--ink-line);
  background: rgb(0 0 0 / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sticky-cta .pill-link {
  flex: 1;
  padding: 0.85rem 1rem;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .process__steps {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 900px) {
  .stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sticky-cta {
    display: flex;
  }

  /* Keep page content and the WhatsApp button clear of the sticky bar */
  body {
    padding-bottom: 64px;
  }

  .float-wa {
    bottom: calc(64px + 0.9rem);
  }
}

@media (max-width: 560px) {
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1rem;
  }

  .svc {
    min-height: 0;
  }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

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