/* ================================================================
   Tóth Studio — site stylesheet
   Values (colors, type, spacing, borders) follow the 2026-10-07
   "többoldalas makett" mockup one-for-one; each section names the
   mockup rule it mirrors. Side padding is always 5vw and nothing has
   a max-width — the mockup scales with the viewport instead of
   centering a fixed column.
   ================================================================ */

:root {
  /* Tóth Studio palette — paper/ink, from the mockup */
  --white:       #F4F2EE; /* paper */
  --black:       #17150F; /* ink */
  --gray-100:    #ECE8E1; /* paper2 */
  --gray-200:    #D9D4C9; /* line */
  --gray-400:    #7C6A52; /* clay */
  --gray-600:    #4A463C; /* soft */
  --panel:       #18160F;

  --font:        'IBM Plex Sans', Arial, sans-serif;
  --font-display: 'Jost', Arial, sans-serif;

  --pad:         5vw;
  --gap:         2px;

  --ease:        0.22s ease;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dark color scheme — follows the OS/browser preference by default, or
   the explicit choice from the header's theme-toggle button
   (data-theme="dark"/"light" on <html>, set by main.js and persisted in
   localStorage — see the inline script in head.html for the
   flash-of-wrong-theme guard). An explicit choice always wins over the
   system preference, hence `:not([data-theme="light"])` guarding the
   media query below. Same palette swap the mockup defines (paper/ink
   tokens flip). --panel stays fixed: the footer/DSP/GDPR bar is always
   a dark surface in both modes. Every other rule in this file already
   reads these custom properties, so the swap alone re-colors the whole
   site; the one exception that needs an explicit rule is the header
   logo, a baked-black PNG that needs inverting to stay visible against
   the now-dark surface behind it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white:    #161510;
    --black:    #F1EEE5;
    --gray-100: #1F1D16;
    --gray-200: #332F26;
    --gray-400: #C9B896;
    --gray-600: #B8B2A2;
  }
  :root:not([data-theme="light"]) .site-header { background: rgba(22,21,16,.9); }
  :root:not([data-theme="light"]) .site-header .site-logo-img {
    filter: invert(1);
  }
}
:root[data-theme="dark"] {
  --white:    #161510;
  --black:    #F1EEE5;
  --gray-100: #1F1D16;
  --gray-200: #332F26;
  --gray-400: #C9B896;
  --gray-600: #B8B2A2;
}
:root[data-theme="dark"] .site-header { background: rgba(22,21,16,.9); }
:root[data-theme="dark"] .site-header .site-logo-img {
  filter: invert(1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.55;
  /* Keeps the footer at the bottom of the window on pages shorter than
     the screen (large monitors); no effect once content is taller. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; }
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ── Helpers ────────────────────────────────────────────────── */
.container {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ── Buttons (mockup: .btn) ─────────────────────────────────── */
.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 26px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}
.btn:hover { opacity: .85; }

/* Text button (mockup: .back) */
.back {
  display: inline-block;
  margin: 28px var(--pad) 0;
  padding: 0 0 3px;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--black);
}

/* ================================================================
   HEADER (mockup: header, .brand, nav)
   ================================================================ */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(244,242,238,.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-200);
}
:root .site-header.nav-open { background: var(--white); }

.site-logo-img { height: 46px; width: auto; }

/* Desktop nav */
.main-nav ul {
  display: flex;
  gap: clamp(16px, 3vw, 38px);
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .active a { border-color: var(--black); }

/* Theme toggle (light/dark) — not part of the mockup. On desktop it
   sits centered inside the header's right-hand 5vw gutter, out of the
   flex flow, so the logo and nav keep the mockup's exact positions. */
.theme-toggle {
  position: absolute;
  top: 50%;
  right: calc((var(--pad) - 36px) / 2);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--black);
}
.theme-toggle-icon { width: 20px; height: 20px; }
.theme-toggle-icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle-icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle-icon--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-icon--sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle-icon--moon { display: block; }
}

