/* Coaching tools index — aligned with the Capitolul urmator homepage
   (plum / ochre / cream, Fraunces + Instrument Sans). July 2026. */

:root {
  --plum: #7A4E63;
  --plum-deep: #5E3A4C;
  --ochre: #C89A5B;
  --ochre-deep: #B07E3F;
  --cream: #FAF6F0;
  --cream-2: #F3ECE1;
  --charcoal: #2E2A28;
  --muted: rgba(46, 42, 40, 0.62);
  --muted-soft: rgba(46, 42, 40, 0.5);
  --line: rgba(46, 42, 40, 0.14);
  --surface: rgba(255, 255, 255, 0.72);

  /* Category accents, kept within the warm plum/ochre family */
  --c-adults: #7A4E63;   --t-adults: rgba(122, 78, 99, 0.13);
  --c-teens:  #B07E3F;   --t-teens:  rgba(176, 126, 63, 0.16);
  --c-teams:  #5E3A4C;   --t-teams:  rgba(94, 58, 76, 0.13);
  --c-authors:#C89A5B;   --t-authors:rgba(200, 154, 91, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--cream);
  background-image:
    radial-gradient(120% 60% at 85% -5%, rgba(200, 154, 91, 0.20), transparent 60%),
    radial-gradient(120% 60% at 0% 105%, rgba(122, 78, 99, 0.16), transparent 55%);
  background-attachment: fixed;
  color: var(--charcoal);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: clamp(16px, 1.05vw + 13px, 18px);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* paper grain, same as homepage */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0 8px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
}
.brand-name { font-weight: 600; letter-spacing: 0.01em; color: var(--charcoal); }
.brand-name span { color: var(--muted); font-weight: 400; }

.lang-toggle {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.lang-toggle a, .lang-toggle span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.lang-toggle [aria-current="page"] {
  font-weight: 600;
  background: var(--plum);
  color: #fff;
}

/* Hero */
.hero { padding: 52px 0 40px; text-align: center; position: relative; }
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--plum-deep);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ochre-deep);
}
.hero p {
  max-width: 580px;
  margin: 22px auto 0;
  font-size: clamp(17px, 2.3vw, 20px);
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn-primary {
  background: var(--ochre);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(176, 126, 63, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--ochre-deep);
  box-shadow: 0 20px 38px -14px rgba(176, 126, 63, 0.75);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--plum-deep);
}
.btn-secondary:hover { background: #fff; transform: translateY(-2px); }

/* Filter bar */
.filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
}
.filter-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pill {
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 600;
  transition: all .18s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill .count {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
  background: rgba(46, 42, 40, 0.08);
  padding: 1px 8px;
  border-radius: 999px;
}
.pill-all { --accent: var(--plum); }
.pill-adults { --accent: var(--c-adults); }
.pill-teens { --accent: var(--c-teens); }
.pill-authors { --accent: var(--c-authors); }
.pill-teams { --accent: var(--c-teams); }
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pill.active .count { background: rgba(255, 255, 255, 0.22); }

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  padding-bottom: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 22px;
  position: relative;
  overflow: hidden;
  animation: cardIn .4s ease both;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -28px rgba(94, 58, 76, 0.4);
  background: #fff;
}
.card[hidden] { display: none; }
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--cat);
}
.cat-adults { --cat: var(--c-adults); --tint: var(--t-adults); }
.cat-teens { --cat: var(--c-teens); --tint: var(--t-teens); }
.cat-teams { --cat: var(--c-teams); --tint: var(--t-teams); }
.cat-authors { --cat: var(--c-authors); --tint: var(--t-authors); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cat);
}
.mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  color: var(--cat);
}
.card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--plum-deep);
}
.card h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--cat);
}
.card p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}
.card-open {
  font-size: 14px;
  font-weight: 600;
  color: var(--plum-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-open .arrow { color: var(--cat); }

/* CTA band */
.cta-band {
  margin: 20px 0 60px;
  border-radius: 30px;
  background: var(--plum-deep);
  color: var(--cream);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}
.cta-band::before {
  top: -80px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: rgba(200, 154, 91, 0.4);
}
.cta-band::after {
  bottom: -90px;
  left: -30px;
  width: 240px;
  height: 240px;
  background: rgba(122, 78, 99, 0.5);
}
.cta-inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  color: #fff;
}
.cta-band h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ochre);
}
.cta-band p {
  max-width: 480px;
  margin: 18px auto 30px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(250, 246, 240, 0.85);
}
.btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--plum-deep);
  font-weight: 600;
  font-size: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.35);
}
.btn-cream:hover { transform: translateY(-2px); }

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 48px;
  font-size: 14px;
  color: var(--muted-soft);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--plum); font-weight: 500; }
.footer a:hover { color: var(--plum-deep); }
