/*
 * The Theme Kit in Vital's look. The kit (themes/_shared/assets/css/kit.css) draws every block the theme has no template
 * for, and every module section; this file sets its tokens and the look of its parts, linked after kit.css, so the
 * values here win. The plus pattern on tinted bands needs a picture and lives in theme.css.
 *
 * The look: clean and calm. Cards are white with a crisp hairline and a quiet shadow, rounded but not soft; icons stand
 * in soft tiles of the accent colour; every section heading carries a small plus in a tile above it; buttons are rounded,
 * never pills; questions open on a plus that turns into a minus; steps are numbered in soft circles with a dashed path.
 *
 * Rules for this file: it loads nothing, no picture, font or address of any kind (the kit inlines it into module
 * previews; kit_components.test.php fails for one, and also for these words written in a comment);
 * colours only through the palette tokens the kit already reads (--text-primary, --surface, --primary, ...) or
 * color-mix() of them; weights only through the layout's --vital-heading-weight and --vital-body-strong.
 *
 * --kit-radius and --kit-button-radius are repeated in this theme's line of the shared button table
 * (themes/_shared/assets/css/resilience.css, --chrome-radius and --chrome-button-radius) so the cookie notice and the
 * phone action bar match the theme's own cards and buttons: theme-chrome.test.mjs compares the two. Change both.
 */