/* Hamburger (≤800px only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Full-screen menu (≤800px only; mockup: nav.open). Lives outside
   <header> on purpose: the header's backdrop-filter makes it the
   containing block for position:fixed children, which would trap a
   full-screen overlay inside the header bar. */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.mobile-nav a:hover,
.mobile-nav .active a { border-color: var(--black); }

/* ================================================================
   HOME HERO (mockup: .hero)
   ================================================================ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--panel); /* shows only until the photo has loaded */
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,13,8,.78), rgba(15,13,8,.12) 45%, rgba(15,13,8,.05));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) 56px;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: .92;
  font-weight: 700;
  text-transform: uppercase;
  max-width: min-content; /* one word per line: "TÓTH / STUDIO" */
}
.hero-subtitle {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(.8rem, 1.6vw, 1.05rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #E4DECF;
}

/* ── Photo page hero — not in the mockup; only renders if an editor
   gives a page's hero block a background image ─────────────────── */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 340px;
  overflow: hidden;
  background: var(--panel);
}
.page-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) 48px;
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff; /* always white — sits over a photo, not page chrome */
}
.page-hero-subtitle {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #E4DECF;
}

/* ================================================================
   PAGE TITLE (mockup: .ptitle, .lead)
   ================================================================ */
.page-header { padding: 64px var(--pad) 0; }
.page-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--black);
}
.page-subtitle {
  margin-top: 32px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  line-height: 1.5;
}

/* ================================================================
   TITLE BLOCK ("title" object module — block-title__* class contract
   fixed by that module, styled here; mockup: .statement)
   ================================================================ */
.block-title { padding: 40px var(--pad) 48px; }
.block-title--center { text-align: center; }
.block-title--right { text-align: right; }
.block-title__surtitle {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.block-title__title {
  font-weight: 400;
  font-size: clamp(1.1rem, 3.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: normal;
  white-space: nowrap;
}
.block-title__text {
  margin-top: .5em;
  font-size: clamp(.92rem, 1.8vw, 1.1rem);
  line-height: 1.3;
  color: var(--gray-600);
  white-space: nowrap;
}

/* ================================================================
   CTA CARD BLOCK ("cta-card" object module — photo tiles; mockup:
   .tiles / .tile)
   ================================================================ */
.block-cta-card__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  background: var(--gray-200);
  border-top: 1px solid var(--gray-200);
}
.block-cta-card__card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
  color: #fff; /* always white — sits over a photo, not page chrome */
}
.block-cta-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.block-cta-card__card:hover .block-cta-card__image { transform: scale(1.04); }
.block-cta-card__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12,11,7,.8), rgba(12,11,7,.1) 60%);
}
.block-cta-card__body {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
}
.block-cta-card__title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase;
}
.block-cta-card__text { display: none; }
.block-cta-card__button {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  letter-spacing: .03em;
  color: #DDD8CB;
}
/* Referenciák page: square category tiles (mockup: .tiles.catsbig) */
.block-cta-card--categories .block-cta-card__cards { margin: 40px var(--pad) 90px; border: 0; }
.block-cta-card--categories .block-cta-card__card { aspect-ratio: 1 / 1; }

/* ================================================================
   CTA BLOCK ("cta" object module — block-cta__* class contract fixed
   by that module; mockup: .cta)
   ================================================================ */
.block-cta {
  padding: 90px var(--pad);
  text-align: center;
  border-top: 1px solid var(--gray-200);
}
.block-cta__title {
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  margin: 0 auto;
  text-wrap: balance;
}
.block-cta__text {
  margin: 14px auto 0;
  max-width: 52ch;
  color: var(--gray-600);
}
.block-cta__button + .block-cta__button { margin-left: 16px; }

/* ================================================================
   STUDIO ("editorial" object module, site override; mockup: .studio)
   ================================================================ */
