/* ==========================================================================
   LIVING Partners, s.r.o., r.s.p. — stylesheet
   Scandinavian minimal. Flat surfaces, hairline rules, no gradients.
   Palette: warm industrial neutrals (bone / linen / iron / ink)
            + logo accents used sparingly (cyan #54C7DF, pink #EE377F)
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bone:    #FBFAF8;   /* page ground, warm off-white */
  --linen:   #F1EFEA;   /* alternate section / cards */
  --sand:    #E3DFD7;   /* hairlines, dividers */
  --iron:    #6B6963;   /* secondary text */
  --ink:     #121415;   /* primary text, from logo black */
  --cyan:    #54C7DF;   /* logo accent */
  --pink:    #EE377F;   /* logo accent */

  /* Photo treatment. One lever for every content image on the site.
     Default: a light correcting pass that pulls mixed sources onto the
     palette without draining material colour.
     Full mono, if sources ever become unfixable: --img-saturate: 0
     and raise --img-sepia to about 0.12 so it stays warm on the bone ground. */
  --img-saturate:   0.88;
  --img-contrast:   0.97;
  --img-brightness: 1.01;
  --img-sepia:      0.04;

  --measure: 66ch;
  --wrap:    1180px;
  --gutter:  clamp(1.25rem, 5vw, 4rem);

  --step-6: clamp(2.6rem, 1.4rem + 4.6vw, 4.75rem);
  --step-5: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --step-3: 1.25rem;
  --step-2: 1.0625rem;
  --step-1: 0.9375rem;
  --step-0: 0.8125rem;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* --- Base --------------------------------------------------------------- */
body {
  background: var(--bone);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-2);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-6); letter-spacing: -0.035em; }
h2 { font-size: var(--step-5); }
h3 { font-size: var(--step-4); }
h4 { font-size: var(--step-3); letter-spacing: -0.01em; }

p { text-wrap: pretty; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: var(--gutter); top: 0.75rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--bone);
}

/* --- Layout primitives -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--linen { background: var(--linen); }
.section--ink { background: var(--ink); color: var(--bone); }

.lede { font-size: var(--step-4); line-height: 1.4; font-weight: 400; letter-spacing: -0.015em; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }
.muted { color: var(--iron); }
.section--ink .muted { color: #9A9892; }

/* Eyebrow / section label */
.eyebrow {
  display: block;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iron);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem; height: 1px;
  background: var(--ink);
  vertical-align: 0.28em;
  margin-right: 0.7rem;
}
.section--ink .eyebrow { color: #9A9892; }
.section--ink .eyebrow::before { background: var(--cyan); }

.rule { border: 0; border-top: 1px solid var(--sand); margin: 0; }

/* --- Header ------------------------------------------------------------- */
.masthead {
  border-bottom: 1px solid var(--sand);
  background: var(--bone);
  position: sticky; top: 0; z-index: 50;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand span { position: absolute; left: -9999px; }

.nav ul { display: flex; gap: clamp(1.1rem, 2.5vw, 2.25rem); align-items: center; }
.nav a {
  text-decoration: none;
  font-size: var(--step-1);
  letter-spacing: -0.005em;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--pink); font-weight: 500; }

.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--sand);
  padding: 0.55rem 0.85rem;
  font: inherit; font-size: var(--step-1);
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav__toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bone);
    border-bottom: 1px solid var(--sand);
  }
  .nav[hidden] { display: none; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav li + li { border-top: 1px solid var(--sand); }
  .nav a { display: block; padding-block: 0.95rem; border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom: 0; color: var(--pink); }
}

