/* ==========================================================================
   ClientEngine — Design tokens & base
   ========================================================================== */

:root {
  /* Color system: near-black ink, broken-white paper, warm copper as the
     primary accent. --accent-2 (deep green) is a deliberate second accent
     used only for "statement" section backgrounds (testimonial, closing
     CTA) to give the page rhythm — never introduced as a third color. */
  --ink: #16130f;
  --ink-soft: #3a332c;
  --paper: #f6f1e9;
  --paper-soft: #ece3d3;
  --paper-line: rgba(22, 19, 15, 0.12);
  --accent: #b8793f;
  --accent-soft: #d9a066;
  --accent-2: #2b4438;
  --accent-2-soft: #3f5c4c;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --container-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Note: deliberately NOT setting overflow-x:hidden on html/body — it
   breaks position:sticky (the header) in every browser. Layout is
   audited to not overflow horizontally instead. */

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

/* Faint film-grain over the whole page — breaks up flat vector fills so
   the site reads as considered/printed rather than generated. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-line);
}

.btn-ghost:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

/* ==========================================================================
   Header
   ========================================================================== */

/* Sticky so navigation/CTA access never disappears while scrolling
   through the longer sections further down the page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Deliberately understated — the real call to action lives in the hero.
   These are quiet secondary paths, not second CTAs. */
.header-nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.header-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hamburger toggle — hidden on desktop, shown once the nav no longer
   comfortably fits inline (see breakpoint below). */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  /* Dropdown panel instead of squeezing links into the bar — absolutely
     positioned so it doesn't push the header's own height around. */
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    box-shadow: 0 12px 24px rgba(22, 19, 15, 0.08);
    display: none;
  }

  .header-nav.is-open {
    display: flex;
  }

  .header-nav a {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 10vh, 7rem) clamp(4rem, 14vh, 9rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Corner register marks — a small nod to print crop marks / camera
   viewfinder corners, the kind of detail a considered design system has
   and a template doesn't. Static; they mark position, they don't move. */
.register-mark {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0.55;
}

.register-mark--tl {
  top: 12%;
  left: 3%;
  border-top: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
}

/* Hidden video slot — disabled by default via HERO_VIDEO_ENABLED in main.js */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

/* Text column + photo column, side by side — the asymmetry comes from the
   1.15/0.85 split rather than from absolute-positioning the copy, and it
   puts real color/imagery up top instead of only thin linework. */
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-inner {
  max-width: 620px;
  min-width: 0;
}

/* Framed like a printed photo (matte border, soft shadow) so the duotone
   placeholder reads as "a photo goes here" rather than an abstract shape.
   TODO: swap the gradient fill below for a real <img> once photography
   is available — keep the frame/border treatment for consistency. */
.hero-photo {
  position: relative;
}

/* Frame hugs the photo's own natural ratio exactly — no fixed
   aspect-ratio/letterboxing, the border+shadow just wraps the image. */
.photo-frame {
  position: relative;
  overflow: hidden;
  border: 10px solid var(--paper);
  outline: 1px solid var(--paper-line);
  box-shadow: 0 24px 48px rgba(22, 19, 15, 0.16);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
}

/* Progressive image loading — a shimmering skeleton instead of a bare
   color patch while the photo downloads, then a soft cross-fade once it
   has. Enhancement-only: initProgressiveImages() in main.js adds
   .has-skeleton at runtime, so without JS the <img> is just visible
   immediately (safe default) rather than stuck invisible. */
.has-skeleton {
  position: relative;
}

.has-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, var(--paper-soft) 25%, #efe6d6 45%, var(--paper-soft) 65%);
  background-size: 250% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.has-skeleton img {
  position: relative;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.has-skeleton.is-loaded::before {
  opacity: 0;
  animation: none;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.has-skeleton.is-loaded img {
  opacity: 1;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-skeleton::before {
    animation: none;
  }
}

.register-mark--photo {
  top: -14px;
  left: -14px;
  border-top: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo .photo-frame {
    max-width: 420px;
  }
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--ink);
}

.hero-headline .word {
  display: inline-block;
  overflow: hidden;
}

.hero-headline .word > span {
  display: inline-block;
  will-change: transform;
}

/* CSS-driven reveal fallback, used only when GSAP fails to load (e.g. the
   CDN is unreachable). Applied via inline animation-delay per word/element
   from main.js so the reveal still reads as a deliberate sequence, not a
   flat fade. Reduced-motion users never get this class (see main.js). */
.hero-headline .word > span.css-reveal {
  opacity: 0;
  transform: translateY(115%);
  animation: word-in 0.85s var(--ease-out) forwards;
}

[data-hero-fade].css-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.7s var(--ease-out) forwards;
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  margin-top: 2rem;
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-cta-row {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Waarom ClientEngine
   ========================================================================== */

.why {
  border-top: 1px solid var(--paper-line);
  padding-block: clamp(4.5rem, 12vh, 8rem);
}

.why-head {
  max-width: 40ch;
}

.why-title {
  margin-top: 1.25rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

/* 12-column grid lets each point sit at a different width/offset instead
   of three identical cards — a staggered cascade, not a symmetric row. */
.why-grid {
  display: grid;
  /* minmax(0, 1fr), not bare 1fr — bare 1fr tracks default to a
     content-based minimum, which let why-item's max-width: 56ch
     (see below) force the grid wider than the viewport on mobile. */
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3.5rem 1.5rem;
  margin-top: clamp(3rem, 8vh, 5rem);
}

.why-item {
  max-width: 42ch;
  min-width: 0;
}

.why-item--1 {
  grid-column: 1 / 6;
}

.why-item--2 {
  grid-column: 6 / 12;
  margin-top: 4.5rem;
}

.why-item--3 {
  grid-column: 3 / 9;
  margin-top: 4.5rem;
}

.why-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Alternating accent keeps the cascade from reading as one flat color
   block — the same two-accent rhythm used in the cases dots/links. */
.why-item--2 .why-num {
  color: var(--accent-2);
}

.why-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.why-item p {
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  /* Every item already spans the full row here, so the 12-column
     template is pointless on mobile — collapse to one simple track
     instead of leaving 11 unused columns for the sizing algorithm to
     reason about. */
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }

  .why-item--1,
  .why-item--2,
  .why-item--3 {
    grid-column: 1 / -1;
    margin-top: 0;
    max-width: 56ch;
  }
}

/* ==========================================================================
   Over & vertrouwen
   ========================================================================== */

.about {
  background: var(--paper-soft);
  border-top: 1px solid var(--paper-line);
  padding-block: clamp(4.5rem, 12vh, 8rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-copy {
  min-width: 0;
}

.about-lead {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35;
}

.about-text {
  margin-top: 1.5rem;
  max-width: 48ch;
  color: var(--ink-soft);
}

/* Offset downward and bordered, not another drop-shadow card — echoes the
   hairline language used elsewhere instead of repeating the "why" numerals. */
.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--paper-line);
  border-left: 2px solid var(--accent);
}

.about-stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 6vw, 4rem);
  color: var(--accent);
  line-height: 1;
}

.about-stat-label {
  max-width: 26ch;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-stat {
    margin-top: 1rem;
  }
}

/* ==========================================================================
   Cases
   ========================================================================== */

.cases {
  border-top: 1px solid var(--paper-line);
  padding-block: clamp(4.5rem, 12vh, 8rem);
}

.cases-head {
  max-width: 46ch;
}

/* Standalone cases page: page-intro already handles the heading, this
   section just needs sensible padding around the list. */
.cases-page {
  padding-block: clamp(2rem, 6vh, 4rem) clamp(5rem, 12vh, 8rem);
}

.cases-page .cases-list {
  margin-top: 0;
}

.cases-title {
  margin-top: 1.25rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.cases-list {
  display: flex;
  flex-direction: column;
  margin-top: clamp(3rem, 8vh, 5rem);
}

/* Row 1: visual / info. Row 2 mirrors it (info / visual) via DOM order,
   not via CSS flip — two cases, two distinct compositions. */
.case-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Grid/flex items default to min-width:auto, which for a replaced
   element (the screenshot <img>) resolves to its native pixel width —
   without this override that silently forces the whole row (and page)
   wider than the viewport instead of letting the image shrink. */
.case-visual,
.case-row {
  min-width: 0;
}

.case-row + .case-row {
  margin-top: clamp(3.5rem, 9vh, 6rem);
}

.browser-frame {
  border: 1px solid var(--paper-line);
  background: var(--paper-soft);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--paper-line);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--ink {
  background: var(--ink-soft);
  opacity: 0.35;
}

.dot--accent {
  background: var(--accent);
}

.dot--accent2 {
  background: var(--accent-2);
}

.browser-body {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(22, 19, 15, 0.045) 0,
    rgba(22, 19, 15, 0.045) 1px,
    transparent 1px,
    transparent 14px
  );
}

/* Real screenshot instead of the placeholder pattern — an actual <img>
   (not a CSS background) so it renders at native sharpness and can be
   reused inside the lightbox. Click/tap to view it larger — see
   js/main.js initLightbox(). */
.browser-body--photo {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  min-width: 0;
  font: inherit;
  background: var(--paper-soft);
  cursor: zoom-in;
  overflow: hidden;
}

.browser-body--photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
}