.about-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  padding: 48px var(--pad) 90px;
}
.about-section--reversed { grid-template-columns: .85fr 1.15fr; }
.about-section--reversed .about-section-image { order: -1; }
.about-section + .about-section { border-top: 1px solid var(--gray-200); }
.about-section-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1);
}
.about-section-image--natural img { aspect-ratio: auto; height: auto; }
.about-section-caption {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--gray-600);
}
.about-section-caption b {
  display: block;
  font-family: var(--font-display);
  color: var(--black);
  font-size: .95rem;
}
.about-section-title {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 18px;
}
.about-section-text { font-size: 1.05rem; }
.about-section-text p { margin: 0 0 1.2em; max-width: 56ch; }
.about-section-text strong,
.about-section-text b { font-family: var(--font-display); letter-spacing: .04em; }
.about-section-text ul { margin: 0 0 1.2em; max-width: 56ch; }
.about-section-text ul li { padding: 4px 0 4px 18px; position: relative; }
.about-section-text ul li::before { content: '—'; position: absolute; left: 0; color: var(--gray-400); }

/* ================================================================
   REFERENCES — one collection's project grid (mockup: .refgrid)
   ================================================================ */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  background: var(--gray-200);
  margin: 40px var(--pad) 90px;
}
.reference-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--white);
}
.reference-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.reference-card:hover img { transform: scale(1.04); }
.reference-card-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 14px;
  background: linear-gradient(0deg, rgba(12,11,7,.78), transparent);
  color: #fff; /* always white — sits over a photo, not page chrome */
  font-size: .8rem;
}
.reference-card-caption b {
  display: block;
  font-family: var(--font-display);
  font-size: .9rem;
}

/* ── One project (mockup: #proj, .pt, .ptag, .pd, .pimgs, .pfoot) ── */
.project { padding-bottom: 80px; }
.project-title {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  text-transform: uppercase;
  font-weight: 700;
  margin: 26px var(--pad) 0;
}
.project-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  margin: 14px var(--pad) 0;
}
.project-desc {
  max-width: 52ch;
  color: var(--gray-600);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.45;
  margin: 18px var(--pad) 0;
}
.project-images {
  display: grid;
  gap: 10px;
  margin: 36px var(--pad) 0;
}
.project-image { display: block; width: 100%; cursor: zoom-in; }
.project-image img { width: 100%; height: auto; background: var(--gray-100); }
.project-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 48px var(--pad) 0;
}
.project-foot .back,
.project-foot .btn { margin: 0; }

/* ── Lightbox (mockup: .lb) ─────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 4vw;
  background: rgba(12,11,7,.94);
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; max-width: 92vw; object-fit: contain; }
.lightbox p { color: #E7E2D5; font-size: .9rem; }
.lightbox button {
  position: absolute;
  color: #fff;
  font: 2rem Arial, sans-serif;
  padding: 16px;
}
.lightbox-close { top: 6px; right: 10px; }
.lightbox-prev { left: 6px; top: 50%; }
.lightbox-next { right: 6px; top: 50%; }

/* ================================================================
   SERVICES — two columns: offer list + "how we work" steps
   (mockup: .svc, .offer, .steps, .svcnote)
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  padding: 32px var(--pad) 90px;
}
.services-heading,
.contact-heading,
.block-contact-form__heading {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  line-height: 1.5;
  margin-bottom: 28px;
}
.services-offer { display: flex; flex-direction: column; height: 100%; }
.services-note {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.services-note p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--black);
}

/* "features" block (the offer list) — plain list, not clickable.
   Icon is rendered as a CSS mask filled with --black, so it's ink-
   colored in light mode and near-white in dark mode, instead of a
   fixed file color. */
