/*
Theme Name: ProPlzeň Simple
Author: Stanislav Šec
Version: 1.1
*/

:root {
  --blue: #183E6B;
  --red: #D6001C;
  --bg: #F6F7F8;
}

/* ===== ZÁKLAD ===== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: white;
  color: #111;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.slug-zastupitele-pro-plzen-mo-plzen-4 main img,
.slug-nase-hnuti-vedeni main img,
.slug-kontakt main img {
  width: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: solid 1px var(--blue);
}


/* ===== HERO SLIDER BEZ ÚPRAV HTML ===== */

.home main>ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  height: 65vh;
  max-height: 650px;
  overflow: hidden;
}

.home main>ul>li {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.home main>ul>li.active {
  opacity: 1;
  z-index: 2;
}

/* obrázek */
.home main>ul>li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* overlay */
.home main>ul>li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* text */
.home main>ul>li h3 {
  position: absolute;
  bottom: 15%;
  left: 10%;
  right: 10%;
  z-index: 2;
  color: #fff;
  font-size: 44px;
  max-width: 700px;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.45);
  margin: 0;
}

/* MOBIL */
@media (max-width: 768px) {
  .home main>ul {
    height: 45vh;
  }

  .home main>ul>li h3 {
    font-size: 28px;
    left: 6%;
    right: 6%;
    bottom: 18%;
  }
}


.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  padding-bottom: 25px;
}

.post-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.post-title {
  font-size: 22px;
  margin: 20px;
}

.post-excerpt {
  margin: 0 20px 20px;
  color: #444;
}

.post-readmore {
  margin-left: 20px;
  padding: 10px 22px;
  background: var(--red);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

a {
  color: var(--blue);
}

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

/* ===== HLAVIČKA ===== */

header {
  background: white;
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 55px;
}

/* ===== MENU ===== */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  letter-spacing: 0.04em;
}

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

.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== OBSAH ===== */

main {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

h1,
h2,
h3 {
  color: var(--blue);
  line-height: 1.25;
}

h1 {
  font-size: 42px;
  margin-bottom: 30px;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
}

/* ===== HERO sekce ===== */

.hero {
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero>* {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: white;
  font-size: 48px;
  max-width: 700px;
}

/* ===== SEKCE ===== */

.section {
  padding: 80px 0;
}

.section-blue {
  background: var(--blue);
  color: white;
}

.section-blue h2 {
  color: white;
}

.section-red {
  background: var(--red);
  color: white;
}

/* ===== KARTY ===== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-top: 10px;
}

/* ===== KONTAKT ===== */

.contact-box {
  background: white;
  padding: 40px;
  border-radius: 10px;
  border-left: 8px solid var(--red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* ===== TLAČÍTKA ===== */

.button,
button,
input[type="submit"] {
  display: inline-block;
  padding: 14px 28px;
  background: var(--red);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: #b80018;
}

/* ===== PATIČKA ===== */

footer {
  background: #021E3A;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

footer a {
  color: white;
  text-decoration: none;
}


ul {
  list-style: none;
  padding-left: 0;
}



/* Gutenberg základ */

.wp-block {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block.alignwide {
  max-width: 1400px;
}

.wp-block.alignfull {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ===== MOBIL ===== */

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 20px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
  }

  .main-nav a {
    padding: 15px 20px;
    display: block;
  }

  h1 {
    font-size: 32px;
  }

  .hero {
    padding: 80px 20px;
  }

  main {
    padding: 40px 20px;
  }
}