.kit-root {
  --kit-radius: 1rem;
  --kit-radius-sm: 0.75rem;
  --kit-button-radius: 0.75rem;
  --kit-input-radius: 0.75rem;
  --kit-media-radius: 1.25rem;
  --kit-heading-weight: var(--vital-heading-weight, 700);
  --kit-heading-tracking: -0.02em;
  --kit-button-weight: var(--vital-body-strong, 600);
  --kit-button-transform: none;
  --kit-eyebrow-tracking: 0.02em;
  --kit-focus: var(--accent-ink, #096d55);
  --kit-soft: color-mix(in srgb, var(--kit-accent) 11%, transparent);
  --kit-shadow: 0 1px 2px color-mix(in srgb, var(--text-primary, #0f2230) 5%, transparent), 0 8px 24px -18px color-mix(in srgb, var(--text-primary, #0f2230) 26%, transparent);
  --kit-shadow-hover: 0 2px 4px color-mix(in srgb, var(--text-primary, #0f2230) 6%, transparent), 0 22px 40px -22px color-mix(in srgb, var(--text-primary, #0f2230) 36%, transparent);
  --kit-card-pad: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
  --kit-gap-medium: clamp(1.25rem, 2vw, 1.75rem);
  --kit-gap-large: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --kit-gutter: clamp(1rem, 4vw, 2.25rem);
  --kit-width-normal: 74rem;
  --kit-width-narrow: 46rem;
  --kit-pad-normal: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);
  --kit-pad-compact: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
  --kit-pad-spacious: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --kit-measure: 66ch;
}

/* ------------------------------------------------------------------ Type */

/* Headings in the heading face, set a little tight. Sizes are set for ordinary words at 320 px; the shared script is only
   the net for a long word (cms/THEME_DEVELOPMENT.md, rule 1). A line height under about 1.1 cuts marks in a box that
   clips. */
.kit-heading {
  font-family: var(--font-heading, sans-serif);
  line-height: 1.15;
  text-wrap: balance;
}

.kit-heading--1 {
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.kit-heading--2 {
  font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem);
  letter-spacing: -0.022em;
  line-height: 1.14;
}

.kit-heading--3 {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.kit-heading.kit-heading--long {
  letter-spacing: -0.01em;
}

/* A section's heading carries the theme's plus in a soft tile above it, on the side the heading is set. */
.kit-heading-group:has(> .kit-heading--2)::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 0 1.1rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(var(--kit-accent-text), var(--kit-accent-text)) center / 0.85rem 0.19rem no-repeat,
    linear-gradient(var(--kit-accent-text), var(--kit-accent-text)) center / 0.19rem 0.85rem no-repeat,
    var(--kit-soft);
}

.kit-heading-group.kit-text--center:has(> .kit-heading--2)::before {
  margin-inline: auto;
}

/* One lead mark: a heading that already has an icon above it (a call to action's, a section's own) takes no plus. And
   the page title the renderer adds above content that has no h1 of its own is a title, not a section: no mark. */
.kit-icon + .kit-heading-group::before,
.pgs-page-title .kit-heading-group::before {
  content: none;
}

.kit-text--lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
}

.kit-text--lead:not(.kit-text--muted) {
  color: var(--kit-muted);
}

/* Small labels: the accent's readable shade, in the body face, not in capitals (capitals make long Lithuanian words much
   wider). */
.kit-eyebrow,
.kit-card__eyebrow {
  color: var(--kit-accent-text);
  font-size: 0.8125rem;
  font-weight: var(--vital-body-strong, 600);
  letter-spacing: var(--kit-eyebrow-tracking);
  text-transform: none;
}

.kit-link {
  font-weight: var(--vital-body-strong, 600);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* ------------------------------------------------------------------ Buttons */

.kit-button {
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.96875rem;
  line-height: 1.3;
}

/* A small button (a row of review links, Next under a list of posts) is still 42 px tall: the kit's own 36 px is under
   what a thumb needs on a phone (verify-theme-stress.mjs, button-small). */
.kit-button--small {
  min-height: 2.625rem;
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
}

.kit-button--primary {
  box-shadow: 0 1px 2px color-mix(in srgb, var(--kit-primary) 28%, transparent);
}

/* The quiet button: the surface with a hairline and the page's words; its hover rings it in the accent's shade. */
.kit-button--secondary {
  border-color: color-mix(in srgb, var(--kit-text) 22%, transparent);
  background: var(--kit-surface);
  color: var(--kit-text);
}

.kit-button--secondary:hover {
  border-color: var(--kit-accent-text);
  background: var(--kit-surface);
  box-shadow: inset 0 0 0 1px var(--kit-accent-text);
  color: var(--kit-text);
}

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

.kit-card--surface {
  border-color: var(--kit-line);
  box-shadow: var(--kit-shadow);
}

.kit-card--outline {
  border-color: var(--kit-line);
  background: var(--kit-surface);
}

.kit-card__title {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.kit-card--linked:hover {
  border-color: color-mix(in srgb, var(--kit-accent) 45%, var(--kit-line));
  transform: translateY(-2px);
}

.kit-card--linked:hover .kit-card__link {
  color: var(--kit-text);
}

/* A card's icon stands in a soft tile at its top, before the title (the kit writes it after the title, in the body):
   the card makes room above its content and the tile takes that room. A card with a picture keeps its icon in place. */
.kit-card:not(:has(> .kit-card__media), .kit-steps > *) > .kit-card__content:has(> .kit-card__body > .kit-icon:first-child) {
  padding-top: calc(var(--kit-card-pad) + 3.85rem);
}

.kit-card:not(:has(> .kit-card__media), .kit-steps > *) > .kit-card__content > .kit-card__body > .kit-icon:first-child {
  position: absolute;
  top: var(--kit-card-pad);
  inset-inline-start: var(--kit-card-pad);
  margin: 0;
}

.kit-card__body > .kit-icon:first-child,
.kit-features .kit-icon--large,
.kit-steps .kit-card__body > .kit-icon:first-child {
  box-sizing: border-box;
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border-radius: 0.85rem;
  background: var(--kit-soft);
  color: var(--kit-accent-text);
  stroke-width: 1.75;
}

/* A centred card keeps its tile in the middle. */
.kit-card:not(:has(> .kit-card__media), .kit-steps > *) > .kit-card__content:has(.kit-text--center) > .kit-card__body > .kit-icon:first-child {
  inset-inline-start: calc(50% - 1.5rem);
}

/* The "Learn more" line under a service: the accent's shade, its arrow moving on hover. */
.kit-card--linked .kit-card__body > .kit-text--small:last-child {
  color: var(--kit-accent-text);
  font-weight: var(--vital-body-strong, 600);
}

.kit-card--linked .kit-card__body > .kit-text--small:last-child .kit-icon {
  transition: transform var(--kit-speed) ease;
}

.kit-card--linked:hover .kit-card__body > .kit-text--small:last-child .kit-icon {
  transform: translateX(3px);
}

/* Features: each a white card with its icon in a tile. On a phone the kit lays them as compact rows; the card stays. */
.kit-grid.kit-features > .kit-stack {
  padding: var(--kit-card-pad);
  border: 1px solid var(--kit-line);
  border-radius: var(--kit-radius);
  background: var(--kit-surface);
  box-shadow: var(--kit-shadow);
}

@media (max-width: 639.98px) {
  .kit-grid.kit-features > .kit-stack {
    padding: 1rem 1.1rem;
  }

  .kit-grid.kit-features .kit-icon--large {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.55rem;
    border-radius: 0.7rem;
  }
}

/* Plans (pricing_table): the plans are flat cards on the surface; the one the website recommends is lifted and ringed
   in the accent colour, its label a small chip of the accent. */
.kit-grid:has(> .kit-card--outline) > .kit-card--outline {
  box-shadow: none;
}

.kit-grid:has(> .kit-card--outline) > .kit-card--surface {
  border: 2px solid var(--kit-accent);
  box-shadow: var(--kit-shadow-hover);
}

.kit-grid:has(> .kit-card--outline) > .kit-card--surface .kit-card__eyebrow {
  align-self: flex-start;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--kit-accent);
  color: var(--kit-on-accent);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Figures (stats_counter) stand on small white cards, their icons in soft tiles. */
.kit-grid > .kit-stack:has(> .kit-stat) {
  padding: var(--kit-card-pad);
  border: 1px solid var(--kit-line);
  border-radius: var(--kit-radius);
  background: var(--kit-surface);
  box-shadow: var(--kit-shadow);
}

.kit-icon--large:has(+ .kit-stat) {
  box-sizing: border-box;
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border-radius: 0.85rem;
  background: var(--kit-soft);
  color: var(--kit-accent-text);
}

/* An enquiry form standing on its own (contact_form) is a white card, like the one beside a split opening. */
.kit-section__inner > .kit-stack > .kit-form.kit-enquiry {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border: 1px solid var(--kit-line);
  border-radius: var(--kit-radius);
  background: var(--kit-surface);
  box-shadow: var(--kit-shadow);
}

.kit-frame {
  overflow: hidden;
  border-radius: var(--kit-media-radius);
}

/* ------------------------------------------------------------------ Steps */

/* A step without an icon leads with its number in a soft circle, a dashed path running from it to the card's edge. With
   an icon the kit makes the number a small label and the icon leads (one lead mark per step). */
.kit-steps > .kit-card {
  overflow: hidden;
}

.kit-steps .kit-card__content:not(:has(> .kit-card__body > .kit-icon:first-child)) > .kit-card__eyebrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--kit-soft);
  color: var(--kit-accent-text);
  font-family: var(--font-heading, sans-serif);
  font-size: 1rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: var(--vital-heading-weight, 700);
  letter-spacing: 0;
  line-height: 1;
}

.kit-steps .kit-card__content:not(:has(> .kit-card__body > .kit-icon:first-child)) > .kit-card__eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 0.75rem);
  width: 100vw;
  border-top: 2px dashed color-mix(in srgb, var(--kit-accent) 40%, transparent);
}

/* With an icon the same path runs from the icon's tile, through the middle of the tile's height, to the card's edge. */
.kit-steps > .kit-card:has(> .kit-card__content > .kit-card__body > .kit-icon:first-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--kit-card-pad) + 1.5rem - 1px);
  inset-inline: 3.75rem 0;
  border-top: 2px dashed color-mix(in srgb, var(--kit-accent) 40%, transparent);
  pointer-events: none;
}