.block-features__title { display: none; } /* rendered via .services-heading instead */
.block-features__item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-200);
}
.block-features__item:last-child { border-bottom: 1px solid var(--gray-200); }
.block-features__icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: none;
  background-color: var(--black);
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
  mask: var(--icon-mask) center / contain no-repeat;
}
.block-features__item-title,
.block-timeline__item-title {
  font-size: 1.02rem;
  letter-spacing: normal;
  margin-bottom: 2px;
}
.block-features__item-text,
.block-timeline__text {
  color: var(--gray-600);
  font-size: .96rem;
}

/* "timeline" block (the numbered steps) — the module emits number,
   title and text as siblings, so a two-column grid puts the number in
   its own column with title + text stacked beside it. */
.block-timeline__title { display: none; } /* rendered via .services-heading instead */
.block-timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
}
.block-timeline__item:last-child { border-bottom: 1px solid var(--gray-200); }
.block-timeline__date {
  grid-column: 1;
  grid-row: 1 / span 3;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  color: var(--gray-400);
  padding-top: 3px;
}
.block-timeline__item-title,
.block-timeline__text,
.block-timeline__image { grid-column: 2; }
.block-timeline__image { margin-top: 10px; width: 100%; }

/* ================================================================
   CONTACT — two columns: details + map, form
   (mockup: .contact, .ci, form)
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  padding: 32px var(--pad) 90px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  font-size: 1rem;
}
.contact-item-icon { width: 30px; height: 30px; flex: none; }
.icon-svg { display: block; width: 100%; height: 100%; }
.contact-item-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
/* "map" object module — block-map__* class contract fixed by that
   module; it sets its own inline height/width on the Leaflet container,
   styled here with the site's border treatment. */
.block-map {
  margin-top: 22px;
  border: 1px solid var(--black);
}
.block-map__title { display: none; }
.block-map__map { filter: grayscale(0.4) contrast(1.05); }
/* Drop Leaflet's own "Leaflet |" credit from the map corner. The
   "© OpenStreetMap contributors" credit next to it must stay — the map
   tiles' license requires it. */
.block-map .leaflet-control-attribution a[href*="leafletjs.com"],
.block-map .leaflet-control-attribution span[aria-hidden] { display: none; }
.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}
.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--black);
}
.contact-social a:hover { background: var(--gray-100); }
.contact-social .icon-svg { width: 18px; height: 18px; }

/* "contact-form" object module, site override */
.block-contact-form__label {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 16px 0 6px;
}
.block-contact-form__input,
.block-contact-form__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font: inherit;
  border-radius: 0;
}
.block-contact-form__textarea { min-height: 130px; resize: vertical; }
.block-contact-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 6px;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.block-contact-form__consent input { margin: 4px 3px 3px 4px; }
.block-contact-form__consent a:hover,
.block-contact-form__consent a:focus-visible { text-decoration: underline; }
.block-contact-form__submit { line-height: normal; }

/* ================================================================
   GENERIC TEXT PAGES (legal pages — not in the mockup)
   ================================================================ */
.single-content {
  max-width: 740px;
  padding-top: 56px;
  padding-bottom: 80px;
}
.single-content h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 44px 0 14px;
}
.single-content h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 32px 0 10px;
}
.single-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 14px;
}
.single-content ul {
  margin-bottom: 14px;
}
.single-content ul li {
  padding: 5px 0 5px 18px;
  font-size: 15px;
  color: var(--gray-600);
  position: relative;
  list-style: none;
}
.single-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray-400);
}
.single-content strong { color: var(--black); font-weight: 500; }
.single-content a { text-decoration: underline; text-underline-offset: 2px; }
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-600);
}
.single-content th,
.single-content td {
  padding: 12px 20px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-200);
}
.single-content th:last-child,
.single-content td:last-child { padding-right: 0; }
.single-content th {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom-color: var(--black);
  white-space: nowrap;
}
@media (max-width: 600px) {
  /* Tightened to fit four columns on a phone; a wider table would scroll
     inside its own box instead of pushing the page sideways. */
  .single-content table { display: block; overflow-x: auto; font-size: 13px; }
  .single-content th,
  .single-content td { padding-right: 10px; }
  .single-content th { font-size: 11px; white-space: normal; }
}

