/* ===========================================================
   3mm Bleed — base styles
   Palette: near-black / white, print registration-mark accents
   (cyan #00AEEF, magenta #EC008C) used sparingly as highlights.
   =========================================================== */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --paper-dim: #f5f5f4;
  --grey: #6b6b6b;
  --line: #e4e2df;
  --cyan: #00AEEF;
  --magenta: #EC008C;
  --max-width: 1180px;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: var(--grey); }

a { color: inherit; text-decoration: none; }

.accent { color: var(--magenta); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1.5px solid var(--ink);
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); background: var(--magenta); border-color: var(--magenta); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--paper-dim); }

.btn-small { padding: 10px 20px; font-size: 13px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-mark-img {
  display: block;
  /* Screen rendering of physical units is approximate (CSS mm = 96px/25.4mm), not true physical size */
  height: 42mm;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
  font-weight: 500;
  font-size: 15px;
}

.main-nav > a {
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav > a:hover,
.main-nav > a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.header-contact {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.header-contact a { color: var(--grey); }
.header-contact a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  height: 70vh;
  min-height: 420px;
  max-height: 720px;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSlideshow 30s infinite;
}

@keyframes heroSlideshow {
  0% { opacity: 0; }
  1% { opacity: 1; }
  16% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img { animation: none; opacity: 0; }
  .hero-slideshow img:first-child { opacity: 1; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.15);
}

/* ---------- Section scaffolding ---------- */

section { padding: 96px 0; }

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
}

.section-lead {
  font-size: 17px;
  margin-bottom: 48px;
}

/* ---------- About ---------- */

.about { padding-bottom: 48px; }

.about-lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--grey);
  margin: 0;
}

/* ---------- Services ---------- */

.services { background: var(--paper-dim); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-category {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
}

.service-category h3 {
  font-size: 19px;
  margin-bottom: 18px;
}

.service-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-category li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
}

.service-category li:first-child { border-top: none; padding-top: 0; }

/* ---------- Gallery ---------- */

.gallery { padding-top: 48px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-dim);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.lightbox[hidden] { display: none; }

.lightbox-image {
  max-width: min(1100px, 90vw);
  max-height: 78vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-display);
  line-height: 1;
}

.lightbox-close {
  top: 20px;
  right: 28px;
  font-size: 36px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  padding: 8px 16px;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-close:hover,
.lightbox-nav:hover { color: var(--magenta); }

/* ---------- Contact ---------- */

.contact-inner { text-align: center; max-width: 640px; }
.contact-inner .section-lead { margin-left: auto; margin-right: auto; }

.contact-details {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.contact-link:hover { color: var(--magenta); }

.contact-address {
  font-size: 14px;
  color: var(--grey);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--grey);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 20px; }
  .lightbox-nav { font-size: 40px; padding: 6px 10px; }
  .lightbox-close { top: 10px; right: 16px; font-size: 30px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
}

.main-nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}

.main-nav.is-open > a { padding-left: 0; padding-right: 0; }

.main-nav.is-open .header-contact {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-left: none;
  padding-left: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