/* --- Hero --------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 10vw, 8rem) clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 20ch; }
.hero .lede { max-width: 52ch; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Page header for subpages */
.pagehead { padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.pagehead h1 { font-size: var(--step-5); max-width: 24ch; }
.pagehead p { max-width: 58ch; margin-top: 1.25rem; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bone);
  font-size: var(--step-1); font-weight: 500;
  text-decoration: none;
  transition: background 120ms linear, color 120ms linear;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.section--ink .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.section--ink .btn:hover { background: transparent; color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Inline text link */
.link {
  text-decoration: none;
  border-bottom: 1px solid var(--iron);
  padding-bottom: 1px;
}
.link:hover { border-bottom-color: var(--ink); }
.section--ink .link { border-bottom-color: #3A3C3D; }
.section--ink .link:hover { border-bottom-color: var(--cyan); }

/* --- Grids -------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

/* Numbered pillar / feature block */
.pillar { border-top: 1px solid var(--sand); padding-top: 1.5rem; }
.pillar__num {
  display: block;
  font-size: var(--step-0); font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--iron);
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.pillar h3 { font-size: var(--step-3); margin-bottom: 0.55rem; }
.pillar p { font-size: var(--step-1); color: var(--iron); }
.section--ink .pillar { border-top-color: #33352F; }
.section--ink .pillar p, .section--ink .pillar__num { color: #9A9892; }

/* --- Service list ------------------------------------------------------- */
.services { border-top: 1px solid var(--sand); }
.service {
  border-bottom: 1px solid var(--sand);
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  align-items: start;
}
@media (max-width: 760px) {
  .service { grid-template-columns: 3rem minmax(0, 1fr); }
  .service p { grid-column: 2; }
}
.service__num {
  font-size: var(--step-0); font-weight: 600; letter-spacing: 0.1em;
  color: var(--iron); font-variant-numeric: tabular-nums;
  padding-top: 0.45rem;
}
.service h3 { font-size: var(--step-4); }
.service p { font-size: var(--step-1); color: var(--iron); max-width: 46ch; }

/* --- Statute / fact card ------------------------------------------------ */
.statute {
  border: 1px solid var(--sand);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--bone);
}
.statute__mark {
  font-size: var(--step-0); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--sand);
}
.section--ink .statute { border-color: #33352F; background: transparent; }
.section--ink .statute__mark { border-bottom-color: #33352F; }

/* --- Definition list (contact / company data) --------------------------- */
.data { border-top: 1px solid var(--sand); }
.data > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 0.5rem clamp(1rem, 3vw, 2rem);
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--sand);
}
@media (max-width: 560px) { .data > div { grid-template-columns: 1fr; } }
.data dt {
  font-size: var(--step-0); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--iron); padding-top: 0.2rem;
}
.data dd { font-size: var(--step-2); grid-column: 2; }
.data dd + dd { margin-top: 0.15rem; }
@media (max-width: 560px) { .data dd { grid-column: 1; } }

/* --- Figures / images --------------------------------------------------- */
figure { margin: 0; }
figure a { text-decoration: none; }
figure img { width: 100%; object-fit: cover; }

/* Applies to content photography only — never the logo in the header or footer. */
figure img,
.media img {
  filter:
    saturate(var(--img-saturate))
    contrast(var(--img-contrast))
    brightness(var(--img-brightness))
    sepia(var(--img-sepia));
}
figcaption {
  font-size: var(--step-0); color: var(--iron);
  margin-top: 0.75rem; letter-spacing: 0.02em;
}
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* Placeholder shown until real photography is supplied */
.ph {
  background: var(--linen);
  border: 1px solid var(--sand);
  display: grid; place-items: center;
  padding: 1rem;
}
.ph span {
  font-size: var(--step-0); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--iron); text-align: center;
}

/* --- Quote / statement -------------------------------------------------- */
.statement {
  font-size: var(--step-5);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 34ch;
}

/* --- Footer ------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--sand);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  font-size: var(--step-1);
}
.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: start;
}
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: auto; }
}
.footer img { height: 38px; width: auto; }
.footer h4 {
  font-size: var(--step-0); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--iron); margin-bottom: 1rem;
}
.footer li + li { margin-top: 0.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { border-bottom: 1px solid var(--ink); }
.footer__base {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: var(--step-0); color: var(--iron);
  letter-spacing: 0.02em;
}

/* Two-tone accent bar echoing the logo — the only decorative element */
.accentbar { display: flex; height: 3px; }
.accentbar i { flex: 1; }
.accentbar i:first-child { background: var(--pink); }
.accentbar i:last-child  { background: var(--cyan); }

@media print {
  .masthead, .nav, .btn-row { display: none; }
  body { background: #fff; }
}

/* Compact variant used on the home page (titles only, no descriptions) */
.services--compact .service { grid-template-columns: 4.5rem minmax(0, 1fr); }
@media (max-width: 760px) { .services--compact .service { grid-template-columns: 3rem minmax(0, 1fr); } }

/* Footer links stay quiet until hovered */
.footer .link { border-bottom-color: transparent; }
.footer .link:hover { border-bottom-color: var(--ink); }

/* --- Map ---------------------------------------------------------------- */
/* OpenStreetMap embed: no API key, no cookies, no consent banner. Desaturated
   to sit inside the palette; full colour returns on hover/focus so the map
   stays readable when someone actually uses it. */
.map__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--sand);
  background: var(--linen);
  filter: grayscale(1) contrast(0.92);
  transition: filter 160ms linear;
}
.map:hover .map__frame,
.map__frame:focus-within,
.map__frame:focus { filter: none; }

@media (max-width: 700px) { .map__frame { aspect-ratio: 4 / 3; } }

.map__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  margin-top: 0.9rem;
  font-size: var(--step-1);
}
.map__links { display: flex; gap: 1.25rem; }
.map__links a { text-decoration: none; }

.map__attrib { margin-top: 0.5rem; font-size: var(--step-0); color: var(--iron); }
.map__attrib a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .map__frame { transition: none; } }
