/*
 * SpravceDomu.com – profesionální předseda SVJ v Praze
 * Jeden soubor stylů bez frameworku, systémová písma (žádné stahování fontů).
 * Tón: důvěra a odpovědnost – tmavě modrá, mosazné akcenty, patkové nadpisy.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  --navy: #13283f;
  --navy-2: #1c3653;
  --navy-3: #0d1c2d;
  --ink: #18212b;
  --ink-soft: #3d4855;
  --muted: #586370;
  --line: #ddd6c9;
  --paper: #ffffff;
  --sand: #f5f0e7;
  --brass: #b08443;
  --brass-text: #85612a;
  --brass-light: #e1c48d;
  --ok: #1e6a44;
  --error: #b3261e;
  --focus: #2563c9;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;

  color-scheme: light;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--brass-text); }

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

address { font-style: normal; }
figure { margin: 0; }

code {
  font-size: 0.9em;
  background: var(--sand);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--navy);
}
.skip-link:focus { left: 0.75rem; }

/* tmavé plochy: světlejší fokus a odkazy */
.site-header, .hero, .statement, .site-footer { --focus: #f2c46d; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand { flex-shrink: 0; margin-right: auto; }
.brand img { width: 150px; }

.site-nav {
  display: none;
  gap: clamp(1rem, 1.8vw, 1.75rem);
  font-size: 0.9375rem;
}

.site-nav a,
.mobile-nav a {
  color: rgb(255 255 255 / 0.86);
  text-decoration: none;
}
.site-nav a:hover,
.mobile-nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brass-light); }

.site-header__phone {
  display: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--navy); background: #fff; }

.mobile-nav summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::before {
  content: "";
  width: 1rem;
  height: 0.7rem;
  background:
    linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}
.mobile-nav[open] summary { background: #fff; color: var(--navy); }

.mobile-nav nav {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  display: grid;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: var(--navy);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.5);
}
.mobile-nav nav a {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  font-size: 1.0625rem;
}
.mobile-nav nav a:last-child { border-bottom: 0; font-weight: 650; color: var(--brass-light); }

@media (min-width: 40rem) {
  .site-header__phone { display: inline-block; }
  .brand img { width: 180px; }
}

@media (min-width: 66rem) {
  .site-nav { display: flex; }
  .mobile-nav { display: none; }
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

.button--light { background: #fff; border-color: #fff; color: var(--navy); }
.button--light:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--navy); }

.button--ghost { background: transparent; border-color: rgb(255 255 255 / 0.5); color: #fff; }
.button--ghost:hover { background: rgb(255 255 255 / 0.1); border-color: #fff; color: #fff; }

/* ------------------------------------------------------------------ hero */

.hero {
  padding-block: clamp(2.75rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem);
  background: var(--navy);
  color: #fff;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); }
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--brass-light);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.3rem + 4vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 52ch;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
}
.hero .lead { color: rgb(255 255 255 / 0.84); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* fotka s mosazným rámečkem posunutým o kousek vedle */
.hero__photo {
  position: relative;
  margin: 0 14px 14px 0;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--brass);
  pointer-events: none;
}
.hero__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 28% 50%;
}

@media (min-width: 64rem) {
  .hero__photo img { aspect-ratio: 5 / 4; }
}

/* ----------------------------------------------------------------- trust */

.trust {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-block: 0;
  padding: 1.75rem 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.trust__list li {
  padding-left: 0.9rem;
  border-left: 2px solid var(--brass);
}

.trust__list strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

@media (min-width: 56rem) {
  .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------- sections */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sand { background: var(--sand); }

.kicker {
  margin-bottom: 0.75rem;
  color: var(--brass-text);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section__title {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem);
  font-weight: 600;
}

.muted { color: var(--muted); }

.link-arrow {
  color: var(--navy);
  font-weight: 650;
}
.link-arrow::after { content: " →"; }

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .split__intro { position: sticky; top: 6.5rem; }
  .split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}

/* služba – tři body */
.features { display: grid; gap: 0; }

.feature {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.feature:first-child { border-top: 2px solid var(--navy); }

.feature h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 1.2rem;
}
.feature p { color: var(--ink-soft); }

/* proč my – karty */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
}
.card h3 {
  margin-bottom: 0.6rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.card p { color: var(--ink-soft); }

/* povinnosti – číslovaný seznam */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: krok;
}

