/* HELP reality Brno s.r.o. – kolo 2, varianta 3 „Linie“ */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #222978;
  --navy-deep: #191f5e;
  --ink: #1d1f2b;
  --muted: #5a5d6d;
  --ground: #ffffff;
  --band: #f3f4f8;
  --band-2: #e7e9f2;

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --fs-name: clamp(2rem, .9rem + 4.6vw, 5.25rem);
  --fs-h2: clamp(1.75rem, 1.15rem + 2vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-lead: clamp(1.25rem, 1.05rem + .7vw, 1.625rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --section: clamp(64px, 3rem + 5vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.65; font-weight: 450; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--navy); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
address { font-style: normal; }
button { font: inherit; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--navy); color: #fff; padding: 12px 18px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.03em; font-weight: 750; color: var(--navy); text-wrap: balance; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.015em; font-weight: 700; color: var(--navy); }
p { text-wrap: pretty; }

/* Hlavička */
.masthead { padding-top: 18px; overflow: hidden; }
.nav { display: flex; justify-content: flex-end; }
.nav ul { display: flex; flex-wrap: wrap; gap: 2px 28px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9375rem; padding-block: 8px; display: inline-block; transition: color .2s; }
.nav a:hover { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; }
.brand { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 56px); margin-top: clamp(16px, 3vw, 40px); }
.brand__logo { width: clamp(100px, 4rem + 9vw, 210px); flex: none; animation: rise .8s var(--ease) both; }
.brand__name { font-size: var(--fs-name); line-height: 1; letter-spacing: -.045em; font-weight: 800; color: var(--navy); animation: rise .8s var(--ease) both .1s; }
.brand__motto { margin-top: clamp(10px, 1.3vw, 18px); font-size: clamp(1.0625rem, .9rem + 1vw, 1.875rem); line-height: 1.25; color: var(--muted); font-weight: 500; letter-spacing: -.01em; animation: rise .8s var(--ease) both .2s; }

/* Pruhy z loga: tenký, silný, silný, tenký – vysunou se zleva do pravého okraje */
.stripes { margin-top: clamp(32px, 4vw, 56px); margin-left: max(var(--gutter), calc((100% - var(--max)) / 2)); display: grid; gap: 5px; }
.stripes span { display: block; background: var(--navy); border-radius: 4px 0 0 4px; transform-origin: left center; animation: draw 1.2s var(--ease) both; }
.stripes span:nth-child(1) { height: 2px; animation-delay: .25s; }
.stripes span:nth-child(2) { height: 9px; animation-delay: .32s; }
.stripes span:nth-child(3) { height: 9px; animation-delay: .39s; }
.stripes span:nth-child(4) { height: 2px; animation-delay: .46s; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Rozvržení: vizitka vlevo zůstává na místě, obsah vpravo */
.layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 104px); padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
.aside__sticky { position: sticky; top: 32px; }
.card {
  background: #fff; border-radius: 12px; padding: clamp(22px, 2.2vw, 30px);
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 1px 2px rgba(25, 31, 94, .07), 0 24px 48px -24px rgba(25, 31, 94, .32);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  font-size: .9375rem;
}
.card.is-tilting { transition: transform .12s linear; }
.aside { perspective: 1200px; }
.card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.card__logo { width: 96px; }
.card__firm { font-weight: 800; color: var(--navy); font-size: 1.25em; line-height: 1.2; letter-spacing: -.02em; }
.card__motto { color: var(--muted); font-size: .95em; margin-top: 2px; }
.card__people { display: grid; gap: 12px; padding-top: 18px; box-shadow: inset 0 2px 0 var(--band-2); }
.card__people li { display: grid; }
.card__who { font-weight: 700; }
.card__people a { font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; padding-block: 2px; justify-self: start; }
.card__people a:hover, .card__foot a:hover { text-decoration: underline; }
.card__foot { display: grid; gap: 2px; color: var(--muted); }
.card__foot a { text-decoration: none; font-weight: 600; padding-block: 2px; justify-self: start; }

.intro__text { font-size: var(--fs-lead); line-height: 1.5; font-weight: 500; letter-spacing: -.01em; max-width: 36ch; }

.services { margin-top: var(--section); }
.services__intro p { margin-top: 18px; max-width: 60ch; }
.services__list { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.services__list > div { background: var(--band); border-radius: 10px; padding: clamp(22px, 2.2vw, 30px); position: relative; overflow: hidden; transition: background-color .25s; }
.services__list > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--navy); transform: scaleY(.35); transform-origin: top; transition: transform .4s var(--ease); }
.services__list > div:hover { background: var(--band-2); }
.services__list > div:hover::before { transform: scaleY(1); }
.services__list dt { font-size: var(--fs-h3); font-weight: 700; color: var(--navy); line-height: 1.25; letter-spacing: -.015em; }
.services__list dd { margin-top: 10px; }

