/* KodonKlasses marketing site theme (marketing pages only). */

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

html {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

code, pre, .mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent-hover); }

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Themes */
:root,
[data-theme="light"] {
  --bg: #F5EFE3;
  --surface: #FFFBF3;
  --surface-2: #EDE3D2;
  --border: #E0D2BC;
  --text: #1C1420;
  --text-muted: #6E5E68;
  --accent: #E0A340;
  --accent-hover: #C28828;
  --accent-glow: #F5C977;
  --accent-ink: #1C1420;
  --navy: #0B1120;
  --navy-hover: #1A2540;
}

[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #121A2E;
  --surface-2: #1A2540;
  --border: #26314F;
  --text: #ECEFF6;
  --text-muted: #8A97B4;
  --accent: #E0A340;
  --accent-hover: #F2BC5C;
  --accent-glow: #FFD27A;
  --accent-ink: #0B1120;
  --navy: #ECEFF6;
  --navy-hover: #8A97B4;
}

/* Layout */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 96px;   /* taller — 80px logo */
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 80px;   /* your requested size */
  width: auto;
}

html[data-theme="light"] .brand-img-dark { display: none; }
html[data-theme="dark"] .brand-img-light { display: none; }

/* Audience Switch */
.audience-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin: 0 auto;
}

.audience-btn {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.audience-btn:hover { color: var(--text); }

.audience-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--text); }

.site-nav .nav-login { color: var(--text); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Footer */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand .brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-links h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text); font-size: 0.9rem; }

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

.btn {
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

/* Gold: dark text on gold — always */
.btn-gold {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}

.btn-gold:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent-glow) 40%, transparent);
  color: var(--accent-ink);
}

/* Small gold for the header (compact) */
.btn-gold-sm {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-gold-sm:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

/* Navy: white text on navy (inverts to light-text-on-dark-mode) */
.btn-navy {
  background: var(--navy);
  color: #FFFFFF;
  border: 1px solid var(--navy);
}

[data-theme="dark"] .btn-navy {
  color: #0B1120;
}

.btn-navy:hover {
  background: var(--navy-hover);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-navy:hover {
  color: #0B1120;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 12px; }
  .brand { margin-right: auto; }
  .brand img { height: 56px; }
  .audience-switch { order: 3; margin: 8px auto 0; }
  .site-nav { margin-left: 0; }
}