/* ==========================================================================
   Gentle Little Human — base stylesheet
   Brand palette:
     #556B2F  olive green   — primary; buttons, header/footer, accents
     #EAE5DF  warm cream    — secondary; page/section backgrounds
     #3C3C29  dark olive    — text color
   Typography is still a placeholder pending brand fonts.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400;0,600;0,700;1,400&family=Lexend+Deca:wght@400;600;700&family=Patrick+Hand&display=swap');

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #EAE5DF;       /* brand cream */
  --color-text: #3C3C29;         /* brand dark olive */
  --color-text-muted: #6d6d54;   /* lighter tint of dark olive */
  --color-primary: #556B2F;      /* brand olive green */
  --color-primary-dark: #435624; /* darker olive for hover states */
  --color-on-primary: #EAE5DF;   /* text/icons on top of the primary color */
  --color-border: #d9d2c7;       /* tint derived from brand cream */

  --font-brand: "Patrick Hand", cursive;
  --font-heading: "Lexend Deca", sans-serif;
  --font-body: "Cabin", sans-serif;
  --max-width: 1100px;
  --radius: 12px;
}

/* ---------- Team Teaser Grid (Homepage Option B) ---------- */

.team-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.team-teaser-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 0.75rem;
}

.team-teaser-photo {
  width: 130px;
  height: 130px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-teaser-name {
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  white-space: nowrap;
  margin-bottom: 0.35rem;
}

.team-teaser-role {
  font-size: clamp(0.7rem, 0.85vw, 0.76rem);
  color: var(--color-primary-dark);
  font-weight: 600;
  white-space: nowrap;
  margin: 0 0 0.4rem;
}

.team-teaser-affiliation {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0 0 1.25rem;
}

.btn-teaser-more {
  font-size: 0.82rem;
  padding: 0.45rem 1.15rem;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-bg);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.btn-teaser-more:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.team-teaser-footer {
  text-align: center;
  margin-top: 1rem;
}

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

@media (max-width: 520px) {
  .team-teaser-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dedicated Team Page (Expandable Grid) ---------- */

.team-expand-controls {
  text-align: center;
  margin-bottom: 2rem;
}

.btn-toggle-all {
  background: none;
  border: 1px dashed var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-toggle-all:hover {
  background: rgba(85, 107, 47, 0.08);
  border-color: var(--color-primary);
}

.team-expand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.team-expand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem 1.5rem;
  scroll-margin-top: 6rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.team-expand-card.is-expanded {
  border-color: rgba(85, 107, 47, 0.4);
  box-shadow: 0 6px 20px rgba(60, 60, 41, 0.08);
}

.btn-expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-bg);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-top: 0.75rem;
}

.btn-expand-toggle:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-expand-icon {
  transition: transform 0.25s ease;
}

.btn-expand-toggle[aria-expanded="true"] .btn-expand-icon {
  transform: rotate(180deg);
}

.team-expand-drawer {
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  text-align: left;
}

.team-expand-drawer[hidden] {
  display: none !important;
}

.team-expand-bio {
  color: var(--color-text);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.team-expand-meta {
  background: rgba(60, 60, 41, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.team-expand-meta dl {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.team-expand-meta dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
}

.team-expand-meta dd {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.team-expand-cta {
  text-align: center;
  margin-top: 0.5rem;
}

.team-expand-cta .btn {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

@media (max-width: 960px) {
  .team-expand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 560px) {
  .team-expand-grid {
    grid-template-columns: 1fr;
  }
}
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 0.9em; }

figure { margin: 0; }

a { color: var(--color-primary-dark); }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 48px;
  height: 48px;
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--color-primary-dark); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-cta {
  background: var(--color-primary);
  color: var(--color-on-primary) !important;
  border: 1px solid var(--color-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 5rem 0;
  text-align: center;
  /* Dark green glows outward from the center — where the cream
     logo/heading/text sit, so contrast stays solid there — softening
     into the lighter green only toward the outer edges. A flat color
     followed by a single linear ramp reads as a hard ring (the eye is
     very sensitive to that kink where the rate of change suddenly
     starts), so the fade is broken into several small graduated steps
     instead of one jump, easing in gradually with no visible edge. */
  background: radial-gradient(
    ellipse at center,
    #556B2F 0%,
    #556B2F 48%,
    #607541 62%,
    #71824c 73%,
    #85915c 83%,
    #9aa16f 92%,
    #aeb185 101%,
    #B7C8A2 170%
  );
  color: var(--color-on-primary);
}

@media (min-width: 641px) {
  .hero {
    padding: 3.25rem 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0;
  }

  .hero-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 0.8rem;
  }
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  display: block;
}

.hero h1 {
  color: var(--color-on-primary);
  font-family: var(--font-brand);
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  color: var(--color-on-primary);
  opacity: 0.9;
  font-size: 1.05rem;
}

/* Wide enough that the whole sentence fits on one line at typical
   desktop/laptop widths instead of wrapping "less alone" onto its own
   second line (no forced nowrap, so it still wraps gracefully rather
   than overflowing on narrower in-between widths). */
@media (min-width: 640px) {
  .hero-subtitle {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--color-on-primary);
  color: var(--color-primary-dark);
}

.btn-primary:hover { background: #fff; }

/* ---------- Sections ---------- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Reduce space below "Meet the Team" title */
#team .section-title {
  margin-bottom: 1rem;
}

.section-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: justify;
}

@media (max-width: 640px) {
  #about {
    padding: 2.5rem 0;
  }

  #about .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  #about .about-content p {
    font-size: 0.9rem;
    text-align: justify;
  }

  #about .about-content p + p {
    margin-top: 0.6rem;
  }
}

