/* ==========================================================================
   PUHU — "Stitch" theme (default)
   Colours, type and shapes from the Stitch design system "Intellectual Synergy"
   (DESIGN.md). Loaded after style.css; only overrides tokens and static styles,
   animations are left untouched.

   Primary   #0F172A  slate-navy   — headers, primary actions, dark sections
   Secondary #0284C7  azure        — links, interactive states, highlights
   Tertiary  #0D9488  teal         — human sciences, research classifications
   Neutral   #64748B  slate        — meta labels, secondary icons
   Surface   #F8FAFC  ivory canvas · #FFFFFF cards · #E2E8F0 / #CBD5E1 borders
   Accent    #F47920  legacy PUHU orange — selective focal accents only

   Other themes: PUHU_THEME=kurumsal | klasik python3 build.py
   ========================================================================== */

:root {
  --ink: #0F172A;
  --ink-2: #1E293B;
  --ink-3: #334155;
  --paper: #F8FAFC;
  --paper-2: #FFFFFF;
  --sand: #F1F5F9;
  --sand-2: #E2E8F0;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --line-light: rgba(255, 255, 255, .12);
  --text: #0F172A;
  --muted: #475569;
  --neutral: #64748B;
  --muted-light: #CBD5E1;
  --accent: #0284C7;
  --accent-ink: #006398;
  --amber: #5BB8FE;        /* highlights on dark surfaces (secondary-container) */
  --warm: #F47920;         /* accent-warm */
  --serif: var(--sans);    /* no serif in this theme: any leftover serif rule falls back to Plus Jakarta Sans */
  --teal: #0D9488;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --fs-hero: clamp(2.5rem, 1.3rem + 5vw, 5.8rem);
  --fs-3xl: clamp(2.25rem, 1.4rem + 3.4vw, 4.4rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);

  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, .04), 0 1px 2px -1px rgba(15, 23, 42, .04);
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, .06), 0 8px 10px -6px rgba(15, 23, 42, .03);
  --shadow-lg: 0 24px 50px -16px rgba(15, 23, 42, .18);
}

