/* =========================================================================
   pleko.es — stylesheet
   ---------------------------------------------------------------------
   Organised in three parts:
   1. Design tokens (custom properties) — every color, font and radius
      used anywhere on the page is defined once here. Change a value in
      this block and it updates everywhere it's used.
   2. Base/reset — sensible defaults for raw HTML elements.
   3. Components — one section per part of the page, top to bottom,
      in the same order they appear in index.html.
   ========================================================================= */

/* ---------- 1. Design tokens ------------------------------------------- */
:root {
  /* Colors — lifted from the pleko brand palette */
  --color-background: #fcf9f8;         /* page background, warm off-white */
  --color-surface: #f6f3f2;            /* card / section background */
  --color-surface-alt: #f0eded;        /* slightly deeper card background */
  --color-text: #1b1c1c;               /* main body text, near-black */
  --color-text-muted: #3e4949;         /* secondary text */
  --color-outline: #6e7979;            /* borders only — too light for small text */
  --color-outline-variant: #bdc9c8;    /* faint borders */
  --color-label: #5c6767;              /* small uppercase labels — meets 4.5:1 contrast on bg */
  --color-primary: #006565;            /* deep teal — headings, buttons */
  --color-primary-hover: #004d4d;
  --color-accent: #8ff6d0;             /* mint — small highlights only */
  --color-accent-text: #007257;
  --color-accent-soft: #e1f5ee;        /* pale mint — icon backgrounds */
  --color-border: #e3e8e7;             /* hairline dividers between sections and cards */
  --color-dark: #0b3d3d;               /* dark teal — closing booking band */

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Literata", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Shape */
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Layout */
  --content-width: 46rem;
  --content-width-wide: 75rem;
}

/* ---------- 2. Base / reset ---------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--content-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Small uppercase monospace labels, used throughout as a technical accent */
.section-label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-label);
  margin: 0 0 0.75rem;
}

/* ---------- Shared section pieces --------------------------------------- */
section {
  scroll-margin-top: 64px; /* so menu links don't land under the sticky menu bar */
}

@media (max-width: 600px) {
  section {
    scroll-margin-top: 96px; /* the menu bar is two lines tall on phones */
  }
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.h2--italic {
  font-style: italic;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 47.5rem;
  margin-bottom: 3rem;
}

.section-head .section-label {
  margin: 0;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent-text);
  background: var(--color-accent);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  display: inline-block;
  align-self: flex-start;
}

/* ---------- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

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

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  text-decoration: underline;
}

/* ---------- Menu bar (sticky) --------------------------------------------
   Logo, the four section links and the language toggle. Stays pinned to the
   top of the window while scrolling; kept slim so it takes little space.
   ------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.brand {
  display: flex;
  flex-shrink: 0;
}

.brand__logo {
  height: 26px;
  width: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  overflow-x: auto; /* on narrow phones the links scroll sideways instead of wrapping */
  scrollbar-width: none;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 0.25rem;
}

.menu a:hover {
  color: var(--color-primary);
}

/* Language toggle — small pill on the right of the menu bar, current
   language highlighted. */
.lang-toggle {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-outline-variant);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.1rem;
}

.lang-toggle a {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text-muted);
}

.lang-toggle a:hover {
  color: var(--color-primary);
}

.lang-toggle a[aria-current="page"] {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 46rem;
}

.hero__copy .eyebrow {
  margin: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero__accent {
  font-style: italic;
  color: var(--color-primary);
}

.hero__tagline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 34em;
  margin: 0;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.hero__trust span[aria-hidden] {
  color: var(--color-outline-variant);
}

/* ---------- 01 Pain points ------------------------------------------------ */
.pains {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--color-border);
}

.pains__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.pains__intro {
  flex: 1 1 20rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pains__intro .section-label {
  margin: 0;
}

.pains__grid {
  flex: 2 1 35rem;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pains__grid li {
  background: var(--color-background);
  padding: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pains__grid .section-label {
  margin: 0;
}

/* ---------- 02 Services --------------------------------------------------- */
/* ---------- Diagnostic band (lead questionnaire) ----------------------
   Pale mint strip between the pain points and the services: a short pitch
   on the left and the button that opens the Tally questionnaire.
   ------------------------------------------------------------------------ */
.diagnostic {
  background: var(--color-accent-soft);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.diagnostic__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.diagnostic__copy {
  flex: 1 1 32rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diagnostic__copy .section-label {
  margin: 0;
  color: var(--color-accent-text);
}

.services {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.card p {
  color: var(--color-text-muted);
  margin: 0;
}

.card__examples {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card__examples .section-label {
  margin: 0;
}

.card__examples p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin: 2.5rem 0 0;
  font-weight: 600;
  color: var(--color-text-muted);
}

.tools .section-label {
  margin: 0;
  font-weight: 400;
}

/* ---------- 03 How I work ------------------------------------------------- */
.process {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-top: 3px solid var(--color-primary);
  padding-top: 1.25rem;
}

/* The four top borders go from deep teal to mint, like the logo underline */
.step--2 { border-top-color: #2f8a83; }
.step--3 { border-top-color: #5fbfa6; }
.step--4 { border-top-color: var(--color-accent); }

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.step p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- 04 About ------------------------------------------------------ */
.about {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.about__inner .section-label {
  margin: 0;
}

.about__text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.55;
  margin: 0;
}

.about .lead {
  font-size: 1.05rem;
}

.about__inner > *,
.ideas__inner > * {
  max-width: 50rem; /* readable line length, but left-aligned like the other sections */
}

/* The name story: πλέκω next to a short explanation */
.name-note {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.name-note__word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--color-primary);
  white-space: nowrap;
}

.name-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---------- 05 Ideas (Substack) ------------------------------------------- */
.ideas {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.ideas__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.ideas__inner .section-label {
  margin: 0;
}

/* ---------- 06 Book a call ------------------------------------------------
   Dark teal closing band: text and contact links on the left, a compact
   Cal.com calendar in a white card on the right.
   ------------------------------------------------------------------------ */
.contact {
  background: var(--color-dark);
  color: #fff;
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.contact__copy {
  flex: 1 1 100%;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact .section-label {
  color: var(--color-accent);
  margin: 0;
}

.contact__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
}

.contact__subtext {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #cfe3e1;
  margin: 0;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 0.5rem;
}

/* Booking button: mint on the dark band; opens the Cal.com pop-up */
.btn--mint {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.btn--mint:hover {
  background: #fff;
  transform: translateY(-1px);
}

.contact__links a:not(.btn) {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid #5fbfa6;
}

.contact__links a:not(.btn):hover {
  color: var(--color-accent);
}

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--color-label);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  /* Phones: the menu bar becomes two lines so every link is always visible.
     Line 1: logo on the left, language toggle on the right.
     Line 2: the four section links, spread across the full width. */
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }

  .lang-toggle {
    order: 2;
  }

  .menu {
    order: 3;
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 0.5rem;
    overflow-x: visible;
  }

  .menu a {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }

  .brand__logo {
    height: 22px;
  }

  .pains__grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .name-note {
    flex-direction: column;
  }
}
