@charset "UTF-8";
/* ==========================================================================
   Advokátní kancelář HOLUB - site styles
   Hand-written replacement for the WordPress/Elementor stylesheet stack.
   Every value here was measured from the original rendering, so the visual
   result is meant to be identical; only the code behind it is new.
   ========================================================================== */

/* --- fonts ---------------------------------------------------------------
   Roboto is shipped as the same variable woff2 files the original loaded, so
   glyph outlines and metrics match exactly. The two icon fonts are the
   original font files; only the CSS around them is new (10 zmdi + 2
   FontAwesome glyphs are used, instead of ~1700).
   ------------------------------------------------------------------------ */
/* @font-face rules live in _fonts.css, linked before this file. */

/* --- tokens ------------------------------------------------------------- */
:root {
  --ink: #777;                 /* body copy */
  --ink-light: #e3e3e3;        /* copy on dark backgrounds */
  --navy: #171728;             /* headings on light, widget title bg */
  --dark: #1c1c23;            /* dark section background */
  --darker: #15151b;          /* page header + footer bottom */
  --grey: #333;               /* footer top, team band */
  --gold: #714b00;            /* primary accent: section titles, menu */
  --gold-hover: #074b82;      /* menu hover */
  --sand: #b2a495;           /* sub-headings, footer links, rules */
  --sand-2: #ccbd99;         /* service page headings and lists */
  --teal: #00729e;           /* service tiles */
  --meta: #999;              /* post meta */
  --hairline: #2c2c33;       /* rules inside dark cards */
  --border: #e3e3e3;         /* light borders */
  --shell: 1200px;           /* main content container */
  --band: 1170px;            /* section container */
  --ease: 0.3s;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 15px/24px Roboto, Arial, Helvetica, sans-serif;
  text-align: left;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

a { color: #fff; text-decoration: none; transition: color var(--ease); }

p { margin: 0 0 15px; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
/* The theme sets bold text to the medium weight, not to the browser's 700.
   At 700 the glyphs are wider and long bold runs wrap a word earlier. */
strong, b { font-weight: 500; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Off-screen until focused: helps keyboard users, invisible otherwise. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- icons -------------------------------------------------------------
   Only the glyphs the site actually shows.
   ---------------------------------------------------------------------- */
.i {
  display: inline-block;
  font: normal normal normal 1em/1 zmdi;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.i-check::before        { content: "\f269"; }
.i-dot::before          { content: "\f26f"; }
.i-linkedin::before     { content: "\f3f8"; }
.i-long-left::before    { content: "\f2ff"; }
.i-long-right::before   { content: "\f301"; }
.i-long-up::before      { content: "\f303"; }

.i-fa { font-family: fa; }
.i-fa.i-linkedin::before    { content: "\f0e1"; }
.i-fa.i-long-right::before  { content: "\f178"; }

/* --- layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}
@media (min-width: 1200px) {
  .wrap { max-width: var(--shell); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 999;
}

.site-header__bar {
  position: relative;
  transition: var(--ease) cubic-bezier(0.39, 0.575, 0.565, 1);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  max-width: 1230px;
  height: 110px;
}
@media (min-width: 1200px) {
  .site-header .wrap { padding: 0 30px; }
}

.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { max-height: 80px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; }

.nav__list { display: flex; align-items: center; list-style: none; }

.nav__item { position: relative; margin: 0 25px; }
.nav__item:last-child { margin-right: 0; }

.nav__link {
  display: block;
  font: 400 20px/100px Roboto, Arial, Helvetica, sans-serif;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
  transition: var(--ease) linear;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--gold-hover); }

/* 5.61px is the width of the stray trailing space the original markup left
   inside this link; matching it keeps the whole menu horizontally aligned. */
.nav__icon { margin-right: 5.61px; }

.nav-toggle { display: none; }

/* Sticky header: the bar detaches and turns solid once the page scrolls. */
.site-header.is-stuck { position: fixed; }
.site-header.is-stuck .site-header__bar {
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

/* Inner pages keep the header absolutely positioned over the page header, but
   paint the bar white - which is what the child theme did for posts,
   archives, attorney and service pages. */
.site-header--solid .site-header__bar { background: #fff; }

@media (max-width: 991px) {
  .site-header,
  .site-header.is-stuck { position: relative; }
  .site-header__bar {
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  }
  .site-header .wrap { height: 80px; }
  /* The original keeps the logo at its full 80px box below this width - the
     5px padding is inside it, so the artwork is 70px tall in an 80px bar. */
  .brand img { max-height: 80px; padding: 5px 0; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    visibility: hidden;
    opacity: 0;
    z-index: -1;
    transition: var(--ease) linear;
  }
  .nav.is-open { visibility: visible; opacity: 1; z-index: 998; }

  .nav__list { display: block; }
  .nav__item { margin: 0 17px; }
  .nav__link {
    padding: 10px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 28.8px;
    transition: var(--ease);
  }

  .nav-toggle {
    display: block;
    position: relative;
    width: 30px;
    height: 32px;
    margin-left: auto;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
    color: #282828;
    transition: var(--ease) linear;
  }
  .nav-toggle__bar,
  .nav-toggle__bar::before,
  .nav-toggle__bar::after {
    position: absolute;
    left: 4px;
    width: 22px;
    height: 2px;
    background: #282828;
    transition: var(--ease) linear;
  }
  .nav-toggle__bar { top: 15px; }
  .nav-toggle__bar::before { content: ""; left: 0; top: -7px; }
  .nav-toggle__bar::after { content: ""; left: 0; top: 7px; }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .nav__item { margin: 0 17px; }
  .nav__link { font-size: 18px; font-weight: 700; letter-spacing: 0.54px; }
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-head {
  position: relative;
  padding: 144px 0 132px;
  background: var(--darker);
  text-align: center;
}
.page-head--tight { padding-bottom: 42px; }

.page-head__title {
  position: relative;
  z-index: 99;
  margin: 0 0 18px;
  font-size: 50px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 1px 1px 0 var(--dark);
}
/* One attorney profile was given capitals in the original's page builder and
   the other four were not, so the class is set per page, not per template. */
.page-head__title--caps { text-transform: uppercase; }

/* ==========================================================================
   Section headings
   ========================================================================== */
.sect-head { margin: 0; }
.sect-head--center { text-align: center; }

.sect-head__sub {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
  line-height: 27.2px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--sand);
}

.sect-head__title {
  margin: 19px 0 16px;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 2.4px;
  color: var(--gold);
}
.sect-head--on-dark .sect-head__title { color: #fff; margin: 0; }
.sect-head__title a { transition: color var(--ease); }

@media (max-width: 575px) {
  .sect-head__title { font-size: 30px; letter-spacing: 1.8px; }
}

/* Short rule under a heading (Elementor's divider widget). */
.rule {
  display: flex;
  padding: 2px 0;
}
.rule::before {
  content: "";
  width: 62px;
  border-top: 2px solid var(--sand);
}

/* ==========================================================================
   Home - hero with the service tiles
   ========================================================================== */
.hero {
  position: relative;
  background: var(--dark) url(../img/2020/09/hp-image4-1.jpg) 50% 0 no-repeat;
}

/* The vertical rhythm below mirrors the original's spacer widgets and section
   margins: 130px lead-in, 43px between the heading and each tile row, and a
   180px tail. */
.hero__inner {
  max-width: var(--band);
  margin: 0 auto;
  padding: 140px 0 10px;            /* 130px lead-in spacer + 10px column pad */
}

/* The heading's trailing gap is a 3% margin in the original, so it scales with
   the container. Kept as padding here so it cannot collapse into the tiles'
   top margin; the extra 10px is the column padding that followed it. */
.hero__head { padding: 5px 0 calc(3% + 15px); }
.hero__head .sect-head__title { margin: 19px 0 16px; }

.tiles {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 43px -10px 0;
  padding: 0;
}

.tile { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 10px; }
.tile:nth-child(n+4) { margin-top: 43px; }

.tile__link {
  display: block;
  margin: 0 5px;
  padding: 10px;
  background: var(--teal);
  border-radius: 5px;
  text-align: center;
  text-transform: uppercase;
  transition: background var(--ease);
}
.tile__link:hover { background: #fff; }

.tile__title {
  font: 600 20px/24px Roboto, sans-serif;
  letter-spacing: 0.6px;
  color: #fff;
  transition: color var(--ease);
}
.tile__link:hover .tile__title { color: var(--gold); }

.hero__spacer { height: 180px; margin-top: 10px; }

@media (max-width: 1024px) {
  .hero__inner { padding-top: 190px; }   /* the lead-in spacer grows to 180px */
  .tiles { padding: 0 10px; }
}

@media (max-width: 767px) {
  .hero__inner { padding-top: 55px; }    /* and shrinks to 45px on phones */
  .tiles { margin: 43px 0 0; padding: 0 10px; }
  .tile { flex-basis: 100%; max-width: 100%; padding: 10px 0; }
  .tile:nth-child(n+4) { margin-top: 0; }
  .hero__spacer { height: 45px; margin: 10px 10px 0; }
}

/* ==========================================================================
   Home - about
   ========================================================================== */
.about {
  position: relative;
  /* 5px, not 15px: the flex row below bleeds 10px past the 1170 container,
     exactly as Elementor's negative row margin did. */
  padding: 94px 5px 132px;
  background: var(--dark);
}

.about__inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1190px;
  margin: 0 auto;
}

.about__media { flex: 0 0 36%; max-width: 36%; padding: 16px 25px 0 32px; }
.about__media img { box-shadow: -22px 22px 0 0 #fff; }

.about__body { flex: 0 0 64%; max-width: 64%; padding: 10px 0 0 45px; }

.about .rule { margin-top: 20px; }

/* flow-root keeps the last paragraph's bottom margin inside the block, which
   is what the Elementor widget box did. */
.about__text { display: flow-root; margin: 33px 0 0; color: var(--ink-light); }

.facts { display: flex; flex-wrap: wrap; margin: 15px -10px 0; }

.fact { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 10px; }

/* inline-block, as the original: it leaves the same 2px of descender
   space under the block, which the section height depends on */
.fact__inner { display: inline-block; width: 100%; }

.fact__top { display: flex; align-items: center; height: 42px; }

.fact__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-right: 8px;
  color: var(--sand);
}
.fact__icon svg { width: 42px; height: 42px; fill: currentColor; }

/* The original animates a number here, but the theme hides it; the empty box
   still contributes its 3px of height, so it is kept. */
.fact__value { display: block; height: 3px; }

.fact__title { margin: 6px 0 0; font-size: 20px; line-height: 24px; color: var(--ink-light); }

@media (max-width: 767px) {
  .about { padding-left: 5px; padding-right: 5px; }
  .about__media,
  .about__body { flex-basis: 100%; max-width: 100%; }
  .about__media { padding: 16px 25px 50px 32px; }
  .about__body { padding: 10px 0 0 15px; }
  .fact { flex-basis: 100%; max-width: 100%; }
  .fact:not(:last-child) { padding-bottom: 40px; }
}

/* ==========================================================================
   Home - team band + people carousel
   ========================================================================== */
.team-head {
  position: relative;
  padding: 70px 15px;
  background: var(--grey);
}
.team-head__inner { max-width: var(--band); margin: 0 auto; }
.team-head .sect-head__title { margin: 0; }
.team-head .rule { margin-top: 20px; }

/* 20px lead-in, the carousel, then the theme's full-width hairline. */
.people-band { background: var(--dark); padding-top: 20px; }

.people { position: relative; }

.people-band .rule--full {
  display: flex;
  margin-top: 20px;
  padding: 15px 0;
}
.people-band .rule--full::before {
  content: "";
  width: 100%;
  border-top: 1px solid var(--grey);
}

.person { position: relative; }

.person__photo { display: block; width: 100%; }

/* Hover card over the portrait. */
.person__card {
  position: absolute;
  inset: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.35s;
}
.person:hover .person__card,
.person:focus-within .person__card { visibility: visible; opacity: 1; }

.person__card-inner { margin: -20px 0 0; padding: 0 10px; }

.person__name {
  margin: 0 0 2px;
  font-size: 25px;
  line-height: 30px;
  letter-spacing: 0.75px;
  color: #fff;
  text-decoration: underline;
}

.person__role {
  margin: 20px 0 35px;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
}

.person__bio { margin: 0; color: #fff; }
@media (min-width: 1026px) and (max-width: 1484px) {
  .person__bio { display: none; }
}

/* ==========================================================================
   Home - news carousel
   ========================================================================== */
.news {
  position: relative;
  padding: 70px 15px 68px;
  background: var(--dark);
}
.news__inner { max-width: var(--band); margin: 0 auto; padding: 10px 0; }

/* The heading sits in the left half of the row, as it did in the original. */
.news__head { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.news__head-col { flex: 0 0 50%; max-width: 50%; padding: 10px; }
.news__head .sect-head__title { margin: 0; }
.news__head .rule { margin-top: 20px; }

/* The track bleeds 15px past the container so the 30px gutter between cards
   lines the outer cards up with the container edge. */
.news__carousel { margin: 45px -15px 0; }

.news__more { margin-top: 10px; padding-top: 37px; text-align: center; }
.news__more .sect-head__title { margin: 0; }

.card { padding: 15px; }

.card__media { display: block; overflow: hidden; }
.card__media img { display: block; width: 100%; transition: transform 1s; }
.card:hover .card__media img { transform: scale(1.06); }

/* 16px tail reproduces the (hidden) read-more block's reserved space. */
.card__body { padding: 20px 0 16px; }

.card__title {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.6px;
  color: #fff;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 15px;
  padding: 6px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  list-style: none;
  font-size: 13px;
  line-height: 20.8px;
  color: var(--meta);
}
/* The glyphs are pseudo-elements with no extra spacing, exactly as the theme
   drew them - an added margin would push the row onto two lines on mobile. */
.card__date { margin-right: 25px; }
.card__date::before,
.card__cats::before {
  font: normal normal normal 1em/1 fa;
  font-size: inherit;
  color: var(--sand);
  -webkit-font-smoothing: antialiased;
}
.card__date::before { content: "\f073"; }
.card__cats::before { content: "\f07b"; }
.card__meta a { color: var(--meta); }
.card__meta a:hover { color: var(--sand); }

.card__excerpt { margin: 0; color: var(--ink-light); }

@media (max-width: 767px) {
  .news__head-col { flex-basis: 100%; max-width: 100%; }
}

/* ==========================================================================
   Carousels (replacing slick - same geometry, no jQuery)
   ========================================================================== */
.carousel { position: relative; overflow: hidden; }
.carousel__track {
  display: flex;
  will-change: transform;
  transition: transform 0.5s ease;
}
.carousel__track.is-instant { transition: none; }
.carousel__slide { flex: 0 0 auto; align-self: flex-start; }

/* people: 5 across, full-bleed */
.people .carousel__slide { width: 20%; }
@media (max-width: 1024px) { .people .carousel__slide { width: 50%; } }
@media (max-width: 767px)  { .people .carousel__slide { width: 100%; } }

/* news: 3 across, inside the 1170 band */
.news .carousel__slide { width: 33.3333%; }
@media (max-width: 1024px) { .news .carousel__slide { width: 50%; } }
@media (max-width: 767px)  { .news .carousel__slide { width: 100%; } }

/* ==========================================================================
   Service pages
   ========================================================================== */
.svc {
  position: relative;
  padding: 0 15px;
  background: var(--dark);
}
.svc__inner {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--band);
  margin: 0 auto;
}
.svc__col { flex: 0 0 50%; max-width: 50%; }
/* The two columns carry different padding in the original layout. */
.svc__col:first-child { padding: 70px 20px 50px 0; }
.svc__col:last-child { padding: 90px 0 0; }

.svc__heading {
  margin: 0;
  font-family: Roboto, sans-serif;
  font-weight: 600;
  color: var(--sand-2);
}
/* The pages use h3 for section headings and h4 for the longer lead lines. */
h3.svc__heading { font-size: 25px; line-height: 25px; }
h4.svc__heading { font-size: 20px; line-height: 20px; }
/* 14px below the heading, 32px before the next block. */
.svc__col .checklist { margin: 14px 0 32px; }

/* The original builds the right-hand column from widgets that each carry a
   20px bottom margin - the left-hand column's do not, and the last widget in
   a column never does. Only /obcane/ stacks enough of them for it to show. */
.svc__col:last-child .svc__spacer:not(:last-child) { margin-bottom: 20px; }
.svc__col:last-child .checklist { margin-top: 34px; }
.svc__col:last-child .checklist:not(:last-child) { margin-bottom: 52px; }

.svc__figure { margin: 0; text-align: center; }
.svc__figure:not(:last-child) { margin-bottom: 20px; }
.svc__figure img { display: inline-block; }

.svc__spacer { height: 23px; }

/* Below the desktop breakpoint the first column takes the tighter padding. */
@media (max-width: 1024px) {
  .svc__col:first-child { padding: 31px 15px; }
}

@media (max-width: 767px) {
  .svc__col:first-child { flex-basis: 100%; max-width: 100%; }

  /* The original hides the second column below this width, which loses real
     content on a phone. The mobile section at the end of this file shows it
     again; the rule is kept so the cascade there is explicit. */
  .svc__col:last-child { display: none; }
}

/* Checklist with the zmdi check icon, as the Elementor icon-list rendered. */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  padding: 0 0 4px;
  font-size: 17px;
  line-height: 27.2px;
}
.checklist li + li { margin-top: 4px; }
.checklist li:last-child { padding-bottom: 0; }
.checklist .i {
  flex: 0 0 auto;
  width: 18.8px;
  margin-top: 6px;
  font-size: 15px;
  line-height: 15px;
  color: var(--sand-2);
}
.checklist__text {
  padding-left: 5px;
  font-family: Roboto, sans-serif;
  color: var(--sand-2);
}

/* ==========================================================================
   Attorney detail
   ========================================================================== */
.att { display: flex; flex-wrap: wrap; margin: 0 -15px; }

.att__aside { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 15px; }
.att__main  { flex: 0 0 66.6667%; max-width: 66.6667%; padding: 0 15px; }

.att__photo { margin: 0 0 28px; }
.att__photo img { display: block; width: 100%; border-radius: 5px; }

.att__facts { list-style: none; margin: 0 0 50px; }
.att__facts li { margin: 0 0 11px; line-height: 24px; }
.att__label {
  display: inline;
  margin-right: 3px;
  font-size: 17px;
  line-height: 27.2px;
  font-weight: 500;
  color: var(--navy);
}
.att__value { color: var(--navy); }
.att__value a { color: var(--navy); }
.att__value a:hover { color: var(--sand); }

/* Each bio section is a padded block; the spacing between them varies per
   page and is carried as an inline margin from the original's settings. */
.att__block { padding: 10px 0; }

.att__name {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 0.9px;
  color: var(--navy);
}

.att__heading {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.6px;
  color: var(--navy);
}

/* flow-root keeps the trailing paragraph margin inside the block. */
.att__text { display: flow-root; margin: 0 0 20px; }
.att__block > *:last-child { margin-bottom: 0; }

/* padding, not margin, so it does not collapse with the heading's 20px */
.att__cols { display: flex; flex-wrap: wrap; padding-top: 6px; }
.att__col { flex: 1 1 0; min-width: 0; }
.att__col > *:last-child { margin-bottom: 0; }

/* The bio lists are smaller, uppercase and dark, unlike the service lists. */
.att .checklist { margin: 0; }
.att .checklist li {
  padding: 0 0 6px;
  font-size: 15px;
  line-height: 24px;
  text-transform: uppercase;
}
.att .checklist li + li { margin-top: 6px; }
.att .checklist li:last-child { padding-bottom: 0; }
.att .checklist .i { margin-top: 4px; color: var(--sand-2); }
.att .checklist__text { padding-left: 8px; color: var(--dark); }

/* The theme's md columns are 5/7 rather than 4/8. */
@media (max-width: 991px) {
  .att__aside { flex-basis: 41.6667%; max-width: 41.6667%; }
  .att__main { flex-basis: 58.3333%; max-width: 58.3333%; }
}

@media (max-width: 767px) {
  .att__aside,
  .att__main { flex-basis: 100%; max-width: 100%; }
  .att__col { flex-basis: 100%; }
}

@media (max-width: 575px) {
  .att__name { line-height: 48px; }
  .att__heading { line-height: 32px; }
}

/* Page header sub-title (attorney role). */
@media (max-width: 767px) {
  .page-head__title { font-size: 40px; line-height: 48px; letter-spacing: 2.4px; }
}

.page-head__sub {
  position: relative;
  z-index: 99;
  margin: 0 0 15px;
  font-size: 17px;
  line-height: 27.2px;
  letter-spacing: 2.21px;
  color: #fff;
}

/* ==========================================================================
   Content area + archives
   ========================================================================== */
/* Home and the Elementor-built service pages had their content padding zeroed
   by the theme; archives, posts and attorney pages keep the 110px band. */
.content { position: relative; }
.content--padded { padding: 110px 0; }

.content__row { display: flex; flex-wrap: wrap; margin: 0 -15px; }

.content__main { position: relative; flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.content__main--with-aside { flex-basis: 66.6667%; max-width: 66.6667%; }

.content__aside { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 15px; }

@media (max-width: 991px) {
  .content__main--with-aside,
  .content__aside { flex-basis: 100%; max-width: 100%; }
  .content__aside { margin-top: 60px; }
}

.entry { margin: 0 0 43px; }

.entry__media { display: block; position: relative; margin: 0 0 24px; border-radius: 2px; overflow: hidden; }
.entry__media img { display: block; width: 100%; border-radius: 2px; transition: transform 1s; }
.entry__media:hover img { transform: scale(1.06); }

.entry__head { margin: 0 0 19px; }

.entry__meta {
  margin: 0;
  list-style: none;
  font-size: 13px;
  line-height: 20.8px;
}
.entry__meta li { display: inline-block; margin: 0 6px 5px 0; }

/* Category badge: a sand tag with the theme's skewed tail on the right. */
.entry__cats {
  position: relative;
  z-index: 1;
  margin-right: 12px !important;
  padding: 0 7px;
  line-height: 22px;
  background: var(--sand);
  color: #fff;
}
.entry__cats::before,
.entry__cats::after {
  content: "";
  position: absolute;
  right: -6px;
  width: 20px;
  height: 50%;
  background: var(--sand);
  z-index: -1;
}
.entry__cats::before { top: 0; transform: skewX(-45deg); }
.entry__cats::after { bottom: 0; transform: skewX(45deg); }
.entry__cats a { color: inherit; }

.entry__title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 33px;
  color: var(--navy);
}
.entry__title a { color: inherit; }
.entry__title a:hover { color: var(--sand); }

.entry__excerpt { margin: 0; }

/* 24px tail reproduces the (hidden) read-more block's reserved space. */
.entry__body { padding-bottom: 24px; }

/* Pagination */
.pager { display: flex; justify-content: center; margin-top: 50px; }

.page-num {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 10px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 52px;
  text-align: center;
  color: #fff;
  background: var(--navy);
  transition: background var(--ease);
}
.page-num:last-child { margin: 0 10px; }
.page-num.is-current { background: var(--sand); }
.page-num:hover { background: var(--sand); }
.page-num .i { font-size: 20px; }

/* ==========================================================================
   Single post
   ========================================================================== */
.post__media { margin: 0 0 24px; }
.post__media img { width: 100%; }

.post__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 19px;
}

.post__author-box { display: flex; align-items: center; margin: 0 30px 10px 0; }

.post__avatar { flex: 0 0 auto; margin-right: 13px; }
.post__avatar img { width: 100px; height: 100px; border-radius: 50%; }

.post__author {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 20.4px;
  color: var(--navy);
}
.post__author a { font-weight: 700; letter-spacing: 0.51px; color: inherit; }
.post__author a:hover { color: var(--sand); }

.post__meta {
  display: flex;
  align-items: center;
  margin: 0 0 10px;
  list-style: none;
  font-size: 13px;
  line-height: 20.8px;
}
/* the 30px tail is kept: the original reserved room for a second,
   theme-hidden meta item here */
.post__meta li { display: inline-flex; align-items: center; margin: 5px 30px 5px 0; }
.post__meta .svg-icon { margin-right: 8px; fill: currentColor; }

/* flow-root keeps the last paragraph's margin inside the article body. */
.post__body { display: flow-root; padding-bottom: 5px; color: var(--ink); }
.post__body p { margin: 0 0 15px; }
.post__body a { color: var(--sand); }
.post__body a:hover { color: var(--navy); }
.post__body h2,
.post__body h3,
.post__body h4 { margin: 24px 0 12px; color: var(--navy); }
.post__body ul,
.post__body ol { margin: 0 0 15px; padding-left: 20px; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { margin-bottom: 6px; }
.post__body blockquote {
  margin: 20px 0;
  padding: 10px 0 10px 20px;
  border-left: 2px solid var(--sand);
}
.post__body img { height: auto; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar { position: sticky; top: 100px; }

.widget {
  position: relative;
  margin: 0 0 49px;
  padding: 25px 24px;
  border: 1px solid var(--border);
}
.widget:last-child { margin-bottom: 0; }

/* The category list sits flush against both the title and the box bottom,
   as the theme had it (it pulled the list up by the title's 25px margin). */
.widget--flush { padding-bottom: 0; }
.widget--flush .widget__title { margin-bottom: 0; }

.widget__title {
  position: relative;
  margin: -25px -25px 25px;
  padding: 20px 25px 21px;
  background: var(--navy);
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.6px;
  color: #fff;
}

.widget-list { list-style: none; }
.widget-list li {
  margin: 0 0 11px;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--border);
}
.widget-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.widget-list a { font-size: 16px; line-height: 25.6px; color: var(--navy); }
.widget-list a:hover { color: var(--sand); }

.cat-list { list-style: none; }
.cat-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 500;
  line-height: normal;
  border-bottom: 1px solid var(--border);
}
.cat-list li:last-child { border-bottom: 0; }
.cat-list a {
  position: relative;
  padding: 18px 5px 18px 0;
  font-size: 16px;
  color: var(--navy);
  transition: var(--ease);
}
.cat-list a:hover { color: var(--sand); }
.cat-list__count { color: var(--meta); }

.contact-card { line-height: 30px; }
.contact-card .widget__title { margin-bottom: 16px; }

.contact-card__group {
  margin: 0 0 20px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--border);
}
.contact-card__group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.contact-card__row { margin: 0; }
.contact-card__label { color: var(--navy); }
.contact-card a { color: var(--navy); }
.contact-card a:hover { color: var(--sand); }
.contact-card h4 { margin: 0 0 7px; font-size: 20px; line-height: 24px; color: var(--navy); }

.social-inline { display: flex; }
.social-inline a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 16px;
  border-radius: 50%;
  color: var(--navy);
}
.social-inline a:hover { color: var(--sand); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { line-height: 25.95px; color: var(--ink-light); }

.footer-top { position: relative; padding: 65px 0 53px; background: var(--grey); }

.footer-cols { display: flex; flex-wrap: wrap; margin: 0 -15px; }

.footer-col { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }

.footer-widget { margin-bottom: 29px; }
.footer-widget:last-child { margin-bottom: 0; }

.footer-widget__title {
  margin: 0 0 25px;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.6px;
  color: #fff;
}

.footer-menu { list-style: none; }
.footer-menu li { margin: 0 0 11px; }
.footer-menu a {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.45px;
  color: var(--sand);
  transition: var(--ease);
}
.footer-menu a::before {
  content: "\f301";
  margin-right: 11px;
  font: normal normal normal 1em/1 zmdi;
  font-size: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.footer-menu a:hover { color: #fff; }

.footer-widget a { color: inherit; }
.footer-widget p { margin: 0 0 11px; }
.footer-widget p:last-child { margin-bottom: 0; }

/* One footer widget's markup keeps the trailing paragraph margin; the
   column is 11px taller because of it. */
.footer-widget--keeps-margin { display: flow-root; }
.footer-widget--keeps-margin p:last-child { margin-bottom: 11px; }
.footer-widget a:hover { color: var(--sand); }
.color-primary { color: var(--sand); }

.social { display: inline-flex; list-style: none; gap: 6px; }
.social a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: var(--ease);
}
.social a:hover { background: var(--sand); }

.footer-map { border: 0; max-width: 100%; }

.footer-bottom { position: relative; z-index: 2; background: var(--darker); }

.footer-bottom__col {
  display: flex;
  flex-wrap: wrap;
  padding: 22.5px 0;
  border-top: 1px solid transparent;
}

.copyright { flex: 0 0 50%; max-width: 50%; }
.copyright a { color: var(--sand); }
.copyright a:hover { color: #fff; }

@media (max-width: 991px) {
  .footer-top { padding-bottom: 30px; }
  .footer-col { flex-basis: 50%; max-width: 50%; margin-bottom: 25px; }
}

/* Below 576px the columns stack and the theme switches headings to a 1.6
   line-height. */
@media (max-width: 575px) {
  .footer-col { flex-basis: 100%; max-width: 100%; }
  .footer-col + .footer-col { margin-top: 45px; }
  .footer-widget__title { line-height: 32px; }
  .copyright { flex-basis: 100%; max-width: 100%; }
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.to-top {
  position: fixed;
  right: 30px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  color: #fff;
  background: var(--sand);
  border-radius: 2px;
  visibility: hidden;
  opacity: 0;
  z-index: 99;
  transition: var(--ease);
}
.to-top.is-visible { visibility: visible; opacity: 1; }
.to-top:hover { background: var(--navy); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Mobile
   Everything from here down applies only below the desktop breakpoints. The
   rendering above them is untouched and still matches the original pixel for
   pixel; on a phone the layout is allowed to differ, because the original's
   was losing content and could not be operated by touch.
   ========================================================================== */

/* The carousels follow the finger; vertical scrolling stays with the browser. */
.carousel { touch-action: pan-y; }
.carousel__track.is-dragging { cursor: grabbing; }

/* Pager under a carousel, built by site.js. Hidden above the phone
   breakpoint, so the desktop layout keeps exactly the height it had. */
.carousel__dots { display: none; }

/* --- tablet and phone: wherever the menu collapses into the burger ------- */
@media (max-width: 991px) {
  html { -webkit-tap-highlight-color: rgba(178, 164, 149, 0.3); }

  /* clip, not hidden: hidden would turn the body into a scroll container and
     stop the header below from sticking */
  body { overflow-x: clip; }

  /* The bar rides along with the page. It used to scroll away, and the menu
     is the only way to navigate at this width. */
  .site-header,
  .site-header.is-stuck { position: sticky; top: 0; }

  /* ...which means an anchor jump would stop with the target under the bar.
     Only the menu's own targets need the offset; the original has none
     because its header does not stick. */
  #o-nas, #nas-tym, #sluzby, #kontakt { scroll-margin-top: 80px; }

  /* 44x44 - the smallest target a thumb hits reliably. */
  .nav-toggle { width: 44px; height: 44px; line-height: 44px; }
  .nav-toggle__bar { top: 21px; left: 11px; }

  /* the burger folds into a cross while the menu is open */
  .nav-toggle.is-open .nav-toggle__bar { background: transparent; }
  .nav-toggle.is-open .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle.is-open .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

  /* A menu longer than the screen has to scroll inside itself. */
  .nav {
    padding: 4px 20px 12px;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);   /* iOS: keep clear of the URL bar */
    overflow-y: auto;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  }
  .nav__item + .nav__item { border-top: 1px solid rgba(0, 0, 0, 0.07); }
  .nav__link { padding: 14px 0; }          /* 28.8 + 28 = 56.8px row */

  /* Footer and sidebar links were 18px tall - half a thumb. */
  .social a,
  .social-inline a { width: 44px; height: 44px; font-size: 18px; }
  .footer-menu li { margin: 0; }
  .footer-widget a,
  .contact-card a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .widget-list a { display: flex; align-items: center; min-height: 44px; }
  .widget-list li { padding-bottom: 0; }
}

/* --- phone -------------------------------------------------------------- */
@media (max-width: 767px) {
  /* No sideways overflow: the facts row carried a -10px bleed that the
     section's 5px padding could not absorb, so the page came out 5px wider
     than the screen and the third fact was clipped. */
  .about { padding: 58px 15px 62px; }
  .about__media { padding: 0 20px 36px 0; }
  .about__body { padding: 10px 0 0; }
  .facts { margin: 15px 0 0; }
  .fact { padding: 10px 0; }
  .fact:not(:last-child) { padding-bottom: 32px; }

  /* Desktop spacing is built around a 1170px band; on a phone the same
     figures leave half a screen of empty dark blue between sections. */
  .page-head { padding: 52px 0; }
  .page-head--tight { padding-bottom: 34px; }
  .content--padded { padding: 52px 0; }
  .content__aside { margin-top: 45px; }
  .team-head { padding: 48px 15px; }
  .news { padding: 46px 15px 44px; }
  .news__more { padding-top: 26px; }
  .footer-top { padding: 46px 0 28px; }
  .widget { margin-bottom: 35px; }
  .pager { margin-top: 36px; }
  .entry { margin-bottom: 38px; }

  /* Type sized for a phone rather than for a 1170px column. */
  .page-head__title { font-size: 34px; line-height: 42px; letter-spacing: 1.7px; }
  .entry__title { font-size: 22px; line-height: 31px; }
  .entry__excerpt,
  .post__body,
  .att__text { font-size: 16px; line-height: 27px; }
  .entry__meta,
  .post__meta,
  .card__meta { font-size: 14px; line-height: 22px; }
  .entry__cats { line-height: 24px; }

  /* The theme drew these glyphs flush against their label to keep the row on
     one line; at 14px there is room to separate them. */
  .card__date::before,
  .card__cats::before { margin-right: 6px; }

  /* Dates and category tags stay the size they look best at, but get a 44px
     tap area around them. */
  /* inline-block so the link fills the badge's line box rather than just its
     own 16px of text */
  .entry__cats a,
  .card__cats a { display: inline-block; }
  .entry__meta a,
  .card__meta a,
  .post__author a { position: relative; }
  /* more room above than below, so the overlay does not reach into the
     headline underneath it */
  .entry__meta a::after,
  .card__meta a::after,
  .post__author a::after {
    content: "";
    position: absolute;
    top: -14px;
    right: -8px;
    bottom: -8px;
    left: -8px;
  }

  /* Services: both columns. The original dropped the second one below this
     width, taking whole sections of text off the page. */
  .svc__col:first-child { padding: 40px 0 24px; }
  .svc__col:last-child {
    display: block;
    flex-basis: 100%;
    max-width: 100%;
    padding: 0 0 40px;
  }
  /* Stacked under the first column it reads as one continuous list, so it
     takes that column's tighter rhythm rather than the original's wider
     side-by-side spacing. */
  .svc__col:last-child .checklist { margin-top: 14px; }
  .svc__col:last-child .checklist:not(:last-child) { margin-bottom: 32px; }

  /* Team: the card with the name and the role was revealed on hover, which a
     touch screen cannot do - the portraits were anonymous. It now sits under
     the photo instead of over it. */
  .person__card {
    position: static;
    display: block;
    visibility: visible;
    opacity: 1;
    padding: 16px 20px 20px;
    transition: none;
  }
  .person__card-inner { margin: 0; padding: 0; }
  .person__name { font-size: 22px; line-height: 28px; }
  .person__role { margin: 6px 0 0; font-size: 17px; line-height: 24px; }
  .person__bio { display: none; }

  /* Carousel pager: without it nothing on screen says the carousel holds
     more than the one slide that fits. */
  .carousel__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0 0;
  }
  /* 30px keeps eleven dots on one row inside the 345px band. */
  .carousel__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 32px;
    padding: 0;
  }
  .carousel__dot::before {
    content: "";
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    transition: background var(--ease);
  }
  .carousel__dot.is-current::before { background: var(--sand); }

  .to-top { right: 15px; bottom: 15px; }
  .footer-map { width: 100%; height: 230px; }
  .post__avatar img { width: 72px; height: 72px; }
}

@media (max-width: 575px) {
  .page-head__title { font-size: 28px; line-height: 36px; letter-spacing: 1.4px; }
}
