/* ============================================================
   Hylleholt Health ApS — Brand Design Tokens
   Version 1.0 | May 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  /* ── Color: Primary (Fjord Blue) ───────────────────────── */
  --hh-primary-dark:    #123549;
  --hh-primary:         #1B4E6B;
  --hh-primary-light:   #2A6A90;
  --hh-primary-tint:    #E8F1F7;

  /* ── Color: Accent (Vibrant Blue/Cyan) ─────────────────── */
  --hh-accent-dark:     #007cc0;
  --hh-accent:          #00a8ff;
  --hh-accent-light:    #64c2ff;
  --hh-accent-tint:     #e3f2fd;

  /* ── Color: Supporting (Medical/Ocean Blue) ──────────────── */
  --hh-sage:            #0284C7;
  --hh-sage-light:      #38BDF8;
  --hh-sage-tint:       #E0F2FE;

  /* ── Color: Neutral ─────────────────────────────────────── */
  --hh-bg:              #F6F8FA;
  --hh-surface:         #FFFFFF;
  --hh-border:          #E1E8EF;
  --hh-border-strong:   #C8D5DF;
  --hh-text:            #1A2A38;
  --hh-text-muted:      #5A6E7E;
  --hh-text-subtle:     #8A9EAE;

  /* ── Color: Semantic ─────────────────────────────────────── */
  --hh-error:           #C8372D;
  --hh-warning:         #D4843C;
  --hh-success:         #0284C7;
  --hh-info:            #1B4E6B;

  /* ── Theme variables supporting Light & Dark Mode ───────── */
  --theme-bg:           var(--hh-bg);
  --theme-bg-rgb:       246, 248, 250;
  --theme-surface:      var(--hh-surface);
  --theme-border:       var(--hh-border);
  --theme-border-strong:var(--hh-border-strong);
  --theme-text:         var(--hh-text);
  --theme-text-muted:   var(--hh-text-muted);
  --theme-primary:      var(--hh-primary);
  --theme-primary-tint: var(--hh-primary-tint);
  --theme-accent-tint:  var(--hh-accent-tint);
  --theme-sage-tint:    var(--hh-sage-tint);
  --theme-shadow-sm:    var(--hh-shadow-sm);
  --theme-shadow-md:    var(--hh-shadow-md);
  --theme-shadow-lg:    var(--hh-shadow-lg);
}

body.dark-theme {
  --theme-bg:           #0C141C;
  --theme-bg-rgb:       12, 20, 28;
  --theme-surface:      #121C26;
  --theme-border:       #1E2E3C;
  --theme-border-strong:#2E4050;
  --theme-text:         #ECF2F6;
  --theme-text-muted:   #8A9EAE;
  --theme-primary:      #3385B5;
  --theme-primary-tint: rgba(51, 133, 181, 0.15);
  --theme-accent-tint:  rgba(0, 168, 255, 0.1);
  --theme-sage-tint:    rgba(2, 132, 199, 0.1);
  --theme-shadow-sm:    0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --theme-shadow-md:    0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --theme-shadow-lg:    0 10px 15px -3px rgba(0, 0, 0, 0.7);

  /* ── Typography ──────────────────────────────────────────── */
  --hh-font-display:    'Spectral', Georgia, serif;
  --hh-font-ui:         'Inter', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --hh-text-display-xl: 3.5rem;     /* 56px */
  --hh-text-display-lg: 2.75rem;    /* 44px */
  --hh-text-display-md: 2.25rem;    /* 36px */
  --hh-text-heading-lg: 1.5rem;     /* 24px */
  --hh-text-heading-md: 1.25rem;    /* 20px */
  --hh-text-heading-sm: 1rem;       /* 16px */
  --hh-text-body-lg:    1.125rem;   /* 18px */
  --hh-text-body-md:    1rem;       /* 16px */
  --hh-text-body-sm:    0.875rem;   /* 14px */
  --hh-text-label:      0.75rem;    /* 12px */

  /* Line heights */
  --hh-lh-display:  1.1;
  --hh-lh-heading:  1.3;
  --hh-lh-body:     1.6;
  --hh-lh-label:    1.4;

  /* ── Spacing (4px base) ──────────────────────────────────── */
  --hh-space-1:   0.25rem;   /*  4px */
  --hh-space-2:   0.5rem;    /*  8px */
  --hh-space-3:   0.75rem;   /* 12px */
  --hh-space-4:   1rem;      /* 16px */
  --hh-space-5:   1.25rem;   /* 20px */
  --hh-space-6:   1.5rem;    /* 24px */
  --hh-space-8:   2rem;      /* 32px */
  --hh-space-10:  2.5rem;    /* 40px */
  --hh-space-12:  3rem;      /* 48px */
  --hh-space-16:  4rem;      /* 64px */
  --hh-space-20:  5rem;      /* 80px */
  --hh-space-24:  6rem;      /* 96px */

  /* ── Border Radius ───────────────────────────────────────── */
  --hh-radius-sm:   6px;
  --hh-radius-md:   10px;
  --hh-radius-lg:   16px;
  --hh-radius-xl:   24px;
  --hh-radius-full: 9999px;

  /* ── Shadows (Fjord-tinted) ──────────────────────────────── */
  --hh-shadow-sm: 0 1px 2px 0 rgba(27, 78, 107, 0.06);
  --hh-shadow-md: 0 4px 6px -1px rgba(27, 78, 107, 0.08),
                  0 2px 4px -2px rgba(27, 78, 107, 0.05);
  --hh-shadow-lg: 0 10px 15px -3px rgba(27, 78, 107, 0.10),
                  0 4px 6px -4px rgba(27, 78, 107, 0.06);
  --hh-shadow-xl: 0 20px 25px -5px rgba(27, 78, 107, 0.12),
                  0 8px 10px -6px rgba(27, 78, 107, 0.05);

  /* ── Transition ──────────────────────────────────────────── */
  --hh-transition: 150ms ease;
}