/* ---------- Typography: Plus Jakarta Sans at every level ---------- */
.h-display, .h-1, .h-2, .hero-title, .page-hero h1, .statement, .service-card h3, .project-card h3,
.news-card h3, .member h3, .step h3, .feature h3, .program-col h3, .program-col h4, .office h3,
.modal-body h2, .notfound .big, .sd-group h3, .marquee-item, .mvv-card p, .prose p.big,
.stat .num, .footer-word, .service-card .s-num, .numbered li::before {
  font-family: var(--sans);
}
.hero-title, .h-display, .page-hero h1 { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.h-1, .h-2, .service-card h3, .program-col h3, .program-col h4, .office h3, .modal-body h2 { font-weight: 700; letter-spacing: -.02em; }
.statement { font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.step h3, .feature h3, .member h3, .news-card h3, .project-card h3, .sd-group h3 { font-weight: 600; letter-spacing: -.01em; }
.prose p.big { font-weight: 600; letter-spacing: -.015em; }
.mvv-card p { font-weight: 600; font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.35; }
.marquee-item { font-weight: 600; letter-spacing: -.02em; }
.marquee-item:nth-child(even) { font-style: normal; color: var(--accent); }
.marquee-item::after { color: var(--warm); }
.stat .num { font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.footer-word { font-weight: 800; letter-spacing: -.06em; }
.service-card .s-num, .numbered li::before { font-style: normal; font-weight: 600; letter-spacing: .04em; font-size: .9rem; }
.program-col h4 { font-size: 1.5rem; }

/* Highlighted words: same family, secondary colour instead of serif italic */
em, .italic, .statement em,
.h-display em, .h-1 em, .h-2 em, .page-hero h1 em, .statement .hl, .notfound .big em,
.cta-band h2 em, .community h2 em, .hero-title .rotator span { font-style: normal; font-weight: inherit; }
.h-display em, .h-1 em, .page-hero h1 em, .statement .hl, .statement em { color: var(--accent); }
.section--dark .h-display em, .section--dark .h-1 em, .page-hero--dark h1 em, .page-hero--image h1 em,
.cta-band h2 em, .notfound .big em { color: var(--amber); }
.hero-title .rotator span { color: var(--warm); font-weight: 700; }
.community h2 em { color: var(--ink); }

/* Labels / eyebrows: semibold with positive tracking */
.eyebrow { font-weight: 600; letter-spacing: .06em; font-size: .75rem; }
.eyebrow::before { height: 2px; width: 20px; }

/* ---------- Shapes ---------- */
.btn { border-radius: 6px; font-weight: 600; }
.rail-btn, .modal-close, .to-top, .menu-toggle { border-radius: 8px; }
.service-card, .community, .cta-band, .program-col, .office, .form-card, .info-card, .media-frame { border-radius: var(--radius-lg); }
.service-card .s-icon, .feature .f-icon, .tab .tab-icon, .offer-card .o-icon, .pillar .p-icon, .dd-icon, .info-card li .icon { border-radius: 8px; }
.input, .select, .textarea { border-radius: 6px; border-width: 1px; border-color: var(--line-strong); background: var(--paper-2); }
.input::placeholder, .textarea::placeholder { color: #94A3B8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(2, 132, 199, .15); }
.consent input, .option input { accent-color: var(--ink); }

/* ---------- Buttons (per DESIGN.md) ---------- */
.btn--accent { --btn-bg: var(--accent-ink); }  /* #006398: white text 6.3:1 (AA) */
.btn--accent::before { background: var(--ink); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Cards: white on ivory, hairline borders, hover border shift ---------- */
.project-card, .news-card, .feature, .pillar, .fund, .training-card, .offer-card, .tab, .filter-panel { border-color: var(--line); }
.project-card:hover, .news-card:hover, .feature:hover, .pillar:hover, .fund:hover, .training-card:hover { border-color: var(--line-strong); }
.service-card { border-color: var(--line); }

/* ---------- Chips: pill micro-badges, tinted synergy badges ---------- */
.chip { background: var(--sand); }
.chip--light { background: rgba(255, 255, 255, .16); color: var(--white); }
.chip--accent { background: rgba(2, 132, 199, .1); color: var(--accent-ink); }
.disciplines li { border-color: var(--line); }
.adv-tags li { background: rgba(13, 148, 136, .1); color: #0F766E; }
.tc-cat, .chip--eu { letter-spacing: .02em; }
.mock-badge { border-color: var(--warm); background: rgba(244, 121, 32, .08); color: #C2410C; }

/* Training categories */
.training-card { --cat: var(--accent-ink); }
.training-card.cat-growth { --cat: #0F766E; }
.training-card.cat-entre { --cat: #C2410C; }
.training-card.cat-research { --cat: var(--ink-3); }

/* ---------- Focal warm accents (selective) ---------- */
.hero-eyebrow .dot, .owl-art .owl-eye { background: var(--warm); fill: var(--warm); }
.stat .num sup { color: var(--warm); }
.stat { border-color: var(--line-light); }
::selection { background: var(--accent); color: var(--white); }

/* ---------- Surfaces ---------- */
.site-header::before { background: rgba(248, 250, 252, .82); border-bottom-color: var(--line); }
.subnav { background: rgba(248, 250, 252, .9); }
.page-hero::after { background: radial-gradient(closest-side, rgba(2, 132, 199, .14), rgba(2, 132, 199, 0)); }
.hero::before {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .6) 0%, rgba(15, 23, 42, .32) 30%, rgba(15, 23, 42, .72) 55%, rgba(15, 23, 42, .95) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, .72) 0%, rgba(15, 23, 42, .15) 70%);
}
.community { background: var(--accent-ink); }
.community::before { background: radial-gradient(circle at 0% 100%, var(--teal), transparent 55%); opacity: .3; }
.community h2 em { color: #CCE5FF; }  /* secondary-fixed: 5:1 on #006398 */
.cta-band::before {
  background:
    radial-gradient(circle at 100% 0%, rgba(2, 132, 199, .4), transparent 45%),
    radial-gradient(circle at 0% 120%, rgba(13, 148, 136, .35), transparent 50%);
}
.modal::backdrop { background: rgba(15, 23, 42, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tab[aria-selected="true"] .tab-icon { background: var(--accent); }
.tc-top { background: color-mix(in srgb, var(--cat) 7%, var(--paper-2)); }

/* Mobile menu: same family as the rest of the theme */
.mobile-nav > ul > li > a, .mobile-nav summary { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; }
