 /*
 Theme Name: Buštěhrad Česko
 Author: Václav Němec
 Date: August 2026
 */
 @font-face {
    font-family: "Druk";
    src: url("./assets/druk-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Denim";
    src: url("./assets/denim-medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --blue: #0054CF;
    --red: #FC3308;
    --gray: #E5E5E5;
    --white: #FFFFFF;
    --black: #000000;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html, body {
    height: 100%;
  }

  body {
    background: var(--gray);
    font-family: "Denim", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  main {
    flex: 1 0 auto;
    display: flex;
    padding: 1rem;
  }

  .panel {
    width: 100%;
    flex: 1;
    background: var(--gray);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo .naa {
    font-family: "Denim", sans-serif;
    font-weight: 500;
    font-size: clamp(12px, 1.6vw, 28px);
    letter-spacing: 0.35em;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 0.4em;
    white-space: nowrap;
  }

  .logo .naa::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 0.45em solid transparent;
    border-right: 0.45em solid transparent;
    border-top: 0.65em solid var(--blue);
  }

  .logo .cesko {
    font-family: "Druk", sans-serif;
    font-weight: 700;
    font-size: clamp(56px, 13vw, 260px);
    line-height: 1;
    color: var(--blue);
    letter-spacing: 0.01em;
    margin-top: 0.1em;
    white-space: nowrap;
  }

  .stripe {
    display: flex;
    width: 100%;
    height: clamp(4px, 0.9vw, 18px);
    margin-top: clamp(8px, 1.5vw, 30px);
  }

  .stripe span {
    flex: 1;
  }

  .stripe span:nth-child(1) { background: var(--white); }
  .stripe span:nth-child(2) { background: var(--red); }
  .stripe span:nth-child(3) { background: var(--blue); }

  .claim {
    margin-top: clamp(20px, 3vw, 56px);
    font-family: "Denim", sans-serif;
    font-weight: 500;
    font-size: clamp(13px, 1.8vw, 32px);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap;
  }

  .message {
    margin-top: clamp(20px, 3vw, 56px);
    font-family: "Druk", sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 3.4vw, 62px);
    line-height: 1.3;
    color: var(--black);
    white-space: nowrap;
    letter-spacing: 0.2px;
  }

  .message .highlight {
    animation: colorCycle 6s ease-in-out infinite;
  }

  @keyframes colorCycle {
    0%   { color: var(--black); }
    33%  { color: var(--blue); }
    66%  { color: var(--red); }
    100% { color: var(--black); }
  }

  @media screen and (max-width:800px){
    .message{
      font-size: 2rem;
      white-space: unset;
    }
  }

  main h1{
      color: var(--blue);
      text-decoration: none;
      font-family: "Druk";
	  letter-spacing: 0.8px;
	  font-size: 3rem;
  }

  main article{
    border:1px solid var(--blue);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    h2 , h2 a{
      color: var(--blue);
      text-decoration: none;
      font-family: "Druk";
      font-size: 2.5rem;
      letter-spacing: 0.8px;
	  line-height: 2rem;
    }
    div{
      line-height: 1.4rem;
      font-size: 1.1rem;
    }
    .readmore{
      border: 1.5px solid var(--blue);
      padding: 8px 20px;
      border-radius: 999px;
      font-family: "Denim", sans-serif;
      font-weight: 500;
      font-size: 14px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-decoration: none;
      color: var(--blue);
      display: inline-block;
      transition: color 0.15s ease;
    }
    .readmore:hover, .readmore:active{
      background: var(--blue);
      border-color: var(--blue);
      color: var(--white);
    }
  }
  main .content{
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .wp-block-file{
    box-sizing: border-box;
    border: 1px solid var(--blue);
    background: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 5rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .wp-block-file a{
    font-size: 1.1rem;

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

  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 3vw, 32px);
    padding: 14px clamp(16px, 4vw, 48px);
    flex-wrap: wrap;
  }

  header nav{
    position: relative;
  }

  header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 36px);
  }

  header nav li {
    position: relative;
  }

  header nav a {
    font-family: "Denim", sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--blue);
    white-space: nowrap;
    transition: color 0.15s ease;
  }

  header nav a:hover {
    color: var(--red);
  }

  header nav li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--gray);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  header nav li:hover > ul,
  header nav li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  header nav li > ul li {
    display: block;
  }

  header nav li > ul a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
  }

  #logo {
    flex: 0 0 auto;
  }

  #logo img {
    display: block;
    height: clamp(34px, 5vw, 54px);
    width: auto;
  }

  header nav:last-of-type a {
    border: 1.5px solid var(--blue);
    padding: 8px 20px;
    border-radius: 999px;
  }

  header nav:last-of-type a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
  }

  header #hmenu{
    display: none; 
  }
  header .hmenu{
    display: none;
  }

  @media screen and (max-width: 800px) {
    header {
      justify-content: space-between;
      text-align: center;
    }

    header nav.compress .hmenu{
      display: block;
    }
    header nav.compress ul{
      display: none;
    }
    header nav.compress .hmenu{
      width: 1.5rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    header nav.compress .hmenu span{
      width: 1.5rem;
      height: 2px;
      background-color: var(--blue);
      margin: 0.5rem 0;
      position: relative;
      display: block;
    }
    header nav.compress .hmenu span::before{
      width: 1.5rem;
      background-color: var(--blue);
      height: 2px;
      top: -0.4rem;
      left: 0;
      content: "";
      display: block;
      position: absolute;
    }
    header nav.compress .hmenu span::after{
      width: 1.5rem;
      background-color: var(--blue);
      height: 2px;
      left: 0;
      bottom: -0.4rem;
      display: block;
      content: "";
      position: absolute;
    }

    header nav.compress #hmenu:checked~ul{
      display: block;
      background-color: var(--white);
      border:1px solid var(--blue);
      padding: 1rem;
      position: absolute;
      top: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    header nav ul {
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px 20px;
    }

    header nav li > ul {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      border: none;
      margin-top: 4px;
      padding: 0;
    }
  }

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

  footer {
    flex-shrink: 0;
    background: var(--blue);
    color: var(--white);
    text-align: center;
    font-family: "Denim", sans-serif;
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 24px 16px;
  }