.browser-body--photo::after {
  content: "Klik om te vergroten";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--paper);
  background: rgba(22, 19, 15, 0.72);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}

.browser-body--photo:hover::after,
.browser-body--photo:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.browser-body-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink-soft);
  text-align: center;
}

.case-info {
  min-width: 0;
}

.case-info h3 {
  font-size: 1.5rem;
}

.case-info p {
  margin-top: 1rem;
  max-width: 42ch;
  color: var(--ink-soft);
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-out), gap 0.3s var(--ease-out);
}

.case-link:hover {
  color: var(--accent);
  gap: 0.65em;
}

/* Each case gets its own accent — a small identity per client rather
   than repeating the same copper link on every row. Alternates
   automatically as more cases are added (nth-of-type, not a fixed
   modifier class), and the DOM order alternates visual/info vs
   info/visual so each row mirrors the one before it. */
.case-row:nth-of-type(even) .case-link {
  border-bottom-color: var(--accent-2);
}

.case-row:nth-of-type(even) .case-link:hover {
  color: var(--accent-2);
}

.cases-risk {
  margin-top: clamp(3.5rem, 9vh, 6rem);
  max-width: 56ch;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink-soft);
}

.cases-all-link {
  margin-top: 2rem;
}

@media (max-width: 760px) {
  .case-row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Normalizes stacking order on mobile so every case reads
     image-then-text, regardless of how it mirrors on desktop. */
  .case-row:nth-of-type(even) .case-info {
    order: 1;
  }

  .case-row:nth-of-type(even) .case-visual {
    order: 2;
  }
}

