/* Zenvorin Board Wire — style.css */
/* Design: Lovable-inspired warm editorial system */

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

:root {
  --cream: #f7f4ed;
  --charcoal: #1c1c1c;
  --off-white: #fcfbf8;
  --muted: #5f5f5d;
  --border: #eceae4;
  --border-interactive: rgba(28,28,28,0.4);
  --charcoal-82: rgba(28,28,28,0.82);
  --charcoal-40: rgba(28,28,28,0.4);
  --charcoal-4: rgba(28,28,28,0.04);
  --charcoal-3: rgba(28,28,28,0.03);
  --radius-micro: 4px;
  --radius-std: 6px;
  --radius-card: 12px;
  --radius-container: 16px;
  --radius-pill: 9999px;
}

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--charcoal); text-decoration: underline; }
a:hover { color: var(--charcoal); opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo:hover { opacity: 1; }
.brand-logo svg { width: 32px; height: 32px; }

.brand-name { font-size: 15px; font-weight: 600; color: var(--charcoal); line-height: 1.2; }
.brand-name span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-std);
}
.site-nav a:hover { background: var(--charcoal-4); opacity: 1; }

.burger-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: var(--radius-std); }
.burger-btn span { display: block; width: 20px; height: 2px; background: var(--charcoal); margin: 4px 0; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 16px 24px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; font-size: 15px; color: var(--charcoal); text-decoration: none; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }

/* ========== LAYOUT ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 32px; }

section { padding: 80px 0; }

/* ========== HERO ========== */
.hero { padding: 96px 0 80px; background: var(--cream); }

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--charcoal);
  max-width: 680px;
  margin-bottom: 18px;
}

.hero-desc { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.hero-img-wrap {
  margin-top: 56px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-img-wrap img { width: 100%; max-height: 400px; object-fit: cover; }

/* ========== BUTTONS ========== */
.btn-dark {
  display: inline-block;
  background: var(--charcoal);
  color: var(--off-white);
  font-size: 15px;
  font-weight: 400;
  padding: 9px 18px;
  border-radius: var(--radius-std);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: rgba(255,255,255,0.2) 0px 0.5px 0px 0px inset, rgba(0,0,0,0.2) 0px 0px 0px 0.5px inset, rgba(0,0,0,0.05) 0px 1px 2px 0px;
  transition: opacity 0.15s;
}
.btn-dark:hover { opacity: 0.85; text-decoration: none; color: var(--off-white); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 400;
  padding: 9px 18px;
  border-radius: var(--radius-std);
  border: 1px solid var(--charcoal-40);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-ghost:hover { opacity: 0.7; text-decoration: none; color: var(--charcoal); }

/* ========== SECTION LABELS ========== */
.section-tag { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 3.5vw, 48px); font-weight: 600; line-height: 1.05; letter-spacing: -0.8px; color: var(--charcoal); margin-bottom: 14px; }
.section-desc { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 560px; }

/* ========== CARDS ========== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  background: var(--cream);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-img { aspect-ratio: 16/9; background: rgba(28,28,28,0.04); overflow: hidden; border-bottom: 1px solid var(--border); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 18px; }
.card-tag { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 7px; text-decoration: none; }
.card-title { font-size: 16px; font-weight: 600; color: var(--charcoal); line-height: 1.3; margin-bottom: 8px; }
.card-excerpt { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }
.card-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.card-link { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-top: 10px; display: inline-block; text-decoration: underline; }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { border-radius: var(--radius-card); border: 1px solid var(--border); overflow: hidden; }
.gallery-item img { width: 100%; height: 185px; object-fit: cover; }
.gallery-caption { font-size: 12px; color: var(--muted); padding: 8px 10px; background: var(--cream); }

/* ========== ARTICLE ========== */
.article-header { padding: 56px 0 32px; border-bottom: 1px solid var(--border); }
.article-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px 10px; margin-bottom: 14px; text-decoration: none; }

.article-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.article-summary { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 680px; margin-bottom: 18px; }
.article-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px; }
.article-meta strong { color: var(--charcoal); }
.reading-time { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: rgba(28,28,28,0.06); border-radius: var(--radius-pill); padding: 3px 10px; color: var(--muted); }