.people { margin-top: var(--section); }
.people__grid { display: grid; gap: clamp(28px, 3vw, 40px); margin-top: clamp(28px, 3vw, 48px); }
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; padding-top: 28px; box-shadow: inset 0 2px 0 var(--band-2); }
.person h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); letter-spacing: -.03em; }
.person__role { grid-column: 1; color: var(--muted); font-size: var(--fs-small); }
.person__quote { grid-column: 2; grid-row: 1 / span 3; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.55; font-weight: 500; }
.person__note { grid-column: 1; color: var(--muted); font-size: var(--fs-small); }

/* Kontakt */
.contact { background: var(--band); padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.contact__photo img { border-radius: 10px; width: 100%; }
.contact__photo figcaption { margin-top: 10px; color: var(--muted); font-size: var(--fs-small); }
.contact__addr { margin-top: 24px; font-size: 1.25rem; line-height: 1.45; }
.contact__addr strong { font-weight: 800; color: var(--navy); }
.contact__maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.contact__maps a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; transition: background-color .2s; }
.contact__maps a:hover { background: var(--band-2); }
.contact__lines { margin-top: 32px; display: grid; gap: 20px; }
.contact__lines dt, .contact__firm dt { color: var(--muted); font-size: var(--fs-small); }
.contact__lines dd { font-size: 1.1875rem; font-weight: 700; }
.contact__lines dd a { text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__lines dd a:hover { text-decoration: underline; }
.copy { margin-left: 8px; vertical-align: middle; border: 0; background: #fff; color: var(--ink); cursor: pointer; font-size: var(--fs-small); font-weight: 700; min-height: 34px; padding: 0 12px; border-radius: 6px; transition: background-color .2s; }
.copy:hover { background: var(--band-2); }
.copy__status { display: block; min-height: 1.4em; font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.contact__hint { margin-top: 16px; max-width: 42ch; }
.contact__hint a { font-weight: 700; }
.contact__firm { margin-top: 32px; display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; font-size: var(--fs-small); }
.contact__firm .wide { grid-column: 1 / -1; }

/* Patička */
.foot { padding-block: 40px; }
.foot__in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-small); }
.foot__logo { width: 64px; }
.foot strong { color: var(--navy); font-size: 1.0625rem; font-weight: 800; }
.foot__top { margin-left: auto; }
.foot__top a { display: inline-block; padding-block: 10px; font-weight: 700; }

/* Pohyb */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.motion .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand__logo, .brand__name, .brand__motto, .stripes span { animation: none; }
  .motion .reveal { transform: none; transition: opacity .3s linear; transition-delay: 0ms; }
  .card, .services__list > div::before { transition: none; }
}

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { order: 2; }
  .aside__sticky { position: static; max-width: 460px; }
  .card__head { flex-direction: row; align-items: center; }
  .card__logo { width: 76px; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__body { order: -1; }
}
@media (max-width: 640px) {
  .nav { justify-content: flex-start; }
  .nav ul { gap: 2px 18px; }
  .brand { gap: 16px; }
  .services__list { grid-template-columns: minmax(0, 1fr); }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person__quote { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .contact__firm { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .copy { margin: 8px 0 0; }
  .foot__top { margin-left: 0; width: 100%; }
}

/* mobil: logo nad názvem, aby byl název co největší */
@media (max-width: 520px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 20px; }
  .brand__logo { width: 132px; }
  .brand__name { font-size: clamp(2.25rem, 9.6vw, 2.75rem); }
}

@media print {
  .nav, .copy, .copy__status, .skip, .contact__maps, .foot__top, .contact__hint a, .stripes { display: none !important; }
  :root { --section: 28px; }
  body { font-size: 11pt; }
  .brand__logo, .brand__name, .brand__motto { animation: none; }
  .layout { display: block; }
  .aside__sticky { position: static; margin-top: 24px; max-width: 10cm; }
  .card { box-shadow: none; border: 1px solid #bbb; transform: none; }
  .contact { background: none; }
  .contact__grid { display: block; }
  .services__list > div { background: none; }
  .services__list > div, .person, .contact__photo, .card { break-inside: avoid; }
  .contact__photo { margin-top: 20px; max-width: 12cm; }
  .motion .reveal { opacity: 1; transform: none; transition: none; }
  h2, h3 { break-after: avoid; }
}