/* ---------- Grids / Cards ---------- */

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

/* ---------- Team carousel (one member at a time) ---------- */

.team-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.team-viewport {
  width: 100%;
  max-width: 780px;
  overflow: hidden;
  transition: height 0.4s ease;
}

.team-slides {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}

.team-slides .team-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.carousel-arrow:hover {
  background: var(--color-primary-dark);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-counter {
  text-align: center;
  margin: 1.25rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .team-carousel {
    gap: 0.6rem;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
}

/* Services: 3 across, then 2 — flexbox so the 2nd row centers instead
   of stretching to fill the grid or leaving a gap. */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.15rem;
}

.services-grid .service-card {
  flex: 1 1 215px;
  max-width: 320px;
}

.services-break {
  display: none;
}

/* Enforces 4 cards (line 1) and 3 cards (line 2) on desktop */
@media (min-width: 960px) {
  .services-break {
    display: block;
    flex-basis: 100%;
    height: 0;
    margin: 0;
  }

  .services-grid .service-card {
    flex: 0 0 calc((100% - 3 * 1.15rem) / 4);
    max-width: calc((100% - 3 * 1.15rem) / 4);
  }
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
}

/* Top row of a team card: photo centered against the name/title/details
   block (not the full card — the bio sits below, full width). */
.team-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.team-card-info {
  width: 100%;
}

.avatar-placeholder {
  width: 190px;
  height: 190px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.avatar-photo {
  width: 190px;
  height: 190px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-role {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Landscape team card: photo sits beside (and vertically centered
   against) the name-to-languages block, instead of stacked above it. */
@media (min-width: 640px) {
  .team-card-top {
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
    text-align: left;
  }

  .team-card-info {
    flex: 1;
    min-width: 0;
  }

  .team-card .team-bio {
    text-align: justify;
  }
}

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

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

.service-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1.25rem 1.05rem;
}

.service-card h3 {
  font-size: 0.98rem;
}

.service-card .card-text {
  font-size: 0.84rem;
  line-height: 1.45;
}

.service-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.9rem;
  color: var(--color-primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Structured rate list — every service card shows a "Rate" heading
   followed by one or more label/value rows (or just a value row, for
   services with a single flat rate or a "get in touch" note). Mirrors
   the label/value pattern used for team member education/affiliation,
   scoped separately so the two never accidentally share style changes. */
.service-rates-heading {
  margin: 0.85rem 0 0.15rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
}

/* Tighter gap before a single flat-rate/note row directly under "Rate"
   with no subheading in between (Workshops/Corporate's "Get in touch"
   row) — cards that have a subheading control their own gap below via
   .service-rates-subheading(--tight) instead. */
.service-rates-heading--tight {
  margin-bottom: 0.1rem;
}

/* Qualifies who the rate below applies to (e.g. "Licensed Counsellor"),
   sitting between "Rate" and the actual price row(s). */
.service-rates-subheading {
  margin: 0 0 0.25rem;
  text-align: left;
  font-size: 0.7rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Tighter gap before a single flat-rate row (no dt label needed). */
.service-rates-subheading--tight {
  margin-bottom: 0.1rem;
}

/* Licensed Counsellor / Trainee side by side, like the two columns of a
   table, without actual table markup. Licensed gets more room since its
   labels ("First Trial"/"Follow-Ups") are longer than Trainee's. */
.service-rates-columns {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.service-rates-column {
  flex: 1.15;
  min-width: 0;
}

.service-rates-column--trainee {
  flex: 1;
  padding-left: 0.75rem;
  border-left: 1px solid var(--color-border);
}

.service-rates {
  text-align: left;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}

.service-rates div + div {
  margin-top: 0.5rem;
}

.service-rates dt {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--color-primary-dark);
}

.service-rates dd {
  margin: 0.1rem 0 0;
  color: var(--color-text-muted);
}

/* Small session-length note at the bottom of each service card. */
.service-duration {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 0.3rem;
  /* This is always the last thing in the card, so pushing it down with
     an auto top margin (rather than a fixed one) pins it to the same
     bottom line across every card in a row — unlike "Rate" further up,
     which has variable-height content after it, duration has nothing
     trailing it, so this reliably lines cards up regardless of how tall
     their rate block is. */
  margin: auto 0 0;
  padding-top: 0.85rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.service-duration-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .services-grid .service-card {
    padding: 1.15rem;
    max-width: 280px;
  }

  .service-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0.75rem;
  }

  .service-card h3 {
    font-size: 1.05rem;
  }

  .service-card .card-text {
    font-size: 0.85rem;
  }

  .service-rates-heading {
    font-size: 0.7rem;
    margin-top: 0.85rem;
  }

  .service-rates-heading--tight {
    margin-bottom: 0.1rem;
  }

  .service-rates-subheading {
    font-size: 0.66rem;
  }

  .service-rates-subheading--tight {
    margin-bottom: 0.1rem;
  }

  .service-rates {
    font-size: 0.78rem;
  }
}

/* ---------- Team details (education, affiliation, languages) ---------- */

.team-details {
  text-align: left;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
}

.team-details div + div {
  margin-top: 0.85rem;
}

.team-details dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
}

.team-details dd {
  margin: 0.2rem 0 0;
  color: var(--color-text-muted);
}

.team-bio {
  text-align: center;
  margin-top: 1.5rem;
}

/* "Read more" only exists for mobile — desktop/tablet cards have room to
   show the full bio inline, so this stays hidden and the bio unhidden
   there. On mobile, the bio is hidden entirely and "Read more" sits right
   under Languages Spoken, opening the full bio in a popup (see .bio-modal
   below and js/script.js). */
.bio-readmore {
  display: none;
  margin: 0.25rem auto 0;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 640px) {
  .team-bio {
    display: none;
  }

  .bio-readmore {
    display: block;
    font-size: 0.8rem;
  }

  /* Taller, roomier card — more breathing space than the tightly-packed
     default. Photo stays a perfect circle (avatar-photo/avatar-placeholder
     keep width = height, enforced with aspect-ratio too). Extra
     horizontal padding here keeps text clear of the overlaid arrows
     below. */
  .team-card {
    padding: 2.75rem 3.25rem;
  }

  .team-card-top {
    gap: 1.5rem;
  }

  /* Arrows move off to the side of the flow and overlay the card as
     small translucent circles instead of sitting in the row beside it —
     frees up the full screen width for the card itself. Pinned to 34px
     (rather than the 44px default used 561-640px) so the card's padding
     above only has to clear one consistent arrow size. */
  .team-carousel {
    position: relative;
  }

  .team-viewport {
    max-width: 100%;
  }

  .team-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    background: rgba(85, 107, 47, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .team-carousel .carousel-arrow:hover {
    background: rgba(85, 107, 47, 0.75);
  }

  .team-carousel .carousel-prev {
    left: 0.25rem;
  }

  .team-carousel .carousel-next {
    right: 0.25rem;
  }

  .team-card-info h3 {
    font-size: 1.05rem;
  }

  .card-role {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  .team-details {
    font-size: 0.78rem;
  }

  .team-details dt {
    font-size: 0.65rem;
  }

  .team-details div + div {
    margin-top: 0.85rem;
  }
}

/* Bio popup opened by "Read more" on mobile. Display is toggled via JS
   (see js/script.js) rather than the .is-open class, so the panel can
   animate a smooth minimize/maximize scale+fade instead of just
   snapping in and out with display:none. */
.bio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.bio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 60, 41, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bio-modal.is-open .bio-modal-backdrop {
  opacity: 1;
}

.bio-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bio-modal.is-open .bio-modal-panel {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .bio-modal-backdrop,
  .bio-modal-panel {
    transition: none;
  }
}

.bio-modal-panel h3 {
  margin-bottom: 1.25rem;
}

.bio-modal-panel p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: justify;
}

.bio-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Gallery / Past Workshops ---------- */
/* Paged 3-up carousel: shows 3 workshops per page, with prev/next arrows
   ready to go the moment a 4th workshop makes a second page (see
   js/script.js — arrows/counter auto-hide while there's only one page). */

.gallery-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.gallery-viewport {
  width: 100%;
  overflow: hidden;
  transition: height 0.4s ease;
}

.gallery-pages {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}

.gallery-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .gallery-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-page {
    grid-template-columns: 1fr;
  }
}

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

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--color-border);
}

/* Multi-photo gallery tile: stacked, crossfades between photos on hover
   (see js/script.js) instead of showing them side by side. */
.gallery-photos {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
  overflow: hidden;
}

.gallery-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-photos img.is-active {
  opacity: 1;
}

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.gallery-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.gallery-caption {
  padding: 1.1rem 1.25rem 1.35rem;
  text-align: left;
}

.gallery-title {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.gallery-collab {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Testimonials ---------- */
/* Same paged carousel pattern as the gallery: 3 per page, arrows/counter
   auto-hide until a 4th testimonial makes a second page. */

.testimonial-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.testimonial-viewport {
  width: 100%;
  overflow: hidden;
  transition: height 0.4s ease;
}

.testimonial-pages {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}

.testimonial-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .testimonial-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .testimonial-page {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  margin: 0;
}

.testimonial-card p {
  font-style: italic;
  text-align: left;
}

.testimonial-card footer {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Mobile: clamp long testimonials to ~7 lines with a "Read more" button
   (shared .bio-readmore popup, see js/script.js) instead of showing the
   full quote inline. The name/attribution footer stays visible below,
   same as on desktop. */
.testimonial-card .bio-readmore {
  margin: 0.6rem 0 0.85rem;
}

@media (max-width: 640px) {
  .testimonial-quote {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    overflow: hidden;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-on-primary);
  font-size: 0.9rem;
}

.site-footer a { color: var(--color-on-primary); }

.footer-inner p { margin: 0.25rem 0; }

.footer-note { opacity: 0.85; }

.footer-columns {
  display: flex;
  align-items: stretch;
  text-align: left;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  gap: 2rem;
}

.footer-col-contact,
.footer-col-links {
  flex: 1 1 0%;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-divider-line {
  flex: 0 0 auto;
  width: 1px;
  background: rgba(234, 229, 223, 0.4);
}

.footer-heading {
  color: var(--color-on-primary);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.footer-contact {
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

.footer-contact p {
  margin: 0 0 0.4rem;
  white-space: nowrap;
}

.footer-contact-label {
  opacity: 0.85;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  justify-content: flex-start; /* Default left-aligned for desktop */
  gap: 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(234, 229, 223, 0.15);
  border: 1px solid rgba(234, 229, 223, 0.4);
  transition: background 0.15s ease;
}

.social-btn:hover {
  background: rgba(234, 229, 223, 0.3);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--color-on-primary);
}

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

@media (max-width: 720px) {
  /* On the homepage, reduce the gap between the Book Now button and the hamburger menu */
  .page-home .header-controls {
    gap: 1rem;
  }

  /* The home page has a long nav, so it uses a hamburger menu on mobile */
  .page-home .nav-toggle { display: flex; }

  .page-home .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .page-home .site-nav.open { display: block; }

  .page-home .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
  }

  /* On mobile, reduce nav link gap for all pages */
  .site-nav ul {
    gap: 1rem;
  }

  .footer-social {
    justify-content: center; /* Center on mobile */
  }

  .hero h1 { font-size: 2.8rem; }

  .footer-col-contact {
    width: 100%;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(234, 229, 223, 0.4);
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: none;
    gap: 1.5rem;
  }

  .footer-col-links {
    text-align: center;
  }

  .footer-divider-line {
    display: none;
  }
}

/* Very narrow phones — the contact/email lines may no longer fit on one
   line at full width, so let them wrap instead of overflowing. */
@media (max-width: 360px) {
  .footer-contact p {
    white-space: normal;
  }
}

/* Narrow phones — shrink further so "Gentle Little Human" always fits
   on one line instead of wrapping. */
@media (max-width: 400px) {
  .hero h1 { font-size: 2.3rem; }
}

/* ---------- Legal pages (terms.html, privacy.html) ---------- */

.legal-content {
  max-width: 700px;
}

.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.lang-btn {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.lang-btn:hover {
  background: var(--color-bg-alt);
}

.lang-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-updated-top {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-emergency {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.legal-emergency p:first-child {
  margin-top: 0;
}

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

.legal-rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.legal-disclaimer {
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

.legal-back-link {
  display: inline-block;
  margin-top: 1rem;
}

/* ---------- Registration form (register.html) ---------- */

.register-content {
  max-width: 640px;
}

.register-intro {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.form-section-title {
  font-size: 1.05rem;
  margin: 0;
}

#formRest,
#peopleContainer,
.person-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#formRest {
  gap: 1.5rem;
}

#formRest[hidden] {
  display: none;
}

.person-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.person-block-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.person-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.person-remove-btn:hover {
  background: var(--color-border);
}

.btn-add-person {
  align-self: flex-start;
  margin-top: 1rem;
  background: none;
  border: 1px dashed var(--color-border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

.btn-add-person:hover {
  background: var(--color-bg-alt);
}

.form-note {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label,
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}

.form-group textarea {
  resize: vertical;
}

.option-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.option-btn input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option-btn span {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.option-btn input:checked + span {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.option-btn input:focus-visible + span {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.form-hidden-field {
  position: absolute;
  left: -9999px;
}

.btn-olive {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: none;
  cursor: pointer;
}

.btn-olive:hover {
  background: var(--color-primary-dark);
}

.form-error {
  color: #b23a3a;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.form-success {
  text-align: center;
  padding: 2rem 0;
}

.form-success h2 {
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ---------- Motion: scroll-reveal + hover lift ----------
   Kept subtle on purpose (small rise + fade, short travel distance) to
   match the site's calm tone. Fully respects prefers-reduced-motion —
   outside that media query .reveal has no hidden state, so elements are
   always visible by default; JS (js/script.js) only adds the animated
   hidden-until-scrolled-into-view behavior when motion is allowed. A
   <noscript> rule in the <head> covers browsers with JS disabled. */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  /* Slight cascade across the service cards instead of all popping in
     at once. */
  .services-grid .service-card.reveal:nth-child(1) { transition-delay: 0s; }
  .services-grid .service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
  .services-grid .service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
  .services-grid .service-card.reveal:nth-child(4) { transition-delay: 0.24s; }
  .services-grid .service-card.reveal:nth-child(6) { transition-delay: 0.32s; }
  .services-grid .service-card.reveal:nth-child(7) { transition-delay: 0.4s; }
  .services-grid .service-card.reveal:nth-child(8) { transition-delay: 0.48s; }
}

/* Soft hover lift on browsable card tiles (not team-card — its carousel
   viewport height is measured precisely from the resting card, so a
   hover transform there risks clipping against the animated frame). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card,
  .gallery-card,
  .testimonial-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .service-card:hover,
  .gallery-card:hover,
  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(60, 60, 41, 0.14);
  }
}

/* TEMPORARY — hide the Gallery paging arrows/counter on desktop/tablet
   only, until there's enough workshops to need paging there (currently
   4 cards fit as 3-then-1, so desktop doesn't strictly need them yet).
   On mobile the same 4 cards become one-per-page, so the 2nd–4th
   workshops would be unreachable without arrows — those stay on. The
   JS pagination logic underneath is untouched either way; delete this
   block once there's enough desktop content to need paging there too. */
@media (min-width: 641px) {
  #galleryPrev,
  #galleryNext,
  #galleryCounter {
    display: none;
  }
}
/* ============ FORM NOTE SPACING ADJUSTMENTS ============ */
/* Pulls the helper note snuggly up to the label, overriding the flex gap */
.form-group .form-note {
  margin-top: -6px !important;    /* Sneaks the helper note right under the header label */
  margin-bottom: 8px !important;  /* Leaves a clean, comfortable space before the input field */
  line-height: 1.3;               /* Keeps multi-line notes compact and neat */
  font-size: 0.82rem;             /* Perfectly sized secondary help text */
}
/* ============ RE-DESIGNED FAQ ACCORDION STYLES ============ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* Individual boxes using dark green/olive with low opacity for a soft, premium sage-gray tint */
.faq-item {
  background: rgba(60, 60, 41, 0.06); /* Brand dark olive (#3C3C29) at 6% transparency */
  border: 1px solid rgba(60, 60, 41, 0.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  list-style: none;
}

/* Slightly deeper tint when expanded */
.faq-item[open] {
  background: rgba(60, 60, 41, 0.1); /* 10% transparency when open */
  border-color: rgba(85, 107, 47, 0.35); /* Brand olive green border when open */
  box-shadow: 0 4px 12px rgba(60, 60, 41, 0.04);
}

/* Question style - bolded but sized down for a neat, compact look */
.faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem; /* Sized down to look much cleaner and balanced */
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  user-select: none;
}

/* Hides default details arrow on Safari/Chrome */
.faq-question::-webkit-details-marker {
  display: none;
}

/* Custom toggle arrow */
.faq-question::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--color-text);
  opacity: 0.65;
  transition: transform 0.25s ease;
  margin-left: 1rem;
}

/* Smooth arrow rotation when open */
.faq-item[open] .faq-question::after {
  transform: rotate(-180deg);
}

/* Answer content styling */
.faq-answer {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(60, 60, 41, 0.1);
  color: var(--color-text);
  font-size: 0.9rem; /* Sized down proportionally to match the question */
  line-height: 1.6;
}

.faq-answer p {
  margin: 0 0 0.75rem;
}

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

.faq-answer a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--color-primary);
}
/* ============ STICKY FOOTER LAYOUT ============ */
/* Ensures the footer always sits at the absolute bottom on short pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* Automatically expands to push the footer to the bottom */
}

/* ============ FLOATING WHATSAPP BUTTON ============ */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #25D366; /* Official WhatsApp Green */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ============ QUIZ STYLES ============ */
.quiz-container {
  text-align: center;
}

.quiz-intro-chars {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  /* The images have transparent padding, so we use a negative margin to pull them together. */
}

.quiz-intro-chars img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.quiz-intro-chars img:not(:first-child) {
  margin-left: -2rem;
}

.quiz-disclaimer {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-muted);
  background: rgba(60, 60, 41, 0.06);
  border: 1px solid rgba(60, 60, 41, 0.12);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.quiz-question-container {
  min-height: 250px; /* Prevent layout jump */
  max-width: 680px;
  margin: 0 auto;
}

.quiz-question {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.quiz-answers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.quiz-answer-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.quiz-answer-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.quiz-progress {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.quiz-cta-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.quiz-cta-chars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.quiz-cta-chars img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-left: -1.75rem; /* Overlap them slightly */
}

.quiz-cta-chars img:first-child {
  margin-left: 0;
}

.quiz-cta-content {
  flex: 0 0 auto;
  text-align: left;
}

.quiz-cta-content h3 {
  font-family: var(--font-brand);
  color: var(--color-primary);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  margin: 0 0 0.4rem;
  line-height: 1.15;
  white-space: nowrap;
}

.quiz-cta-content p {
  color: var(--color-text-muted);
  margin: 0 0 1.15rem;
  white-space: nowrap;
}

/* ============ QUIZ RESULTS STYLES ============ */
.quiz-results-header {
  margin-bottom: 2rem;
}

.quiz-result-headline {
  font-family: var(--font-brand);
  color: var(--color-primary);
  font-size: 2.3rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.quiz-result-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.quiz-result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.quiz-result-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  text-align: left;
  box-shadow: 0 4px 16px rgba(60, 60, 41, 0.05);
}

.quiz-result-card[hidden] {
  display: none !important;
}

.quiz-result-card-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.quiz-result-img {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0;
}

.quiz-result-info h3 {
  font-family: var(--font-brand);
  color: var(--color-primary);
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

.quiz-result-desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* Spectrum Breakdown Accordion */
.quiz-breakdown-card {
  background: rgba(60, 60, 41, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  text-align: left;
  margin-top: 1.5rem;
}

.quiz-breakdown-title {
  font-family: var(--font-brand);
  color: var(--color-primary);
  font-size: clamp(1.2rem, 5.2vw, 1.8rem);
  white-space: nowrap;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.quiz-breakdown-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.quiz-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-spectrum-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-spectrum-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(60, 60, 41, 0.08);
}

details.quiz-spectrum-item summary::-webkit-details-marker {
  display: none;
}

details.quiz-spectrum-item summary {
  list-style: none;
  outline: none;
  cursor: pointer;
  padding: 0.85rem 1.15rem;
  user-select: none;
}

.quiz-spectrum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.quiz-spectrum-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-spectrum-thumb {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.quiz-spectrum-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.quiz-spectrum-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-spectrum-pct {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.quiz-spectrum-arrow svg {
  stroke: var(--color-text-muted);
  transition: transform 0.25s ease;
  display: block;
}

details.quiz-spectrum-item[open] .quiz-spectrum-arrow svg {
  transform: rotate(180deg);
  stroke: var(--color-primary);
}

.quiz-spectrum-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(60, 60, 41, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-spectrum-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.quiz-spectrum-body {
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 1px dashed rgba(60, 60, 41, 0.15);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.quiz-spectrum-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(60, 60, 41, 0.08);
}

.quiz-spectrum-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.quiz-spectrum-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quiz-spectrum-block p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.93rem;
  line-height: 1.6;
  opacity: 0.92;
}

.quiz-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Share Section */
.quiz-share-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.quiz-share-title {
  font-family: var(--font-brand);
  color: var(--color-primary);
  font-size: 1.8rem;
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.quiz-share-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 auto 1.5rem;
  max-width: 520px;
}

.quiz-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.share-btn-story {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.share-btn-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.35);
  opacity: 0.95;
}

.share-btn-download,
.share-btn-copy {
  background: var(--color-bg);
  color: var(--color-text) !important;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.share-btn-download:hover,
.share-btn-copy:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.quiz-share-status {
  font-size: 0.88rem;
  margin: 1.25rem auto 0;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  display: inline-block;
  border: 1px solid var(--color-border);
  max-width: 500px;
}

.quiz-share-status[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .quiz-result-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .quiz-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.25rem;
    gap: 1.25rem;
  }
  .quiz-cta-chars {
    justify-content: center;
  }
  .quiz-cta-chars img {
    width: 65px;
    height: 65px;
    margin-left: -1.25rem;
  }
  .quiz-cta-chars img:first-child {
    margin-left: 0;
  }
  .quiz-cta-content {
    text-align: center;
  }
  .quiz-cta-content h3 {
    font-size: 1.75rem;
    white-space: normal;
  }
  .quiz-cta-content p {
    white-space: normal;
  }

  .quiz-result-card {
    padding: 1.5rem 1.25rem;
  }
  .quiz-breakdown-card {
    padding: 1.5rem 1.25rem;
  }
  .quiz-share-card {
    padding: 1.5rem 1.25rem;
  }
  .quiz-share-buttons {
    flex-direction: column;
  }
  .quiz-share-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