.steps li {
  position: relative;
  padding: 1.1rem 0 1.1rem 3.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  counter-increment: krok;
}
.steps li:first-child { border-top: 2px solid var(--navy); }

.steps li::before {
  content: counter(krok);
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
}

.split__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* reference – galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
}

.gallery li {
  overflow: hidden;
  border-radius: 2px;
  background: var(--sand);
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  /* fotky z telefonu mají v dolních rozích datum/značku – ořez a mírné
     přiblížení (víc odspodu) je skryjí */
  object-position: 50% 15%;
  transform: scale(1.1);
  transform-origin: 50% 25%;
}

/* shrnutí */
.statement {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.statement__inner { max-width: 50rem; }

.statement__quote {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.statement__sub {
  margin-bottom: 2rem;
  color: var(--brass-light);
  font-size: 1.125rem;
}

/* časté dotazy */
.faq { border-top: 2px solid var(--navy); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.95rem;
  color: var(--brass);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--brass-text); }

.faq__item p {
  margin: -0.25rem 0 1.25rem;
  max-width: 62ch;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- contact */

.contact {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: start;
  }
}

.people {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.people li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
}

.people__name { color: var(--muted); font-size: 0.9375rem; }

.people__phone {
  color: var(--navy);
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.55rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.contact__list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.contact__list dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact__list dd { margin: 0.25rem 0 0; }
.contact__list address { margin-bottom: 0.35rem; }

/* ------------------------------------------------------------------ form */

.form {
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form__title {
  margin-bottom: 1.5rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.form__row { display: grid; gap: 0 1rem; }

@media (min-width: 36rem) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 650;
}

.field__optional { color: var(--muted); font-weight: 400; }

.field__hint {
  margin: -0.15rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #8a8f96;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 9.5rem;
  line-height: 1.5;
  resize: vertical;
}

.field--question input { max-width: 9rem; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  border-color: var(--focus);
}

.field--error input,
.field--error textarea { border: 2px solid var(--error); }

.field__error {
  margin: 0.4rem 0 0;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 650;
}

.form__note {
  margin: 0.25rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* past na roboty – pro lidi neviditelná */
.form__trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--navy);
  background: #fff;
}
.notice--error { border-color: var(--error); background: #fdf3f2; }
.notice--ok {
  border: 1px solid var(--line);
  border-left: 4px solid var(--ok);
  padding: 1.5rem;
}
.notice__title { margin-bottom: 0.35rem; font-weight: 700; }
.notice ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.notice li + li { margin-top: 0.25rem; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-block: 3rem;
  background: var(--navy-3);
  color: rgb(255 255 255 / 0.72);
  font-size: 0.875rem;
}

.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brass-light); }
.site-footer strong { color: #fff; font-weight: 650; }

.site-footer__inner { display: grid; gap: 1.75rem; }

.site-footer__logo { width: 160px; margin-bottom: 0.6rem; }

.site-footer__company { max-width: 62ch; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__copy {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

@media (min-width: 56rem) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .site-footer__links { grid-column: 2; }
  .site-footer__copy { grid-column: 1 / -1; }
}

/* ----------------------------------------------------- privacy / prose */

.prose { max-width: 70ch; }
.prose h1 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 600;
}
.prose .lead { margin: 1rem 0 2rem; color: var(--ink-soft); }
.prose h2 { margin: 2.25rem 0 0.75rem; color: var(--navy); font-size: 1.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.5rem; }
.prose__updated { margin-top: 2.5rem; color: var(--muted); font-size: 0.875rem; }

/* ---------------------------------------------------------------- 404 */

.not-found h1 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 600;
}
.not-found .lead { margin-bottom: 2rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- print */

@media print {
  .site-header, .hero__actions, .contact__form, .skip-link, .statement { display: none !important; }
  .hero { background: none; color: var(--ink); }
}
