/* Clive Truter Studio — faithful to the production CM4all site (design cm_dh_085).
   Tokens lifted from the live vars.css:
     body #F3CED1 · content #FFFFFF · text #212121
     accent/headings/links/header/nav/footer #7C272E · nav hover/current #9C4F55
     header-alt #954148 · sidebar #E5BDC1 · content-alt #EECDD0 · border #363636
   Fonts: Biryani (titles/headings, NORMAL weight) · Monda (body + nav)        */
@import url('https://fonts.googleapis.com/css2?family=Biryani:wght@400;600;700&family=Monda:wght@400;700&display=swap');

:root {
  --page-bg: #F3CED1;
  --content-bg: #FFFFFF;
  --text: #212121;
  --accent: #7C272E;
  --accent-hover: #954148;
  --nav-hover: #9C4F55;
  --sidebar-bg: #E5BDC1;
  --soft: #EECDD0;
  --border: #363636;
  --font-head: 'Biryani', sans-serif;
  --font-body: 'Monda', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}
/* Production renders all headings in Biryani at NORMAL weight (not bold). */
h1, h2, h3, h4, .title, .bigtitle { font-family: var(--font-head); font-weight: 400; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* ---------- Top bar + navigation (the maroon head_wrapper) ---------- */
.topbar {
  background: var(--accent);
  border-bottom: 2px solid #292929;
  position: sticky; top: 0; z-index: 30;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
}
/* The signature logo is a menu item that links home, but is NOT an active/hover
   element: no highlight, and sits immediately before the menu items. */
.site-nav .nav-logo a,
.site-nav .nav-logo a:hover,
.site-nav .nav-logo a.active { background: none; padding: 6px 16px 6px 0; }
.nav-logo img {
  height: 34px; width: auto; display: block;
  /* Signature.png is already white-on-transparent (tools/make_logo.py) — no filter needed.
     REVERT to the scanned JPEG: set site.yml signature back to Signature.jpg and restore:
       filter: invert(1) contrast(1.9) brightness(1.15);
       mix-blend-mode: screen;                                                          */
}
.site-nav a {
  display: block;
  color: #fff;
  font-family: var(--font-body);     /* Monda, like production */
  font-weight: 400;
  font-size: 1.05rem;
  padding: 14px 20px;
  text-transform: none;              /* mixed-case, like production */
  letter-spacing: normal;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--nav-hover);       /* #9C4F55 */
  color: #fff;
}

/* ---------- Title / banner hero (the title_wrapper over the slideshow) ---------- */
.hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #000;
}
.hero .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero .slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  background: rgba(0,0,0,0.28);
  color: #fff;
  padding: 0 20px;
}
.hero-overlay .bigtitle {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin: 0; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero-overlay .subtitle {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  margin: 0.4em 0 0; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ---------- Page layout (content + optional sidebar) ---------- */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 260px; }
.sidebar {
  background: var(--sidebar-bg);
  border-radius: 6px;
  padding: 20px 22px;
  align-self: start;
}
.sidebar h2, .sidebar h3 { color: var(--accent); margin-top: 0; }

.page-intro { text-align: center; max-width: 900px; margin: 0 auto; padding: 12px 24px 4px; }
.page-intro h1 { color: var(--accent); font-size: 1.7rem; margin: 0 0 .4em; }
.page-intro p { margin: 0 auto; }

/* ---------- Catalog: single-column vertical list (one piece per row) ---------- */
.catalog {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.item {
  background: var(--content-bg);
  border: 1px solid var(--soft);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(124,39,46,0.10);
  padding: 26px 28px 30px;
  text-align: center;
}
.item-img {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  margin: 0 auto;
  cursor: zoom-in;
  border-radius: 3px;
}
.item-thumbs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 12px 0 0;
}
.item-thumbs img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 3px;
  border: 2px solid transparent; cursor: pointer;
}
.item-thumbs img:hover, .item-thumbs img.active { border-color: var(--accent); }
.item-title {
  color: var(--accent);
  font-size: 1.5rem;
  margin: .7em 0 .5em;
}
/* Fields read as inline "Label value", left-aligned, like the catalog widget. */
.fields { text-align: left; max-width: 620px; margin: 0 auto; }
.field { margin: 0 0 .5em; line-height: 1.45; }
.field .label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent);
}
.field .value { color: var(--text); }
.field.price .value { font-weight: 700; font-size: 1.1rem; }

/* ---------- About / Contact prose ---------- */
.prose {
  background: var(--content-bg);
  border-radius: 6px;
  padding: 32px 36px;
  box-shadow: 0 4px 14px rgba(124,39,46,0.10);
  max-width: 820px; margin: 0 auto;
}
.prose h1, .prose h2 { color: var(--accent); }
.contact-card {
  background: var(--sidebar-bg);
  border-radius: 6px;
  padding: 28px 32px;
  text-align: center;
  max-width: 520px; margin: 0 auto;
}
.contact-card .name { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: var(--accent); }
.contact-card a { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 32px 20px;
  margin-top: 40px;
  font-family: var(--font-body);
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer .sig { max-width: 220px; margin: 12px auto 0; opacity: .95; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; }
.lightbox .close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 2.4rem; cursor: pointer; font-family: var(--font-head); }

@media (max-width: 700px) {
  .hero { height: 220px; }
  .site-nav ul { justify-content: center; }
  .nav-logo { margin-right: 0; flex-basis: 100%; display: flex; justify-content: center; }
  .nav-logo a { padding: 8px 0; }
  .site-nav a { padding: 11px 13px; font-size: 0.95rem; }
  .layout.has-sidebar { grid-template-columns: 1fr; }
}