/* ------------------------------------------------------------------ Figures */

/* Figures (stats_counter, a plan's price). From 1200 px five statistics stand in a row of about 200 px each: the kit's
   own size (up to 52 px) splits "1500 m²" there, so the figures here stop at about 44 px. */
.kit-stat__value {
  font-size: clamp(2rem, 1.35rem + 1.7vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.kit-stat__suffix {
  color: var(--kit-accent-text);
}

.kit-stat__label {
  font-size: 0.9375rem;
}

/* A price is easy to find: its figures in the page's strong weight and the accent's shade. */
.kit-price__amount {
  color: var(--kit-text);
}

.kit-list--menu .kit-list-item__title {
  font-weight: var(--vital-body-strong, 600);
}

.kit-list--menu .kit-list-item__meta {
  color: var(--kit-accent-text);
  font-weight: var(--vital-body-strong, 600);
}

.kit-list--menu > .kit-list-item + .kit-list-item {
  border-top: 1px solid var(--kit-line);
}

.kit-list--menu > .kit-list-item {
  padding-block: 0.7rem;
}

/* A list of what a plan includes: each line ticked in a soft circle. */
.kit-list--check .kit-list-item__line {
  align-items: flex-start;
}

/* ------------------------------------------------------------------ Questions */

/* Each question is a white card; it opens on a plus in a soft circle that turns into a minus. */
.kit-accordion {
  display: grid;
  gap: 0.75rem;
  border-top: 0;
}

.kit-accordion__item {
  padding-inline: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  border: 1px solid var(--kit-line);
  border-radius: var(--kit-radius);
  background: var(--kit-surface);
  box-shadow: var(--kit-shadow);
  transition: border-color var(--kit-speed) ease;
}

.kit-accordion__item[open] {
  border-color: color-mix(in srgb, var(--kit-accent) 40%, var(--kit-line));
}

.kit-accordion__title {
  padding: 1.05rem 0;
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.15rem);
  font-weight: var(--vital-heading-weight, 700);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.kit-accordion__title:hover {
  color: var(--kit-text);
}

/* The kit's chevron gives way to the plus (svg.lucide is shown by a rule of the kit's with more weight). */
.kit-root .kit-accordion__title svg.kit-accordion__chevron {
  display: none;
}

.kit-accordion__title::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--kit-accent-text), var(--kit-accent-text)) center / 0.75rem 2px no-repeat,
    linear-gradient(var(--kit-accent-text), var(--kit-accent-text)) center / 2px 0.75rem no-repeat,
    var(--kit-soft);
  transition: transform var(--kit-speed) ease;
}

