/* ============================================================
   Michael Doyle Printing Ltd — static site
   Design: single family (Public Sans), CMY press-color accents
   pulled from the company's own logo mark, neutral paper ground.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root{
  --bg: #ffffff;
  --bg-alt: #f5f4f1;
  --ink: #17181a;
  --ink-soft: #58585a;
  --line: #e4e2dd;
  --cyan: #00aeef;
  --magenta: #ec0c8c;
  --yellow: #ffd400;
  --accent: var(--magenta);
  --radius: 3px;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  font-size: 17px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- CMY mark: the one recurring signature motif ---------- */
.cmy-mark{
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}
.cmy-mark span{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.cmy-mark span:nth-child(1){ background: var(--cyan); }
.cmy-mark span:nth-child(2){ background: var(--magenta); margin-top: 6px; }
.cmy-mark span:nth-child(3){ background: var(--yellow); }

/* ---------- Header ---------- */
.site-header{
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  z-index: 40;
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.brand{ display: flex; align-items: center; }
.brand img{ height: 68px; width: auto; }

nav.primary-nav{ display: flex; align-items: center; gap: 2rem; }
nav.primary-nav > ul{
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 1.9rem;
  font-weight: 600;
  font-size: .96rem;
}
nav.primary-nav > ul > li{ position: relative; }
nav.primary-nav > ul > li > a{
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
nav.primary-nav > ul > li > a:hover,
nav.primary-nav > ul > li.active > a{
  border-color: var(--accent);
  color: var(--accent);
}
.has-dropdown .dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem;
  min-width: 230px;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{ display: block; }
.dropdown li a{
  display: block;
  padding: .5rem .75rem;
  border-radius: 2px;
  font-weight: 500;
  color: var(--ink);
}
.dropdown li a:hover{ background: var(--bg-alt); color: var(--accent); }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem .65rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Hero slideshow ---------- */
.hero-slideshow{
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 21 / 8;
  max-height: 480px;
}
.hero-slideshow .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-slideshow .slide.is-active{ opacity: 1; }
.hero-slideshow .slide img{
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  display: block; margin: 0 auto;
}
.slide-dots{
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.slide-dots button{
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
}
.slide-dots button.is-active{ background: #fff; }

/* ---------- Sections ---------- */
section{ padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt{ background: var(--bg-alt); }

.section-heading{
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 .35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-sub{
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 2rem;
}

/* ---------- Product grid (home) ---------- */
.product-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.product-card:hover{ border-color: var(--accent); transform: translateY(-2px); }
.product-card .thumb{
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  overflow: hidden;
}
.product-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb.no-photo{
  display: flex; align-items: center; justify-content: center;
}
.product-card .body{ padding: 1.1rem 1.25rem 1.3rem; }
.product-card h3{ margin: 0 0 .2rem; font-size: 1.05rem; }
.product-card .cta{
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb{
  font-size: .85rem;
  color: var(--ink-soft);
  padding: 1rem 0 0;
}
.breadcrumb a:hover{ color: var(--accent); }
.breadcrumb .sep{ margin: 0 .4rem; opacity: .5; }

/* ---------- Product detail ---------- */
.product-hero{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; padding-top: 1.75rem; }
.product-hero h1{ font-size: clamp(1.9rem, 4vw, 2.6rem); margin: .3rem 0 1rem; letter-spacing: -.01em; }
.product-hero .intro{ color: var(--ink-soft); font-size: 1.05rem; max-width: 55ch; }
.info-panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  background: var(--bg-alt);
}
.info-panel dl{ margin: 0; }
.info-panel dt{ font-weight: 700; font-size: .82rem; text-transform: none; color: var(--ink-soft); margin-top: 1rem; }
.info-panel dt:first-child{ margin-top: 0; }
.info-panel dd{ margin: .2rem 0 0; font-size: 1.02rem; }
.info-panel .btn{ margin-top: 1.3rem; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
}
.btn:hover{ background: #d10a7c; }
.btn-outline{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover{ border-color: var(--accent); color: var(--accent); background: transparent; }

/* ---------- Gallery ---------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .9rem;
  margin-top: 2.5rem;
}
.gallery button{
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
  aspect-ratio: 1/1;
}
.gallery img{ width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery button:hover img{ transform: scale(1.05); }

.gallery-group{ margin-top: 2.5rem; }
.gallery-group h2{ font-size: 1.2rem; margin: 0 0 1rem; }

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(10,10,10,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 3rem 1.5rem;
}
.lightbox.is-open{ display: flex; }
.lightbox img{ max-width: 100%; max-height: 86vh; border-radius: 2px; }
.lightbox .lb-close{
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox .lb-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
}
.lightbox .lb-prev{ left: 1.2rem; }
.lightbox .lb-next{ right: 1.2rem; }

/* ---------- Info strip (finishes/moq quick facts) ---------- */
.fact-row{
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.4rem;
}
.fact-pill{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.field{ margin-bottom: 1.1rem; }
.field label{ display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field textarea{
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: .65rem .8rem;
  font: inherit;
  background: #fff;
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--accent);
}
.field textarea{ min-height: 130px; resize: vertical; }
.form-note{ font-size: .85rem; color: var(--ink-soft); margin-top: .75rem; }
.form-status{ font-size: .9rem; font-weight: 600; margin-top: .9rem; display: none; }
.form-status.ok{ display: block; color: #128a3e; }
.form-status.err{ display: block; color: #c0224a; }

.contact-info h2{ font-size: 1.2rem; margin: 0 0 .6rem; }
.contact-info p{ color: var(--ink-soft); }
.contact-info .detail{ margin-top: 1.6rem; }
.contact-info .detail dt{ font-weight: 700; font-size: .82rem; color: var(--ink-soft); }
.contact-info .detail dd{ margin: .15rem 0 0; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.site-footer .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer img{ height: 44px; opacity: .85; }
.site-footer small{ color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 880px){
  .product-hero{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px){
  .nav-toggle{ display: inline-flex; align-items: center; gap:.4rem; }
  nav.primary-nav{
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
  }
  nav.primary-nav.is-open{ display: block; }
  nav.primary-nav > ul{ flex-direction: column; gap: .3rem; }
  .has-dropdown .dropdown{
    position: static; box-shadow: none; border: none; padding-left: .75rem; display: block;
  }
  .product-grid{ grid-template-columns: 1fr 1fr; }
  .hero-slideshow{ aspect-ratio: 4/3; max-height: none; }
}
@media (max-width: 460px){
  .product-grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-slideshow .slide{ transition: none; }
  .gallery img{ transition: none; }
}