/* ── Base resets for Hylleholt contexts ────────────────────── */
.hh-root {
  font-family: var(--hh-font-ui);
  font-size: var(--hh-text-body-md);
  line-height: var(--hh-lh-body);
  color: var(--hh-text);
  background-color: var(--hh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Display / Heading utilities ────────────────────────────── */
.hh-display-xl {
  font-family: var(--hh-font-display);
  font-size: var(--hh-text-display-xl);
  line-height: var(--hh-lh-display);
  letter-spacing: -0.02em;
}
.hh-display-lg {
  font-family: var(--hh-font-display);
  font-size: var(--hh-text-display-lg);
  line-height: var(--hh-lh-display);
  letter-spacing: -0.02em;
}
.hh-display-md {
  font-family: var(--hh-font-display);
  font-size: var(--hh-text-display-md);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.hh-heading-lg {
  font-family: var(--hh-font-ui);
  font-size: var(--hh-text-heading-lg);
  font-weight: 700;
  line-height: var(--hh-lh-heading);
}
.hh-heading-md {
  font-family: var(--hh-font-ui);
  font-size: var(--hh-text-heading-md);
  font-weight: 600;
  line-height: var(--hh-lh-heading);
}
.hh-heading-sm {
  font-family: var(--hh-font-ui);
  font-size: var(--hh-text-heading-sm);
  font-weight: 600;
  line-height: var(--hh-lh-heading);
}
.hh-body-lg {
  font-size: var(--hh-text-body-lg);
  line-height: var(--hh-lh-body);
}
.hh-body-sm {
  font-size: var(--hh-text-body-sm);
  line-height: var(--hh-lh-body);
}
.hh-label {
  font-size: var(--hh-text-label);
  font-weight: 500;
  line-height: var(--hh-lh-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────────────────── */
.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hh-space-2);
  height: 40px;
  padding: 0 var(--hh-space-5);
  font-family: var(--hh-font-ui);
  font-size: var(--hh-text-body-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 0;
  border: 1.5px solid #1A2A38;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--hh-transition),
              box-shadow var(--hh-transition),
              border-color var(--hh-transition);
  white-space: nowrap;
}
.hh-btn:focus-visible {
  outline: 2px solid var(--hh-primary);
  outline-offset: 2px;
}
.hh-btn-sm { height: 36px; padding: 0 var(--hh-space-4); }
.hh-btn-lg { height: 48px; padding: 0 var(--hh-space-6); font-size: var(--hh-text-body-md); }

.hh-btn-primary {
  background: var(--hh-primary);
  color: #fff;
}
.hh-btn-primary:hover { background: var(--hh-primary-light); }
.hh-btn-primary:active { background: var(--hh-primary-dark); }

.hh-btn-accent {
  background: var(--hh-accent);
  color: #fff;
}
.hh-btn-accent:hover { background: var(--hh-accent-light); }
.hh-btn-accent:active { background: var(--hh-accent-dark); }

.hh-btn-outline {
  background: transparent;
  color: var(--hh-primary);
  border: 1.5px solid var(--hh-primary);
}
.hh-btn-outline:hover { background: var(--hh-primary-tint); }

.hh-btn-ghost {
  background: transparent;
  color: var(--hh-primary);
}
.hh-btn-ghost:hover { background: var(--hh-primary-tint); }

.hh-btn-secondary {
  background: var(--hh-sage-tint);
  color: var(--hh-sage);
}
.hh-btn-secondary:hover { background: var(--hh-primary-tint); }

.hh-btn-danger {
  background: var(--hh-error);
  color: #fff;
}
.hh-btn-danger:hover { background: #A52E25; }

/* ── Card ───────────────────────────────────────────────────── */
.hh-card {
  background: var(--hh-surface);
  border: 2px solid #1A2A38;
  border-radius: 0;
  padding: var(--hh-space-6);
  box-shadow: var(--hh-shadow-sm);
}
.hh-card-interactive {
  cursor: pointer;
  transition: box-shadow var(--hh-transition), border-color var(--hh-transition);
}
.hh-card-interactive:hover {
  box-shadow: var(--hh-shadow-md);
  border-color: var(--hh-border-strong);
}

/* ── Badge / Tag ────────────────────────────────────────────── */
.hh-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--hh-space-2);
  font-size: var(--hh-text-label);
  font-weight: 500;
  border-radius: 0;
  border: 1px solid #1A2A38;
}
.hh-badge-primary { background: var(--hh-primary-tint); color: var(--hh-primary); }
.hh-badge-accent  { background: var(--hh-accent-tint);  color: var(--hh-accent-dark); }
.hh-badge-sage    { background: var(--hh-sage-tint);    color: var(--hh-sage); }
.hh-badge-neutral { background: var(--hh-border);       color: var(--hh-text-muted); }

/* ── Divider ────────────────────────────────────────────────── */
.hh-divider {
  border: none;
  border-top: 1px solid var(--hh-border);
  margin: var(--hh-space-6) 0;
}

/* ── Accent bar (pitch deck / section marker) ───────────────── */
.hh-accent-bar {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--hh-accent);
  border-radius: var(--hh-radius-full);
  margin-bottom: var(--hh-space-4);
}
