/*
 * Grove: the Theme Kit in Grove's own look. Linked after themes/_shared/assets/css/kit.css, so the variables set here
 * replace its defaults for every block and module section.
 *
 * Calm, warm and outdoors: cards are sheets of paper with a hairline edge and a soft, low shadow in a deep shade of the
 * land colour; buttons are leaves (two round corners, two nearly square) in the warm accent colour that turn over
 * slowly on hover; questions are separate paper rows whose corners turn into a leaf when they open; facts (numbers,
 * chips, badges) sit on soft rounded tiles; big icons sit in pebbles; photos have soft round corners and drift a
 * little closer when a linked card is hovered. Large headings take the calm, light weight of the serif
 * (--grove-heading-weight, set by the layout), small ones its firmer weight (--grove-heading-strong). Bands run the full
 * width; theme.css gives their tops and bottoms the hill lines, the section headings their sprig and small labels their
 * leaf, because this file may load nothing: every shape here is drawn with CSS.
 */

.kit-root {
  --grove-kit-shade: color-mix(in srgb, var(--primary, #34493a) 45%, #000);
  --kit-radius: 1.5rem;
  --kit-radius-sm: 0.9rem;
  --kit-media-radius: 1.25rem;
  --kit-button-radius: 1.25rem 0.35rem;
  --kit-input-radius: 0.9rem;
  --kit-chip-radius: 999px;
  --kit-shadow: 0 1px 2px color-mix(in srgb, var(--grove-kit-shade) 8%, transparent), 0 22px 40px -30px color-mix(in srgb, var(--grove-kit-shade) 50%, transparent);
  --kit-shadow-hover: 0 2px 4px color-mix(in srgb, var(--grove-kit-shade) 10%, transparent), 0 30px 50px -28px color-mix(in srgb, var(--grove-kit-shade) 62%, transparent);
  --kit-heading-weight: var(--grove-heading-weight, 400);
  --kit-heading-tracking: -0.01em;
  --kit-button-weight: var(--grove-body-strong, 600);
  --kit-button-tracking: 0;
  --kit-button-transform: none;
  --kit-eyebrow-tracking: 0.12em;
  --kit-star: var(--accent, #b2582f);
  --kit-card-pad: clamp(1.35rem, 2.2vw, 1.9rem);
  --kit-gap-medium: 1.5rem;
  --kit-gap-large: clamp(2rem, 4vw, 3rem);
  --kit-gutter: clamp(1.25rem, 4vw, 3rem);
  --kit-width-normal: 72rem;
  --kit-width-narrow: 44rem;
  --kit-width-wide: 90rem;
  --kit-pad-normal: clamp(4rem, 8vw, 7rem);
  --kit-pad-compact: clamp(2.5rem, 5vw, 3.75rem);
  --kit-pad-spacious: clamp(5.5rem, 11vw, 9.5rem);
  --kit-speed: 380ms;
  --kit-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* A photograph band sits under a deep, earthy shade of the land colour rather than plain black. */
.kit-section--image {
  background-image:
    linear-gradient(color-mix(in srgb, var(--grove-kit-shade) 58%, transparent), color-mix(in srgb, var(--grove-kit-shade) 66%, transparent)),
    var(--kit-section-image, none);
}

/* Headings in the serif, large ones light and calm, small ones firmer. */
.kit-heading {
  line-height: 1.12;
  text-wrap: balance;
}

.kit-heading--1 {
  font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.75rem);
  line-height: 1.06;
}

.kit-heading--2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem);
  line-height: 1.12;
}

.kit-heading--3,
.kit-heading--4 {
  font-weight: var(--grove-heading-strong, 600);
}

.kit-heading--3 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.22;
}

/* Small labels: spaced capitals in the leaf-ink colour (theme.css adds the leaf before them). */
.kit-eyebrow {
  font-size: 0.78rem;
  font-weight: var(--grove-body-strong, 600);
  letter-spacing: var(--kit-eyebrow-tracking);
}

.kit-text--lead {
  line-height: 1.65;
}

/* Buttons are leaves in the warm accent colour; on hover the leaf turns over and the colour deepens, slowly. On a
   coloured band the kit turns them into the band's light colour, which every palette keeps readable. */
