/* ═══════════════════════════════════════════════════════════════
   site.css — Shared styles for okaypainter.com
   Extracted from all page <style> blocks.
   Page-specific styles remain in each page's own <style> block.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design tokens ──────────────────────────────────────── */
:root {
  --bg:             linear-gradient(172deg, #fffdf7 31%, #f9f8f5 120%);
  --nav-bg:         transparent;
  --accent:         #ff45a8;
  --navy:           #080047;
  --text-primary:   rgba(8, 0, 71, 0.87);
  --text-secondary: rgba(8, 0, 71, 0.66);
  --card-bg:        #dfddf0;
  --nav-h:          76px;
  --left-w:         502px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 4px 0;
  z-index: 100;
}

.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  flex-shrink: 0;
}

.nav__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav__item {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 24px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav__item:hover { color: var(--text-primary); }

.nav__item--active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
}

.nav__item--active i { color: var(--accent); }

.nav__label {
  font-size: 24px;
  font-weight: 400;
  min-width: 100px;
}

/* ─── Hamburger (desktop hidden) ────────────────────────── */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  font-size: 24px;
  padding: 0 28px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}

/* ─── Mobile menu overlay ────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #fffdf7;
  z-index: 99;
  flex-direction: column;
  padding: 24px 20px;
  gap: 4px;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: 400;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.mobile-menu__item:hover,
.mobile-menu__item--active { color: var(--text-primary); }

.mobile-menu__item--active {
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

.mobile-menu__social {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 16px;
}

.mobile-menu__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu__social a:hover {
  color: var(--accent);
  background: rgba(8, 0, 71, 0.05);
}

/* ─── Two-column layout ──────────────────────────────────── */
.layout {
  display: flex;
  margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}

/* ─── Left pane ──────────────────────────────────────────── */
.left-pane {
  width: var(--left-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 36px 32px;
  gap: 13px;
  overflow: hidden;
  position: relative;
}

/* ─── Social links ───────────────────────────────────────── */
.social-links {
  position: absolute;
  bottom: 32px;
  left: 36px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.social-links a:hover {
  color: var(--accent);
  background: rgba(8, 0, 71, 0.05);
}

/* Tooltips */
.social-links a::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.social-links a:hover::after { opacity: 1; }

/* ─── Right scrollable content ───────────────────────────── */
.right-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 0, 71, 1) transparent;
}

.right-content::-webkit-scrollbar { width: 4px; }
.right-content::-webkit-scrollbar-track { background: transparent; }
.right-content::-webkit-scrollbar-thumb {
  background: rgba(8, 0, 71, 1);
  border-radius: 2px;
}
.right-content::-webkit-scrollbar-thumb:hover {
  background: rgba(8, 0, 71, 1);
}

/* ─── Display heading utility class ─────────────────────── */
.display-title {
  font-size: 44px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

/* ═══════════════════════════════════════════════════════════════
   Project page shared styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb__back {
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.breadcrumb__back:hover { opacity: 0.7; }
.breadcrumb__sep { color: var(--text-secondary); }
.breadcrumb__current { color: var(--navy); font-weight: 400; }
.project-title { margin-top: 16px; }

/* ─── Project meta ───────────────────────────────────────── */
.meta-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 1em; }
.meta-row { display: flex; gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.5; }
.meta-row__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 68px;
}
.meta-row__sep { color: var(--text-secondary); flex-shrink: 0; }
.meta-row__value { color: var(--text-secondary); }
.meta-timeline { font-size: 13px; color: var(--text-secondary); margin-top: 20px; }

/* ─── Under construction screen ──────────────────────────── */
.wip-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 60px 40px;
  text-align: center;
  gap: 32px;
}
.wip-screen__graphic {
  opacity: 0.18;
}
.wip-screen__headline {
  font-family: 'Bitter', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--navy);
  line-height: 1.15;
  max-width: 480px;
}
.wip-screen__body {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.7;
}
.wip-screen__accent {
  color: var(--accent);
  font-style: normal;
}

/* ─── Case study document ────────────────────────────────── */
.case-doc { max-width: 800px; margin: 0 auto; padding: 56px 60px 96px; }
.case-section { margin-bottom: 52px; }

.case-section__step {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.case-section__heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 18px;
  line-height: 1.25;
}
.case-body { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.case-body p + p { margin-top: 12px; }

/* ─── Case bullets ───────────────────────────────────────── */
.case-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; }
.case-bullets li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); padding-left: 20px; position: relative; }
.case-bullets li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }

/* ─── Pull quote ─────────────────────────────────────────── */
.pull-quote {
  font-family: 'Bitter', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.55;
  color: var(--navy);
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 32px 0;
}

/* ─── Case images ────────────────────────────────────────── */
.case-img-wrap { border-radius: 12px; overflow: hidden; margin: 28px 0 6px; }
.case-img { width: 100%; border-radius: 12px; display: block; }

/* ─── Case video ─────────────────────────────────────────── */
.case-video-wrap { border-radius: 12px; overflow: hidden; margin: 28px 0 6px; background: #000; }
.case-video { width: 100%; display: block; border-radius: 12px; max-height: 640px; }

/* ─── Podcast player ─────────────────────────────────────── */
.case-podcast { display: flex; gap: 20px; align-items: flex-start; margin: 28px 0 6px; background: var(--card-bg); border-radius: 12px; padding: 20px; }
.case-podcast__cover { width: 100px; height: 100px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.case-podcast__player { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.case-podcast__title { font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0; }
.case-podcast__audio { width: 100%; }

/* ─── Image grids ────────────────────────────────────────── */
.case-img-grid { display: flex; gap: 24px; margin: 28px 0 6px; align-items: flex-start; }
.case-img-grid__item { flex: 1; min-width: 0; }
.case-img-grid__item .case-img { margin: 0; }
.case-img-grid__caption { font-size: 13px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }
.case-img-caption { font-size: 12px; color: var(--text-secondary); text-align: center; margin-bottom: 24px; opacity: 0.7; }

/* ─── Image placeholder (used on template pages) ────────── */
.case-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card-bg);
  border-radius: 12px;
  margin: 28px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0.5;
}

/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .case-doc { padding: 32px 20px 64px; }
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .nav, .left-pane { display: none !important; }
  html, body { overflow: auto; height: auto; }
  .layout { display: block; margin-top: 0; height: auto; }
  .right-content { overflow: visible; }
}

/* ─── Mobile breakpoint ──────────────────────────────────── */
@media (max-width: 768px) {
  html, body { height: auto; overflow: auto; }

  /* Nav */
  .nav { padding: 0 20px; align-items: center; background: #fffdf7; border-bottom: 1px solid rgba(8, 0, 71, 0.08); }
  .nav__logo { padding: 0; }
  .nav__item { display: none; }
  .nav__hamburger { display: flex; }

  /* Layout */
  .layout { flex-direction: column; height: auto; margin-top: var(--nav-h); }

  /* Left pane — project pages hide it; index.html and gallery override below */
  .left-pane { display: none; }

  /* Right content */
  .right-content { overflow: visible; }

  /* Social links */
  .social-links { display: none; }
}