/* Generic list */
.generic-list-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.generic-list-item:first-child { border-top: 1px solid var(--gray-200); }
.generic-list-item a { display: block; }
.generic-list-item h2 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}
.generic-list-item p { font-size: 14px; color: var(--gray-600); }

/* ================================================================
   FOOTER (mockup: footer, .r)
   ================================================================ */
.site-footer {
  /* always a dark panel, regardless of light/dark color scheme — same
     fixed-dark treatment as the DSP attribution bar it contains */
  background: var(--panel);
  color: #F4F2EE;
  padding: 56px var(--pad) env(safe-area-inset-bottom, 0px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 32px;
  font-size: .78rem;
  color: #9A9484;
  letter-spacing: .03em;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a:hover { color: #fff; }

/* ================================================================
   DSP ATTRIBUTION (Demján Sándor Program credit bar — "dsp-attribution"
   object module; class contract fixed by that module, styled here.
   Required on every page; not part of the mockup.)
   ================================================================ */
.block-dsp-attribution {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
}
.block-dsp-attribution__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
/* DSP logos sized by width (100-200 px), height follows the artwork */
.block-dsp-attribution__logo { height: auto; max-width: 100%; }
.block-dsp-attribution__logo[src*="demjan"] { width: 120px; height: auto; }
.block-dsp-attribution__logo[src*="neumann"] { width: 190px; height: auto; }
/* Footer is always dark, so always show the dark-background logo variant. */
.block-dsp-attribution__logo--light { display: none; }
.block-dsp-attribution__text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.42);
}
.block-dsp-attribution__text em { font-style: italic; }

/* ================================================================
   COOKIE CONSENT ("gdpr" object module; class contract fixed by that
   module, styled here. Not part of the mockup.)
   ================================================================ */
.block-gdpr {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  /* always a dark panel, regardless of light/dark color scheme — same
     fixed-dark treatment as the footer */
  background: var(--panel);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px var(--pad);
}
.block-gdpr[hidden] { display: none; }
.block-gdpr__text {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0;
}
.block-gdpr__text a { text-decoration: underline; color: #fff; }
.block-gdpr__necessary { margin-top: 12px; }
.block-gdpr__necessary-heading {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 6px;
}
.block-gdpr__necessary-list { font-size: 12px; color: rgba(255,255,255,0.6); }
.block-gdpr__necessary-list li::before { content: '— '; }
.block-gdpr__actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.block-gdpr__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.block-gdpr__btn:hover { border-color: rgba(255,255,255,0.6); }
.block-gdpr__btn--accept {
  background: #fff;
  color: var(--panel);
  border-color: #fff;
}
.block-gdpr__btn--accept:hover { background: var(--gray-200); }
@media (min-width: 576px) {
  .block-gdpr__body { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .block-gdpr__actions { margin-top: 0; flex-shrink: 0; }
}

/* ================================================================
   RESPONSIVE — the mockup's single breakpoint
   ================================================================ */
@media (max-width: 800px) {
  .main-nav   { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .theme-toggle { position: static; transform: none; margin-left: auto; margin-right: 8px; }

  .block-cta-card__cards,
  .about-section,
  .about-section--reversed,
  .services-grid,
  .contact-grid { grid-template-columns: 1fr; }

  /* The mockup keeps these two lines on one row at every width, which
     pushes the longer one past the edge of a phone screen. */
  .block-title__title,
  .block-title__text { white-space: normal; }

  .block-dsp-attribution { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Phones only: the whole page (header, photos, footer included) sits at
   97% of the screen width, with a 1.5% paper-colored strip either side. */
@media (max-width: 600px) {
  body { padding-left: 1.5vw; padding-right: 1.5vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .block-cta-card__image,
  .reference-card img,
  .nav-toggle span { transition: none; }
}