.kit-button {
  min-height: 3rem;
  padding: 0.75rem 1.55rem;
  border-width: 1.5px;
  font-size: 1rem;
  line-height: 1.25;
  transition: background-color var(--kit-speed) ease, border-color var(--kit-speed) ease, color var(--kit-speed) ease, border-radius var(--kit-speed) var(--kit-ease), box-shadow var(--kit-speed) ease;
}

.kit-button--small {
  min-height: 2.6rem;
  padding: 0.45rem 1.15rem;
  font-size: 0.92rem;
}

.kit-button--primary,
.kit-button--primary:hover {
  color: var(--kit-on-accent);
}

.kit-button--primary {
  border-color: var(--kit-accent);
  background: var(--kit-accent);
}

.kit-button--primary:hover {
  border-color: color-mix(in srgb, var(--kit-accent) 86%, #000);
  background: color-mix(in srgb, var(--kit-accent) 86%, #000);
  box-shadow: 0 14px 26px -18px var(--grove-kit-shade);
}

.kit-button--secondary {
  border-color: var(--kit-line-strong);
  background: transparent;
  color: var(--kit-text);
}

.kit-button--secondary:hover {
  border-color: var(--kit-text);
  background: var(--kit-soft);
  color: var(--kit-text);
}

.kit-button--primary:hover,
.kit-button--secondary:hover,
.kit-button--light:hover {
  border-radius: 0.35rem 1.25rem;
}

.kit-button:active {
  transform: translateY(1px);
}

.kit-button--ghost {
  padding-inline: 0.25rem;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--kit-accent-text) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.kit-button--ghost:hover {
  background: none;
  text-decoration-color: var(--kit-accent-text);
}

.kit-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* Cards are sheets of paper: a hairline edge and a soft, low shadow; a linked card rises a little and its photo
   drifts closer, slowly. */
.kit-card--surface {
  border-color: var(--kit-line);
  background: var(--kit-surface);
  box-shadow: var(--kit-shadow);
}

.kit-card--outline {
  border-color: var(--kit-line-strong);
}

.kit-card--linked:hover {
  transform: translateY(-3px);
}

.kit-card--linked.kit-card--outline:hover {
  box-shadow: var(--kit-shadow-hover);
}

.kit-card__media img,
.kit-picture img {
  transition: transform 1.2s var(--kit-ease);
}

.kit-card--linked:hover .kit-card__media img {
  transform: scale(1.05);
}

.kit-card__title {
  font-family: var(--font-heading, serif);
  font-size: 1.25rem;
  font-weight: var(--grove-heading-strong, 600);
  letter-spacing: -0.005em;
}

.kit-card__eyebrow {
  font-size: 0.75rem;
  font-weight: var(--grove-body-strong, 600);
  letter-spacing: 0.12em;
}

/* A numbered step: the number in the heading face, on a pebble. */
.kit-card--plain > .kit-card__content > .kit-card__eyebrow {
  display: grid;
  place-items: center;
  width: fit-content;
  min-width: 3.1rem;
  min-height: 3.1rem;
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.85rem;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  background: var(--kit-soft);
  color: var(--kit-accent-text);
  font-family: var(--font-heading, serif);
  font-size: 1.3rem;
  font-weight: var(--kit-heading-weight);
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

/* Big icons in a row sit in pebbles of the soft accent colour, each pebble shaped a little differently. */
.kit-grid .kit-icon--large {
  box-sizing: content-box;
  padding: 0.7rem;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  background: var(--kit-soft);
  color: var(--kit-accent-text);
  stroke-width: 1.5;
}

.kit-grid > :nth-child(3n + 2) .kit-icon--large,
.kit-grid > :nth-child(3n + 2) > .kit-card__content > .kit-card__eyebrow {
  border-radius: 45% 55% 42% 58% / 55% 45% 58% 42%;
}

.kit-grid > :nth-child(3n) .kit-icon--large,
.kit-grid > :nth-child(3n) > .kit-card__content > .kit-card__eyebrow {
  border-radius: 52% 48% 62% 38% / 42% 58% 42% 58%;
}

/* Facts (a number and what it counts) sit on soft rounded tiles shaped like a leaf. */
.kit-grid > .kit-stack:has(> .kit-stat) {
  padding: clamp(1.4rem, 2.5vw, 2rem) 1rem;
  border: 1px solid var(--kit-line);
  border-radius: 2rem 0.6rem;
  background: var(--kit-surface);
}

.kit-stat__value {
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.5rem);
  letter-spacing: -0.015em;
}

/* Numbers and prices in the heading face. */
.kit-output--large,
.kit-price__amount,
.kit-summary__amount,
.kit-stat__value {
  font-family: var(--font-heading, serif);
  font-weight: var(--kit-heading-weight);
}

/* Chips and badges are soft rounded facts: a tinted pill, no outline. */
.kit-chip,
.kit-badge {
  border-color: transparent;
  font-size: 0.8rem;
  font-weight: var(--grove-body-strong, 600);
  letter-spacing: 0;
}

.kit-chip {
  padding: 0.25rem 0.85rem;
  background: color-mix(in srgb, var(--kit-tone) 11%, transparent);
}

/* A photo beside words (text with image, about) has the hero's arched top corner. */
.kit-split .kit-picture.kit-rounded {
  border-start-start-radius: clamp(3rem, 8vw, 7rem);
}

/* Round photos of people get a paper ring. */
.kit-avatar {
  box-shadow: 0 0 0 3px var(--kit-surface), 0 8px 18px -10px var(--grove-kit-shade);
}

/* Fields are soft rounded boxes on paper; the one you are typing in gets a soft ring of the accent colour. */
.kit-input {
  min-height: 3rem;
  padding-inline: 1.1rem;
  background-color: var(--kit-surface);
}

.kit-textarea {
  padding-block: 0.85rem;
  border-radius: 1.1rem;
}

.kit-select {
  padding-inline-end: 2.75rem;
}

.kit-input:focus {
  border-color: var(--kit-accent);
  box-shadow: 0 0 0 4px var(--kit-soft);
}

.kit-field__label {
  font-size: 0.93rem;
  font-weight: var(--grove-body-strong, 600);
}

/* Quotes are set in the heading face, upright, opened by a large quotation mark in the leaf-ink colour. */
.kit-quote {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.kit-quote__text {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-style: normal;
  font-weight: var(--kit-heading-weight);
  line-height: 1.55;
}

.kit-quote__text::before {
  content: "\201C";
  display: block;
  height: 0.55em;
  color: var(--kit-accent-text);
  font-family: var(--font-heading, serif);
  font-size: 2.8em;
  line-height: 1;
}

.kit-quote__author {
  margin-top: 1rem;
  font-size: 0.97rem;
  font-weight: var(--grove-body-strong, 600);
}

.kit-quote__role {
  margin-top: 0.15rem;
  font-size: 0.88rem;
}

/* Questions are separate paper rows; an open one turns its corners into a leaf and lifts a little. */
.kit-accordion {
  display: grid;
  gap: 0.75rem;
  border-top: 0;
}

.kit-accordion__item {
  padding-inline: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--kit-line);
  border-radius: 1.25rem;
  background: var(--kit-surface);
  transition: border-radius var(--kit-speed) var(--kit-ease), box-shadow var(--kit-speed) ease;
}

.kit-accordion__item[open] {
  border-radius: 1.75rem 0.5rem;
  box-shadow: var(--kit-shadow);
}

.kit-accordion__title {
  padding-block: 1.1rem;
  font-family: var(--font-heading, serif);
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem);
  font-weight: var(--grove-heading-strong, 600);
}

.kit-accordion__chevron {
  color: var(--kit-accent-text);
}

.kit-rich-text blockquote {
  margin-inline: 0;
  padding-inline-start: 1.25rem;
  border-inline-start: 2px solid var(--kit-accent);
  color: var(--kit-text);
  font-family: var(--font-heading, serif);
  font-size: 1.15em;
  line-height: 1.5;
}

/* Room under a row of slides for the cards' soft shadows. */
.kit-carousel__track {
  padding-bottom: 2.25rem;
}

.kit-carousel__controls {
  margin-top: -1rem;
}

.kit-carousel__button {
  border: 1px solid var(--kit-line-strong);
  border-radius: 50%;
  background: var(--kit-surface);
  color: var(--kit-text);
}

.kit-carousel__button:hover {
  border-color: var(--kit-text);
  background: var(--kit-surface-alt);
}

.kit-dialog,
.kit-drawer--right.is-ready,
.kit-drawer--bottom.is-ready {
  box-shadow: 0 40px 80px -40px var(--grove-kit-shade);
}

.kit-notice {
  border-radius: 1.25rem 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .kit-card--linked:hover,
  .kit-card--linked:hover .kit-card__media img,
  .kit-button:active {
    transform: none;
  }
}
