/* Ze site.css prototypu (prototype/navrh-h/web/site.css) beze změny, úpravy pro WordPress jsou na konci. */
/* shared by every page: colours, base, header with the menu and logo, footer; the header logo is the wordmark without the emblem (client, 23 Oct) */
:root {
  --olive: #767A4C;
  --olive-dark: #5E623B;
  --ink: #232B36;
  --bg: #F5F1E7;
  --bg-alt: #ECE6D7;
  --line: rgba(35, 43, 54, .14);
  --sans: 'Open Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.22, .68, .18, 1);
  --head: 112px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: 400 18px/1.65 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.wrap { max-width: calc(1320px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.9rem); }
/* Odien olive on every page: section titles and the big figures, the page title (h1) stays dark */
h2, .figures dt { color: var(--olive); }

/* header: menu split in two halves around a small centred logo */
.head { position: sticky; top: 0; z-index: 30; background: var(--bg); transition: box-shadow .3s; }
.head.scrolled { box-shadow: 0 1px 0 var(--line); }
.head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; height: var(--head); }
.menu { display: contents; }
.menu ul { list-style: none; }
.nav-l, .nav-r { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); grid-row: 1; }
.nav-l { grid-column: 1; }
.nav-r { grid-column: 3; justify-content: flex-end; }
.nav-l > li > a, .nav-r > li > a { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; padding: 10px 0; white-space: nowrap; }
.nav-l > li > a:hover, .nav-r > li > a:hover { color: var(--olive-dark); }
.menu [aria-current="page"], .nav-l > li > a[aria-current], .sub > a[aria-current] { text-decoration: underline 2px var(--olive); text-underline-offset: 8px; }
.sub ul [aria-current] { color: var(--olive-dark); font-weight: 600; text-decoration: underline 2px var(--olive); text-underline-offset: 5px; } /* the current page (or the section of a detail, e.g. Team on a bio) inside the About us submenu, its parent stays underlined */
.brand { grid-column: 2; grid-row: 1; display: block; }
.brand img { width: 250px; }
.sub { position: relative; }
.sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sub ul { position: absolute; top: 100%; left: -24px; min-width: 260px; padding: 14px 24px; background: var(--bg); box-shadow: 0 10px 30px rgba(35, 43, 54, .1); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.sub:hover ul, .sub:focus-within ul { opacity: 1; visibility: visible; transform: none; }
.sub ul a { display: block; padding: 7px 0; font-size: 15px; text-decoration: none; }
.sub ul a:hover { color: var(--olive-dark); text-decoration: underline; }
.lang { display: flex; gap: 12px; padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .09em; }
.lang a { text-decoration: none; font-weight: 400; }
.lang [aria-current] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--olive); }
.menu-btn { display: none; grid-column: 3; grid-row: 1; justify-self: end; background: none; border: 0; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }

/* footer after the client's notes: lower top, bigger logo in the middle of its block, social icons */
.foot { background: var(--olive); color: #fff; padding: clamp(36px, 4vw, 56px) 0 28px; }
.foot .top { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.foot .top > div { padding: 4px 32px; }
.foot .top > div:first-child { display: grid; place-items: center; padding-left: 0; }
.foot .top > div + div { border-left: 1px solid rgba(255, 255, 255, .35); }
.foot .top img { width: 360px; }
.foot h4 { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
.foot p, .foot li { font-size: 15px; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot a { text-decoration-color: rgba(255, 255, 255, .5); }
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; transition: background .25s; }
.social a:hover { background: rgba(255, 255, 255, .16); }
.social svg { width: 17px; height: 17px; }
.foot .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 14px; }
.foot .bottom ul { display: flex; gap: 24px; }

@media (max-width: 1180px) {
  :root { --head: 92px; }
  .menu { display: none; }
  .menu-btn { display: block; }
  .head.open .menu { display: grid; gap: 8px; position: absolute; top: var(--head); left: 0; right: 0; max-height: calc(100vh - var(--head)); overflow: auto; background: var(--bg); padding: 8px var(--gutter) 28px; box-shadow: 0 1px 0 var(--line); }
  .head.open .nav-l, .head.open .nav-r { display: grid; gap: 0; justify-content: start; grid-column: auto; grid-row: auto; }
  .head.open .nav-l > li > a, .head.open .nav-r > li > a { display: block; font: 800 1.36rem/1.7 var(--sans); letter-spacing: -.03em; text-transform: none; }
  .head.open .sub > a::after { display: none; }
  .head.open .sub ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; min-width: 0; padding: 0 0 8px 16px; }
  .head.open .lang { border-left: 0; padding: 16px 0 0; }
  .head.open .nav-r > .lang > a { font: 400 15px/1 var(--sans); letter-spacing: .09em; }
  .head.open .nav-r > .lang > [aria-current] { font-weight: 600; }
  .foot .top { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .foot .top > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  :root { --head: 76px; }
  body { font-size: 17px; }
  .brand img { width: 190px; }
  .foot .top { grid-template-columns: 1fr; }
  .foot .top > div { padding: 20px 0 0; border-left: 0 !important; }
  .foot .top > div:first-child { justify-items: start; }
  .foot .top > div + div { border-top: 1px solid rgba(255, 255, 255, .35); }
  .foot .top img { width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* --- WordPress ----------------------------------------------------------------------------------------------- */
img { height: auto; } /* obrázky z WP mají width a height, poměr stran drží CSS */
.foot .reach { margin-top: 12px; } /* v prototypu inline styl */
.foot p + h4 { margin-top: 20px; }
.foot .bottom ul { flex-wrap: wrap; gap: 6px 24px; } /* s „Cookie settings“ jsou odkazy tři, na úzkém displeji se zalomí celé */
.foot .bottom li { white-space: nowrap; }
.foot .bottom button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 5px; cursor: pointer; } /* „Cookie settings“ otevírá lištu, není to odkaz */
/* krátká stránka (CSR, Cookies, 404…): patička dole na obrazovce, ne uprostřed s prázdným pruhem pod ní */
.wp-site-blocks { display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); }
.wp-site-blocks > main { flex: 1 0 auto; }
.admin-bar .head { top: var(--wp-admin--admin-bar--height, 32px); } /* přihlášený redaktor: hlavička pod lištou adminu */
@media (max-width: 600px) { .admin-bar .head { top: 0; } } /* tady lišta adminu neplave */
#cc_div { font-family: var(--sans); } /* cookie lišta písmem webu (consent.css) */
/* otevřené mobilní menu nad cookie lištou (D891): knihovna dává liště inline z-index 1000000, s otevřeným menu jde
   pod hlavičku (.head z-index 30), ať jsou klikatelné všechny položky včetně Contact; otevřené nastavení cookies
   (show--settings) zůstává navrchu. Prohlížeč bez :has nechá lištu nad menu jako dřív. */
html:not(.show--settings):has(.head.open) #cc--main { z-index: 29 !important; }
/* „Skip to content“, který vkládá WP (ukáže se po prvním Tab), v paletě webu místo šedého z WP */
body .skip-link.screen-reader-text:focus { top: 8px; left: 8px; padding: 12px 20px; background: var(--olive); color: #fff; font: 600 13px/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; outline: 2px solid var(--olive-dark); outline-offset: 2px; box-shadow: none; }
/* podmenu se otevře hned, i z klávesnice (Tab z About us vede na Our story); zavře se po doběhnutí animace */
.sub ul { transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
.sub:hover ul, .sub:focus-within ul { transition-delay: 0s; }
