:root {
  /* Vulmex corporate colours (from the logo) */
  --brand-charcoal: #333a40;
  --brand-orange: #fd6912;
  --brand-paper: #f4f3ef;

  --bg: #2b2f33;
  --panel: var(--brand-charcoal);
  --text: var(--brand-paper);
  --muted: #b8bcbf;
  --line: rgba(255, 255, 255, 0.1);
  --accent: var(--brand-orange);
  --accent-hover: #ff7f33;
  --radius: 28px;
  --gap: 18px;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(880px, calc(100% - 32px));
  padding: 10px 10px 10px 24px;
  border-radius: 18px;
  /* Light bar in the logo's paper colour so the mark shows as designed. */
  background: rgba(244, 243, 239, 0.92);
  color: var(--brand-charcoal);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 58, 64, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 45px; height: 28px; }
.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-charcoal);
}
.brand-name small { font-size: 0.6em; font-weight: 600; color: var(--brand-orange); }

.nav { display: flex; gap: 26px; margin: 0 auto; }
.nav a { font-size: 15px; opacity: 0.9; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.btn-cta {
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--accent);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--accent-hover); }

.btn-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(51, 58, 64, 0.08);
  font-size: 22px;
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) 1fr;
  gap: var(--gap);
  height: 100vh;
  padding: 40px 36px 28px;
}

/* ---------- Left panel ---------- */
.panel-left {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 80px 64px 40px;
  overflow-y: auto;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.panel-left h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 20px auto 40px;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.6;
}

.menu { list-style: none; }

.menu-item { border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }

.menu-title {
  width: 100%;
  padding: 22px 0;
  font-size: clamp(20px, 2vw, 30px);
  color: var(--muted);
  opacity: 0.75;
  transition: color 0.25s, opacity 0.25s;
}
.menu-title:hover { opacity: 1; }
.menu-item.is-active .menu-title { color: var(--accent); opacity: 1; }

/* Smooth accordion using grid-rows trick */
.menu-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.menu-inner { overflow: hidden; min-height: 0; }
.menu-item.is-active .menu-body { grid-template-rows: 1fr; }

.thumb {
  aspect-ratio: 16 / 7;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}
.menu-body p { color: var(--muted); padding: 14px 0 26px; }
.menu-body p:has(+ .points) { padding-bottom: 12px; color: var(--text); font-weight: 600; }

.points {
  list-style: none;
  padding: 0 0 26px;
  text-align: left;
  color: var(--muted);
  line-height: 1.55;
}
.points li { position: relative; padding-left: 20px; margin-bottom: 12px; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.points strong { color: var(--text); font-weight: 600; }

/* Placeholder thumbnails – replace with background-image: url(...) */
.thumb-1 { background-image: url("../img/sketch-to-fold.jpg"); aspect-ratio: 16 / 9; }
.thumb-2 { background-image: linear-gradient(180deg, #9bb4c4 0%, #e6edf0 60%, #6c7a80 100%); }
.thumb-3 { background-image: linear-gradient(180deg, #3f6f7a 0%, #9ccbd3 60%, #4b5a5e 100%); }

/* ---------- Right panel (video) ---------- */
.panel-right {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #23272a;
}

.panel-right video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}
.panel-right video.is-fading { opacity: 0; }

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5a6066 0%, var(--brand-charcoal) 45%, #23272a 100%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.video-placeholder[hidden] { display: none; }
.video-placeholder span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: 60vh auto;
    height: auto;
    padding: 96px 16px 16px;
  }
  .panel-left { padding: 40px 24px; overflow: visible; }
  .panel-right { order: -1; }

  .topbar { gap: 12px; padding-left: 16px; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 16px;
    background: rgba(244, 243, 239, 0.98);
    border: 1px solid rgba(51, 58, 64, 0.12);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; }
  .btn-cta { margin-left: auto; padding: 10px 16px; }
}
