/* ==========================================================================
   Ingrid Dedková – brand layer on top of ACSS v4
   Enqueued by mu-plugins/ingriddedkova-brand.php (priority 20, after ACSS).
   Palette roles are set in the ACSS dashboard (see README). This file only
   adds what the dashboard does not cover.
   Source of rules: REiCO Guidelines for partners v1.0 (2026).
   ========================================================================== */

/* --- REiCO secondary colours (species) -----------------------------------
   Guideline p. 7: only to distinguish product categories, never as font
   colour. Text on them stays var(--primary). Not ACSS roles. */
:root {
  --brand-dog: #6e8c82;          /* Dog   – Algae text only 3.1:1, use for illustrations */
  --brand-dog-light: #c5d1cd;
  --brand-cat: #6d94a3;          /* Cat   – Algae text only 3.46:1, use for illustrations */
  --brand-cat-light: #c5d4da;
  --brand-horse: #c3c9a1;        /* Horse */
  --brand-horse-light: #e7e9d9;
  --brand-human: #efcdaa;        /* Human */
  --brand-human-light: #f7e6d5;

  --brand-nav-letter-spacing: 0.0625em; /* Reico nav: 1px @ 16px */
  --brand-focus-ring: 0 0 0 3px var(--secondary);
}

/* Main navigation (.site-nav__link) uses the ACSS link settings on purpose:
   Algae, regular weight, Crystal Red 2px underline. Radko preferred it over
   the uppercase Reico pattern (9. 10. 2026), and it matches the Etch builder,
   which does not load this file. */

/* --- Eyebrow above headings ("O mne", "Blog") ---------------------------- */
.eyebrow {
  font-size: var(--text-s);
  font-weight: 700;
  color: var(--primary);
  margin-block-end: var(--space-xs);
}

/* Guideline p. 8–9: Chlorophyll Dark (--accent) only as a highlight on Algae. */
:is(.bg--primary, .bg--dark, .bg--ultra-dark) .eyebrow,
:is(.bg--primary, .bg--dark, .bg--ultra-dark) .text-highlight {
  color: var(--accent);
}

/* Heading + regular subline pattern (guideline p. 3, 9). */
.heading-pair__sub {
  display: block;
  font-weight: 400;
}

/* --- Callout (guideline p. 11) -------------------------------------------
   Circular, Crystal Red, Algae text, centred. Max ONE callout per section.
   The "Mineralisches Gleichgewicht" callout is a fixed asset, use the file
   from REiCO as an <img>, never rebuild it with this component. */
.callout-badge {
  --callout-size: clamp(8rem, 12vw, 11rem);
  inline-size: var(--callout-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--space-m);
  font-size: var(--text-s);
  line-height: 1.25;
}

.callout-badge strong {
  display: block;
  font-weight: 700;
}

/* --- Partner signet (guideline p. 19–20) ---------------------------------
   Min height 50px, clear zone 1/3 of height, flush to left/right edge,
   no border. Use only the files supplied by REiCO. */
.partner-signet {
  --signet-height: 56px;
  block-size: var(--signet-height);
  inline-size: auto;
  margin: calc(var(--signet-height) / 3);
  margin-inline-end: 0;
  border: 0;
}

/* --- Body links: coral fails contrast on white (2.08), so links stay dark
   olive and use coral only as the underline accent. Colour comes from ACSS
   (link-color / bg-*-link), so links on bg--dark stay white. -------------- */
.auto-spacing a:not([class]),
p a:not([class]) {
  text-decoration-line: underline;
  text-decoration-color: var(--secondary);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

p a:not([class]):hover {
  text-decoration-color: var(--primary);
}

/* --- Category tile (pes / mačka / kôň / človek) -------------------------- */
.species-card {
  --species-bg: var(--brand-dog-light);
  --species-accent: var(--brand-dog);
  background: var(--species-bg);
  color: var(--primary);
}

.species-card__media {
  background: var(--species-accent);
}

.species-card--cat   { --species-bg: var(--brand-cat-light);   --species-accent: var(--brand-cat); }
.species-card--horse { --species-bg: var(--brand-horse-light); --species-accent: var(--brand-horse); }
.species-card--human { --species-bg: var(--brand-human-light); --species-accent: var(--brand-human); }

/* --- Line-art illustrations (guideline p. 10) ---------------------------
   SVGs use stroke="currentColor". Insert them inline (Etch SVG element),
   then colour via CSS: Algae on light surfaces, white on Algae/Dog/Cat. */
.illustration {
  color: var(--primary);
  display: block;
  inline-size: 100%;
  block-size: auto;
}

:is(.bg--primary, .bg--dark, .bg--ultra-dark) .illustration,
.species-card__media .illustration {
  color: #fff; /* dog (default) + cat */
}

.species-card--horse .species-card__media .illustration,
.species-card--human .species-card__media .illustration {
  color: var(--primary);
}

/* --- Keyboard focus visible on every background ------------------------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: var(--brand-focus-ring);
}

:is(.bg--primary, .bg--dark, .bg--ultra-dark) :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline-color: #fff;
}