.kit-accordion__item[open] > .kit-accordion__title::after {
  background:
    linear-gradient(var(--kit-accent-text), var(--kit-accent-text)) center / 0.75rem 2px no-repeat,
    var(--kit-soft);
  transform: rotate(180deg);
}

.kit-accordion__body {
  padding: 0 0 1.25rem;
}

/* ------------------------------------------------------------------ Quotes and people */

/* A quotation is upright (the font palettes load no slanted letters, and a browser's own slant is a fake), opened by a
   large quotation mark in the accent's shade. */
.kit-quote {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.kit-quote__text {
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.kit-quote__text::before {
  content: "\201C";
  display: block;
  height: 2.1rem;
  margin-bottom: 0.25rem;
  color: var(--kit-accent-text);
  font-family: var(--font-heading, sans-serif);
  font-size: 4.25rem;
  font-weight: var(--vital-heading-weight, 700);
  line-height: 0.95;
}

.kit-quote__author {
  font-weight: var(--vital-body-strong, 600);
}

.kit-avatar {
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--kit-surface), 0 0 0 4px var(--kit-line);
}

/* ------------------------------------------------------------------ Chips */

.kit-chip {
  padding: 0.2rem 0.75rem;
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------------ Forms */

.kit-field__label {
  font-size: 0.875rem;
  font-weight: var(--vital-body-strong, 600);
}

.kit-input {
  min-height: 3rem;
  border-color: color-mix(in srgb, var(--kit-text) 20%, transparent);
  background: var(--kit-surface);
  transition: border-color var(--kit-speed) ease, box-shadow var(--kit-speed) ease;
}

.kit-input:hover {
  border-color: color-mix(in srgb, var(--kit-text) 36%, transparent);
}

.kit-input:focus {
  border-color: var(--kit-accent-text);
  box-shadow: 0 0 0 4px var(--kit-soft);
}

/* ------------------------------------------------------------------ Pictures and frames */

.kit-carousel__button,
.kit-slideshow__button {
  border-radius: 50%;
}