.article-body { padding: 40px 0; }
.article-body h2 { font-size: 24px; font-weight: 600; color: var(--charcoal); margin: 40px 0 12px; letter-spacing: -0.3px; }
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--charcoal); margin: 28px 0 10px; }
.article-body p { font-size: 16px; line-height: 1.75; color: var(--charcoal-82); margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { font-size: 16px; line-height: 1.7; color: var(--charcoal-82); margin-bottom: 5px; }

.article-img { border-radius: var(--radius-card); border: 1px solid var(--border); overflow: hidden; margin: 24px 0; }
.article-img img { width: 100%; object-fit: cover; }
.article-img figcaption { font-size: 13px; color: var(--muted); padding: 8px 0 0; }

.toc {
  background: rgba(28,28,28,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 24px 0;
}
.toc h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 10px; }
.toc ol { padding-left: 18px; }
.toc li { font-size: 14px; margin-bottom: 5px; }
.toc a { color: var(--charcoal); text-decoration: underline; }

.key-context {
  background: rgba(28,28,28,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin: 24px 0;
}
.key-context h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 10px; }
.key-context p { font-size: 15px; line-height: 1.65; color: var(--charcoal); margin-bottom: 8px; }
.key-context p:last-child { margin-bottom: 0; }

.not-cover {
  background: rgba(28,28,28,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin: 24px 0;
}
.not-cover h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 10px; }
.not-cover ul { padding-left: 18px; }
.not-cover li { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 4px; }

/* ========== BREADCRUMB ========== */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--charcoal); }
.breadcrumb span { margin: 0 6px; }

/* ========== RELATED ========== */
.related { padding: 48px 0; border-top: 1px solid var(--border); margin-top: 16px; }
.related h3 { font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 22px; letter-spacing: -0.3px; }

/* ========== STATIC PAGES ========== */
.static-page { padding: 56px 0 80px; }
.static-page h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 600; color: var(--charcoal); margin-bottom: 12px; line-height: 1.05; letter-spacing: -0.8px; }
.static-page .page-lead { font-size: 17px; line-height: 1.65; color: var(--muted); margin-bottom: 40px; max-width: 620px; }
.static-page h2 { font-size: 22px; font-weight: 600; color: var(--charcoal); margin: 36px 0 10px; letter-spacing: -0.2px; }
.static-page h3 { font-size: 17px; font-weight: 600; color: var(--charcoal); margin: 24px 0 8px; }
.static-page p { font-size: 16px; line-height: 1.75; color: var(--charcoal-82); margin-bottom: 16px; }
.static-page ul { padding-left: 20px; margin-bottom: 16px; }
.static-page li { font-size: 16px; line-height: 1.7; color: var(--charcoal-82); margin-bottom: 5px; }

/* ========== CONTACT FORM ========== */
.contact-form-wrap {
  max-width: 520px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-container);
  padding: 32px;
  margin-top: 28px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-std);
  padding: 9px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus { border-color: var(--charcoal-40); box-shadow: rgba(0,0,0,0.1) 0px 4px 12px; }
.form-confirm { display: none; padding: 14px 18px; background: rgba(28,28,28,0.04); border: 1px solid var(--border); border-radius: var(--radius-std); font-size: 14px; color: var(--charcoal); margin-top: 14px; }
#cf-error { display: none; color: #7a1a00; font-size: 13px; margin-bottom: 10px; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo { font-size: 15px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 260px; }
.footer-links h4 { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 13px; color: var(--charcoal); text-decoration: none; margin-bottom: 8px; opacity: 0.7; }
.footer-links a:hover { opacity: 1; }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 20px 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--charcoal); }

/* ========== COOKIE BANNER ========== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--charcoal);
  color: rgba(252,251,248,0.85);
  padding: 14px 32px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
#cookie-banner p { flex: 1; min-width: 220px; line-height: 1.5; }
#cookie-banner a { color: rgba(252,251,248,0.75); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-btn {
  font-size: 13px;
  font-weight: 400;
  padding: 7px 16px;
  border-radius: var(--radius-std);
  border: 1px solid rgba(252,251,248,0.3);
  background: transparent;
  color: var(--off-white);
  cursor: pointer;
}
.cookie-btn.accept { background: var(--off-white); color: var(--charcoal); border-color: var(--off-white); }
.cookie-btn-link { font-size: 12px; color: rgba(252,251,248,0.55); background: none; border: none; cursor: pointer; padding: 4px 0; text-decoration: underline; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .container, .container-narrow { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .footer-inner { padding: 0 24px; grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { padding: 20px 24px 0; }
  #cookie-banner { padding: 14px 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .site-nav { display: none; }
  .burger-btn { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
