/* ============================================================================
   tikit.live — Brand system (Sunny palette · Fredoka / DM Sans / DM Mono)
   Implements Tikit Brand Kit v1. Loaded after main.css so it wins.
   ========================================================================== */

:root {
  /* Sunny — core tokens */
  --tk-sunbeam: #FFD84D;
  --tk-gold:    #FFB020;
  --tk-amber:   #EE8F1C;
  --tk-punch:   #F0567A;
  --tk-ink:     #1E1B16;
  --tk-cloud:   #FAF7EF;

  /* supporting neutrals (warm, biased toward the palette) */
  --tk-text:    #4A453D;
  --tk-muted:   #6B6459;
  --tk-faint:   #9A9384;
  --tk-line:    #ECE5D5;
  --tk-surface: #ffffff;

  /* semantic */
  --tk-success: #22B07D;
  --tk-success-ink: #1F8A5B;
  --tk-success-bg:  #E6F6EC;
  --tk-error:   #E8536B;
  --tk-error-ink:   #C43B5E;
  --tk-error-bg:    #FFE1E9;
  --tk-warn-bg:     #FFF3D1;
  --tk-warn-ink:    #B87A12;

  /* fonts */
  --tk-font-display: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --tk-font-text:    'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tk-font-mono:    'DM Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* Remap Elementor's global design tokens → recolors/retypes the whole site */
  --e-global-color-primary:   #1E1B16;
  --e-global-color-secondary: #EE8F1C;
  --e-global-color-text:      #4A453D;
  --e-global-color-accent:    #FFB020;
  --e-global-typography-primary-font-family:   'Fredoka';
  --e-global-typography-primary-font-weight:   600;
  --e-global-typography-secondary-font-family: 'Fredoka';
  --e-global-typography-secondary-font-weight: 500;
  --e-global-typography-text-font-family:      'DM Sans';
  --e-global-typography-text-font-weight:      400;
  --e-global-typography-accent-font-family:    'DM Sans';
  --e-global-typography-accent-font-weight:    500;
}

/* ── Base typography ─────────────────────────────────────────────────────── */

