
/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1A2744;
  --primary-light: #243556;
  --accent: #B87333;
  --accent-light: #D4945A;
  --bg-light: #F8F7F4;
  --bg-dark: #0F1923;
  --text-dark: #2C2C2C;
  --text-light: #E8E4DF;
  --text-muted: #8A8A8A;
  --border: #E0DDD8;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Remove WP admin bar gap */
html { margin-top: 0 !important; }
#wpadminbar { display: none; }

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Navigation --- */
.kb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 115, 51, 0.2);
  transition: box-shadow 0.3s ease;
}

.kb-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.kb-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.kb-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kb-nav-logo img {
  height: 42px;
  width: auto;
}

.kb-nav-logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.kb-nav-logo-text span {
  display: block;
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.kb-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kb-nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  position: relative;
}

.kb-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.kb-nav-links a:hover,
.kb-nav-links a.active {
  color: var(--accent);
}

.kb-nav-links a:hover::after,
.kb-nav-links a.active::after {
  width: 100%;
}

.kb-lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 1.5rem;
  border: 1px solid rgba(184, 115, 51, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.kb-lang-switch a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.6rem;
  color: var(--text-light);
  transition: all 0.2s ease;
  border-right: 1px solid rgba(184, 115, 51, 0.3);
  cursor: pointer;
}

.kb-lang-switch a:last-child {
  border-right: none;
}

.kb-lang-switch a:hover {
  background: rgba(184, 115, 51, 0.15);
}

.kb-lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

.kb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  background: none;
  border: none;
}

.kb-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
  display: block;
}

.kb-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.kb-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.kb-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.kb-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  overflow: hidden;
  margin-top: 72px;
}

.kb-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 50%, var(--primary) 100%);
}

.kb-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(184, 115, 51, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 115, 51, 0.05) 0%, transparent 50%);
}

.kb-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.kb-hero-logo {
  width: 220px;
  margin: 0 auto 2.5rem;
  filter: brightness(1.1);
}

.kb-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.kb-hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.kb-hero-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.8;
}

.kb-hero-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 2rem auto 0;
}

/* --- Sections --- */
.kb-section {
  padding: 5rem 2rem;
}

.kb-section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.kb-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.kb-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 2rem;
  line-height: 1.25;
}

.kb-section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}

.kb-about-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* Team */
.kb-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.kb-team-member {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.kb-team-member-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.kb-team-member-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.kb-team-member-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Exhibitions */
.kb-exhibitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.kb-exhibition-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.kb-exhibition-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.kb-exhibition-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.kb-exhibition-card-body {
  padding: 1.5rem;
}

.kb-exhibition-card-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.kb-exhibition-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.kb-exhibition-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Press */
.kb-section-dark {
  background: var(--primary);
  color: var(--text-light);
}

.kb-section-dark .kb-section-title {
  color: var(--text-light);
}

.kb-press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.kb-press-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.kb-press-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(184, 115, 51, 0.3);
  transform: translateY(-2px);
}

.kb-press-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kb-press-card-body {
  padding: 1.25rem;
}

.kb-press-card-source {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.kb-press-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.kb-press-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Lightbox */
.kb-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.kb-lightbox-overlay.active {
  display: flex;
}

.kb-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.kb-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.kb-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.kb-lightbox-close:hover { opacity: 1; }

.kb-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  transition: background 0.2s;
}

.kb-lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.kb-lightbox-prev { left: -60px; }
.kb-lightbox-next { right: -60px; }

.kb-lightbox-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Footer */
.kb-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 2rem 1.5rem;
}

.kb-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kb-footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

.kb-footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.kb-footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.kb-footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.kb-footer-contact p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.kb-footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.kb-footer-links a:hover { color: var(--accent); }

.kb-footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kb-footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Gallery Page */
.kb-page-header {
  background: var(--primary);
  padding: 8rem 2rem 3rem;
  text-align: center;
  margin-top: 72px;
}

.kb-page-header .kb-section-title {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.kb-page-header-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.kb-gallery-section { padding: 3rem 2rem 5rem; }

.kb-gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  columns: 3;
  column-gap: 1.25rem;
}

.kb-gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.kb-gallery-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.kb-gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.kb-gallery-item:hover img { transform: scale(1.02); }

.kb-gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kb-gallery-item:hover .kb-gallery-item-overlay { opacity: 1; }
.kb-gallery-item-overlay span { color: #fff; font-size: 0.8rem; font-weight: 500; }

/* Animations */
.kb-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.kb-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.kb-text-center { text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .kb-exhibitions-grid { grid-template-columns: 1fr; }
  .kb-gallery-grid { columns: 2; }
  .kb-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .kb-nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0; bottom: 0;
    background: rgba(26, 39, 68, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  .kb-nav-links.open { display: flex; }
  .kb-nav-links a { font-size: 1.1rem; }
  .kb-lang-switch { margin-left: 0; margin-top: 1rem; }
  .kb-hamburger { display: flex; }
  .kb-hero { min-height: 70vh; }
  .kb-hero-logo { width: 160px; }
  .kb-section { padding: 3.5rem 1.5rem; }
  .kb-gallery-grid { columns: 1; }
  .kb-lightbox-prev { left: 0; }
  .kb-lightbox-next { right: 0; }
  .kb-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