/* ==========================================================================
   Testimonials — kept in the site's light palette (like every other
   section) instead of a dark statement block; the earlier dark/green
   treatment kept reading as a mismatched patch rather than part of the
   same site, however it was tuned. Two quotes, alternating accent and
   offset instead of matching cards.
   ========================================================================== */

.testimonial {
  background: var(--paper-soft);
  border-top: 1px solid var(--paper-line);
  padding-block: clamp(4.5rem, 12vh, 8rem);
}

/* Two balanced columns rather than a cascading stack — reads as
   deliberate symmetry-with-variation (alternating accent) instead of
   a staircase that risks the quote marks crowding each other. */
.testimonial .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.testimonial-item {
  position: relative;
  padding-top: 2.75rem;
}

.testimonial-mark {
  position: absolute;
  top: -0.5rem;
  left: -0.15rem;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7vw, 6rem);
  color: var(--accent);
  opacity: 0.45;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 760px) {
  .testimonial .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.testimonial-item--2 .testimonial-mark {
  color: var(--accent-2);
}

.testimonial blockquote {
  position: relative;
  margin: 0;
}

.testimonial blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.32;
  color: var(--ink);
}

.testimonial blockquote footer {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.testimonial-item--2 blockquote footer {
  border-left-color: var(--accent-2);
}

.testimonial blockquote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Slot-CTA
   ========================================================================== */

.final-cta {
  border-top: 1px solid var(--paper-line);
  padding-block: clamp(5rem, 14vh, 9rem);
}

.final-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.final-cta-inner h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--paper-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 3rem;
}

.footer-brand .logo {
  font-size: 1.1rem;
}

.footer-brand address {
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-contact,
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact a,
.footer-nav a {
  text-decoration: none;
  color: var(--ink);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.footer-contact a:hover,
.footer-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

/* ==========================================================================
   Cookie banner — small, persistent, never blocks the page
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  max-width: 460px;
  /* Kept compact on purpose — on shorter laptop screens (~900px tall)
     the hero CTA row sits close to the bottom edge, and a bulkier
     banner would overlap it on first visit. */
  padding: 0.8rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(246, 241, 233, 0.12);
  box-shadow: 0 12px 32px rgba(22, 19, 15, 0.22);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-dismissed {
  opacity: 0;
  transform: translateY(8px);
}

.cookie-banner p {
  font-size: 0.8rem;
  color: var(--paper);
  opacity: 0.85;
  max-width: 30ch;
}

.btn-small {
  padding: 0.6em 1.2em;
  font-size: 0.85rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.9rem 1rem;
  }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.page-intro {
  border-top: 1px solid var(--paper-line);
  padding-block: clamp(4rem, 11vh, 6.5rem) clamp(2rem, 6vh, 3rem);
}

.page-intro-title {
  margin-top: 1.25rem;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.page-intro-sub {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.contact-main {
  padding-block: clamp(2rem, 6vh, 4rem) clamp(5rem, 12vh, 8rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 {
  font-size: 1.4rem;
}

.contact-methods {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.contact-methods a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.contact-methods a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-methods address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.6;
}

.whatsapp-btn {
  margin-top: 2.5rem;
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.whatsapp-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* Bordered panel echoes the about-stat / browser-frame hairline language
   used elsewhere, instead of a plain floating form. */
.contact-form {
  border: 1px solid var(--paper-line);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-row .optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  padding: 0.8em 1em;
  border-radius: 2px;
  transition: border-color 0.3s var(--ease-out);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Lightbox — enlarged case screenshot on click, closes on backdrop
   click, close button, or Escape (see js/main.js initLightbox()).
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: rgba(22, 19, 15, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  display: block;
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  border: 6px solid var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 233, 0.3);
  background: transparent;
  color: var(--paper);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.lightbox-close:hover {
  background: rgba(246, 241, 233, 0.1);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .lightbox {
    padding: 4.5rem 1rem 1.5rem;
  }

  .lightbox-close {
    top: 0.85rem;
    right: 0.85rem;
    width: 40px;
    height: 40px;
  }
}