body {
  font-family: var(--tk-font-text);
  color: var(--tk-text);
  background: var(--tk-cloud);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .elementor-heading-title {
  font-family: var(--tk-font-display);
  letter-spacing: -0.02em;
  color: var(--tk-ink);
}

a { color: var(--tk-amber); }
a:hover { color: var(--tk-punch); }

::selection { background: var(--tk-sunbeam); color: var(--tk-ink); }

/* uppercase mono label utility */
.tk-label {
  font-family: var(--tk-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tk-faint);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.button, .btn,
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"] {
  font-family: var(--tk-font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--tk-gold);
  color: var(--tk-ink);
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 6px 16px -6px rgba(238,143,28,0.5);
}
.button:hover, .btn:hover,
.gform_wrapper .gform_footer input[type="submit"]:hover {
  background: var(--tk-amber);
  color: var(--tk-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(238,143,28,0.6);
}
.button:active, .btn:active { transform: translateY(0); }

/* ── The mark + state animations ─────────────────────────────────────────── */

.tk-mark, .tk-state { display: block; }
.tk-state { overflow: visible; }

/* ── Branded full-screen loader (reuses #loading-screen) ─────────────────── */

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;                 /* main.js toggles block/none */
  background: radial-gradient(120% 120% at 50% 38%, #FFFDF6 0%, var(--tk-cloud) 62%);
  /* when shown, center its contents */
  align-items: center;
  justify-content: center;
}
#loading-screen[style*="block"] { display: flex !important; }
.tk-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  filter: drop-shadow(0 20px 34px rgba(238,143,28,0.22));
}
.tk-loading-word {
  font-family: var(--tk-font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--tk-ink);
}
.tk-loading-word span { color: var(--tk-amber); }
/* retire the old spinner if any stray markup remains */
#loader { display: none !important; }

/* ── State blocks (success / error / empty / 404 messages) ───────────────── */

.tk-statecard {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  padding: 8px 0;
}
.tk-statecard .tk-state { margin: 0 auto; }
.tk-statecard .tk-pill {
  display: inline-block;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin: 8px 0 10px;
  background: var(--tk-warn-bg);
  color: var(--tk-warn-ink);
}
.tk-statecard.is-success .tk-pill { background: var(--tk-success-bg); color: var(--tk-success-ink); }
.tk-statecard.is-error .tk-pill   { background: var(--tk-error-bg);   color: var(--tk-error-ink); }
.tk-statecard h2 {
  font-family: var(--tk-font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 4px 0;
}
.tk-statecard p { color: var(--tk-muted); font-size: 15px; margin: 6px 0 0; }

/* ── 404 template ────────────────────────────────────────────────────────── */

.tk-404 {
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: radial-gradient(120% 100% at 50% 30%, #FFFDF6 0%, var(--tk-cloud) 60%);
}
.tk-404 .tk-404-inner { max-width: 520px; }
.tk-404 .tk-state { margin: 0 auto 8px; filter: drop-shadow(0 18px 30px rgba(238,143,28,0.2)); }
.tk-404 h1 {
  font-family: var(--tk-font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.02;
  margin: 10px 0 0;
}
.tk-404 h1 .amber { color: var(--tk-amber); }
.tk-404 p { color: var(--tk-muted); font-size: 18px; margin: 14px 0 26px; line-height: 1.5; }
.tk-404 .tk-home-btn {
  display: inline-block;
  font-family: var(--tk-font-display);
  font-weight: 600;
  background: var(--tk-gold);
  color: var(--tk-ink);
  border-radius: 999px;
  padding: 13px 26px;
  box-shadow: 0 10px 24px -8px rgba(238,143,28,0.55);
}
.tk-404 .tk-home-btn:hover { background: var(--tk-amber); color: var(--tk-ink); }

/* ── Header logo swap → new mark (Elementor Site Logo widget) ─────────────── */

.elementor-widget-theme-site-logo img,
.wp-custom-logo .custom-logo {
  content: url("../img/tikit-mark.svg");
  width: auto !important;
  height: 52px !important;
  max-width: none;
}

/* ── Custom branded homepage (front-page.php) ────────────────────────────── */

.tk-home { font-family: var(--tk-font-text); color: var(--tk-text); }
.tk-home .amber { color: var(--tk-amber); }

.tk-btn {
  display: inline-block;
  font-family: var(--tk-font-display);
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.tk-btn--gold { background: var(--tk-gold); color: var(--tk-ink); box-shadow: 0 10px 24px -8px rgba(238,143,28,0.55); }
.tk-btn--gold:hover { background: var(--tk-amber); color: var(--tk-ink); transform: translateY(-1px); }
.tk-btn--ghost { background: transparent; color: var(--tk-ink); border: 2px solid var(--tk-line); }
.tk-btn--ghost:hover { border-color: var(--tk-amber); color: var(--tk-amber); }

/* hero */
.tk-hero {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 24px clamp(40px, 6vw, 72px);
  background: radial-gradient(120% 110% at 50% 18%, #FFFDF6 0%, var(--tk-cloud) 58%);
}
.tk-hero-mark { display: inline-block; filter: drop-shadow(0 24px 40px rgba(238,143,28,0.28)); }
.tk-hero-mark svg { display: block; margin: 0 auto; }
.tk-hero-title {
  font-family: var(--tk-font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
  color: var(--tk-ink);
}
.tk-hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--tk-muted); max-width: 30ch; margin: 18px auto 0; line-height: 1.5; }
.tk-hero-cta { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* sections */
.tk-section { max-width: 1080px; margin: 0 auto; padding: clamp(44px, 6vw, 72px) 24px; }
.tk-section-head { margin-bottom: 30px; }
.tk-section-head .tk-label { display: block; margin-bottom: 8px; color: var(--tk-amber); }
.tk-section-head h2 { font-family: var(--tk-font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0; }

/* event grid */
.tk-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tk-event-card {
  display: flex; flex-direction: column;
  background: var(--tk-surface); border: 1px solid var(--tk-line);
  border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
  box-shadow: 0 1px 2px rgba(30,27,22,0.04);
}
.tk-event-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(30,27,22,0.28); }
.tk-event-media { aspect-ratio: 3 / 2; background: #F3EEE2; overflow: hidden; }
.tk-event-media .tk-event-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-event-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: .5; }
.tk-event-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tk-event-date { font-family: var(--tk-font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tk-amber); }
.tk-event-title { font-family: var(--tk-font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; margin: 0; color: var(--tk-ink); }
.tk-event-venue { font-size: 14px; color: var(--tk-muted); }
.tk-event-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.tk-event-price { font-family: var(--tk-font-display); font-weight: 600; font-size: 1.05rem; color: var(--tk-ink); }
.tk-event-go { font-family: var(--tk-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tk-amber); }

/* how it works */
.tk-how { }
.tk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.tk-step { background: var(--tk-surface); border: 1px solid var(--tk-line); border-radius: 20px; padding: 26px 24px; }
.tk-step-n { font-family: var(--tk-font-mono); font-weight: 500; font-size: 13px; color: var(--tk-amber); letter-spacing: 0.08em; }
.tk-step h3 { font-family: var(--tk-font-display); font-weight: 600; font-size: 1.3rem; margin: 10px 0 6px; letter-spacing: -0.01em; }
.tk-step p { color: var(--tk-muted); font-size: 15px; margin: 0; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .tk-state animate, .tk-state animateTransform { animation: none; }
  .tk-event-card:hover, .tk-btn:hover { transform: none; }
}
