/* =============================================================
   Grünhorn Design System — v1.0 (Rebranding 08/2025)
   Drop this file + the fonts/ folder into any project.
   fonts/ must sit in the same directory as this file.
   ============================================================= */

@font-face {
  font-family: "Attila Sans Classic";
  src: url('fonts/AttilaSansClassic-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  /* preloaded in templates/base.html.twig → font-display: optional (no swap flicker) */
  font-family: "Attila Sans Classic";
  src: url('fonts/AttilaSansClassic-Semibold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: optional;
}
@font-face {
  font-family: "Stabil Grotesk";
  src: url('fonts/StabilGrotesk-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  /* preloaded in templates/base.html.twig → font-display: optional */
  font-family: "Stabil Grotesk";
  src: url('fonts/StabilGrotesk-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: optional;
}
@font-face {
  /* preloaded in templates/base.html.twig → font-display: optional */
  font-family: "Stabil Grotesk";
  src: url('fonts/StabilGrotesk-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: optional;
}

:root {
  /* Brand Colors */
  --gh-kush:        #122824;
  --gh-matt-olive:  #21403B;
  --gh-creme-smoke: #F5F5F5;
  --gh-white:       #FFFFFF;
  --gh-pop:         #C893DE;
  --gh-redwood:     #B45B24;

  /* UI / Semantic Colors */
  --gh-success:     #75CE9A;
  --gh-success-ink: #36975D;
  --gh-warning:     #F79E1B;
  --gh-danger:      #EB001B;
  --gh-grey-hover:  #ECECEC;
  --gh-grey-border: #D6D6D6;
  --gh-grey-text:   #6A6A6A;
  --gh-grey-muted:  #A5A0A0;
  --gh-grey-quiet:  #F1F1F1;

  /* Semantic Aliases */
  --gh-bg:           var(--gh-white);
  --gh-bg-card:      var(--gh-white);
  --gh-bg-input:     var(--gh-creme-smoke);
  --gh-border:       var(--gh-grey-border);
  --gh-text:         var(--gh-kush);
  --gh-text-muted:   var(--gh-grey-text);
  --gh-accent:       var(--gh-kush);
  --gh-accent-hover: var(--gh-matt-olive);

  /* Typography */
  --gh-font-display: "Attila Sans Classic", ui-serif, Georgia, serif;
  --gh-font-ui:      "Stabil Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --gh-font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing (4pt grid) */
  --gh-s1: 4px;  --gh-s2: 8px;   --gh-s3: 12px;
  --gh-s4: 16px; --gh-s5: 20px;  --gh-s6: 24px;
  --gh-s8: 32px; --gh-s10: 40px; --gh-s12: 48px;

  /* Radii */
  --gh-radius-xs:   4px;
  --gh-radius-sm:   6px;   /* internal tool default */
  --gh-radius-md:   12px;
  --gh-radius-lg:   24px;
  --gh-radius-pill: 54px;  /* marketing CTAs */

  /* Shadows */
  --gh-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --gh-shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --gh-shadow-md: 0 8px 20px rgba(0,0,0,0.07);

  /* Focus ring */
  --gh-focus-ring: 0 0 0 3px rgba(200,147,222,0.40);

  /* Motion */
  --gh-ease: cubic-bezier(0.2, 0, 0, 1);
  --gh-dur-fast: 120ms;
  --gh-dur-base: 200ms;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ── Base ────────────────────────────────────────────────── */
.gh-body {
  font-family: var(--gh-font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gh-text);
  background: var(--gh-bg);
}

/* ── Buttons ─────────────────────────────────────────────── */
.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border: 1px solid var(--gh-grey-border);
  border-radius: 999px;
  background: var(--gh-creme-smoke);
  color: var(--gh-kush);
  font-family: var(--gh-font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--gh-dur-fast) var(--gh-ease),
              border-color var(--gh-dur-fast) var(--gh-ease);
  white-space: nowrap;
  text-decoration: none;
}
.gh-btn:hover { border-color: var(--gh-kush); background: var(--gh-grey-hover); }
.gh-btn:focus-visible { outline: none; box-shadow: var(--gh-focus-ring); }
.gh-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.gh-btn--primary { background: var(--gh-kush); border-color: var(--gh-kush); color: #fff; }
.gh-btn--primary:hover { background: var(--gh-matt-olive); border-color: var(--gh-matt-olive); }

.gh-btn--success { background: var(--gh-success-ink); border-color: var(--gh-success-ink); color: #fff; }
.gh-btn--danger  { background: var(--gh-danger);      border-color: var(--gh-danger);      color: #fff; }

/* CTA with arrow puck (marketing pages) */
.gh-btn--cta {
  background: var(--gh-kush);
  color: #fff;
  padding: 2px 2px 2px 22px;
  border: none;
  border-radius: var(--gh-radius-pill);
  height: 40px;
  font-size: 15px;
  gap: 12px;
}
.gh-btn--cta .gh-btn__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gh-redwood);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ── Cards ───────────────────────────────────────────────── */
.gh-card {
  background: var(--gh-white);
  border: 1px solid var(--gh-grey-border);
  border-radius: var(--gh-radius-sm);
  padding: 20px;
  box-shadow: var(--gh-shadow-xs);
}
.gh-card--md { border-radius: var(--gh-radius-md); }

/* ── Badges ──────────────────────────────────────────────── */
.gh-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--gh-radius-xs);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gh-badge--passed  { background: rgba(54,151,93,0.12); color: #36975D; }
.gh-badge--failed  { background: rgba(235,0,27,0.10);  color: #EB001B; }
.gh-badge--warning { background: rgba(247,158,27,0.14); color: #9B6200; }
.gh-badge--neutral { background: var(--gh-grey-hover); color: var(--gh-grey-text); }
.gh-badge--info    { background: rgba(25,50,200,0.10); color: #1932C8; }

/* ── Form controls ───────────────────────────────────────── */
.gh-input,
.gh-select,
.gh-textarea {
  padding: 7px 12px;
  background: var(--gh-creme-smoke);
  border: 1px solid var(--gh-grey-border);
  border-radius: var(--gh-radius-sm);
  color: var(--gh-kush);
  font-family: var(--gh-font-ui);
  font-size: 13px;
  transition: border-color var(--gh-dur-fast) var(--gh-ease);
}
.gh-input:focus, .gh-select:focus, .gh-textarea:focus {
  outline: none;
  border-color: var(--gh-kush);
  box-shadow: var(--gh-focus-ring);
}
.gh-input::placeholder { color: var(--gh-grey-muted); }

/* ── Header (dark Kush) ──────────────────────────────────── */
.gh-header { background: var(--gh-kush); padding: 0 24px; }
.gh-header__inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; height: 56px; gap: 32px;
}
.gh-header__logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--gh-creme-smoke);
  font-family: var(--gh-font-display);
  font-size: 17px; font-weight: 600;
  text-decoration: none;
}
.gh-header__logo img { height: 28px; width: auto; }
.gh-nav-link { color: rgba(245,245,245,0.65); border-radius: 6px; padding: 6px 14px; text-decoration: none; font-size: 13px; font-weight: 500; }
.gh-nav-link:hover  { color: var(--gh-creme-smoke); background: rgba(255,255,255,0.08); }
.gh-nav-link.active { color: #fff; background: rgba(255,255,255,0.14); }

/* ── Typography helpers ──────────────────────────────────── */
.gh-display { font-family: var(--gh-font-display); font-weight: 600; }
.gh-text-muted { color: var(--gh-grey-text); }
.gh-mono { font-family: var(--gh-font-mono); }
