/* =============================================================
   MAIN.CSS — Clean & Responsive
   mikwork.cz theme
   ============================================================= */

/* --- Fonts -------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Hw3aX8.ttf)
    format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM73w3aX8.ttf)
    format("truetype");
}

/* --- Normalize / Reset -------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  outline: none;
  -webkit-font-smoothing: subpixel-antialiased;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
video {
  display: inline-block;
}

audio:not([controls]) {
  display: none;
}
[hidden] {
  display: none;
}

html {
  font-size: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  color: #4e4c4c;
  font-size: 16px;
  font-weight: 300;
}
body.open {
  overflow: hidden;
  height: 100vh;
  display: block;
  position: relative;
}

a {
  color: #fbb913;
  text-decoration: none;
  transition: 0.4s;
}
a:hover {
  color: #d79b04;
}
a:focus {
  outline: none;
}

abbr[title] {
  border-bottom: 1px dotted;
}
blockquote {
  margin: 1em 40px;
}
dfn,
em,
i {
  font-style: italic;
}
mark {
  background: #ff0;
  color: #000;
}
p,
pre {
  margin: 0 0 1em 0;
}
code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em;
}
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}
q {
  quotes: none;
}
q::before,
q::after {
  content: "";
  content: none;
}
small {
  font-size: 75%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
svg:not(:root) {
  overflow: hidden;
}
embed,
iframe,
object {
  vertical-align: middle;
}
figure {
  margin: 0;
}
form {
  margin: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font-family: sans-serif;
  font-size: 100%;
  margin: 0;
  vertical-align: baseline;
}
button,
input {
  line-height: normal;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
}
button[disabled],
input[disabled] {
  cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="search"] {
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
textarea {
  overflow: auto;
  vertical-align: top;
  resize: vertical;
}
hr {
  display: block;
  height: 1px;
  border: none;
  width: 100%;
  background: #f2f2f2;
  margin: 20px 0;
}

/* --- Utility ----------------------------------------------- */
.align-center,
.center {
  text-align: center;
}
.align-left,
.left {
  text-align: left;
}
.align-right,
.right {
  text-align: right;
}
.l {
  float: left;
}
.r {
  float: right;
}
.n {
  float: none;
}
.hide {
  display: none;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: auto;
}

/* --- Typography -------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-style: normal;
}
h1 {
  color: #7e241b;
  font-size: 3em;
  line-height: 1.2;
}
h2 {
  color: #7e241b;
  font-weight: 600;
  font-size: 2em;
}
h3 {
  color: #fbb913;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 500;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  padding: 14px 36px;
  display: inline-block;
  background: #fbb913;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid #fbb913;
  transition: 0.4s;
}
.btn:hover {
  background: #d79b04;
  border-color: #d79b04;
  color: #fff;
}
.btn.inverse {
  background: transparent;
  color: #fbb913;
}
.btn.inverse:hover {
  background: #fbb913;
  color: #fff;
}

/* --- Forms ------------------------------------------------- */
form input,
form select,
form textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}
form textarea {
  max-height: 100px;
}

/* --- Sections ---------------------------------------------- */
.section {
  padding: 60px 0;
  overflow: hidden;
}
.section::before,
.section::after {
  content: "";
  display: table;
}
.section::after {
  clear: both;
}
.section.grey,
.bg-grey {
  background: #f2f2f2;
}

/* --- Header & Desktop Navigation --------------------------- */
#header .wrap {
  position: relative;
}

.logo img {
  width: 230px;
}
.logo {
  top: 24px;
  position: relative;
  z-index: 99;
}

/* Desktop nav */
#header ul {
  padding: 0;
  list-style: none;
  text-align: right;
  float: right;
  display: block;
  margin: 0;
}
#header ul li {
  display: inline-block;
  font-style: normal;
}
#header nav ul {
  margin-top: 30px;
}
#header nav ul li {
  margin: 0;
}

#header .container_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header nav ul li.btn {
  margin-left: 2rem;
}
#header nav ul li.btn a {
  padding: 0;
  &:hover {
    color: #fff;
  }
}

#header nav ul li a {
  padding: 10px 10px 0;
  font-weight: 500;
  color: #4e4c4c;
  font-size: 1.1em;
  position: relative;
  display: inline-block;
}
#header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -10px;
  height: 1px;
  left: 50%;
  right: 50%;
  background: #fbb913;
  transition: 0.4s;
}
#header nav ul li a.active,
#header nav ul li a:hover {
  color: #fbb913;
}
#header nav ul li a.active::after,
#header nav ul li a:hover::after {
  left: 0;
  right: 0;
}

/* Mobile hamburger button — hidden by default on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  top: 38px;
  right: 20px;
  z-index: 200;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 26px;
  height: 2px;
  background: #4e4c4c;
  position: relative;
  transition: 0.3s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before {
  top: -8px;
}
.nav-toggle span::after {
  top: 8px;
}

/* Hamburger open state */
.nav-open .nav-toggle span {
  background: transparent;
}
.nav-open .nav-toggle span::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-open .nav-toggle span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* --- Intro -------------------------------------------------- */
.intro {
  color: #fff;
  /*height: 50vh;
  max-height: 600px;*/
  display: block;
  position: relative;
  overflow: hidden;
}
.intro.small {
  background: url(../img/intro.jpg) repeat-x top / contain;
  max-height: 400px;
}
.intro h1 {
  font-weight: 400;
  color: #7e241b;
  font-size: 4.3em;
  position: relative;
  z-index: 1;
}
.intro h1 span {
  display: block;
  font-weight: 700;
  color: #fbb913;
}
.intro::after {
  content: "";
  position: absolute;
  background-image: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  display: block;
}
.intro .wrap {
  position: relative;
  height: 100%;
}
.intro .inner img {
  width: 100%;
  height: auto;
}

.intro .inner {
  position: relative;
  z-index: 1;
}

.intro .inner p {
  color: #4e4c4c;
  font-size: 1.5em;
  font-weight: 700;
}

.container_intro {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.container_intro .col {
  width: 50%;
}

/* Home intro */
.home .intro .wrap {
  position: relative;
  overflow: visible;
}
.home .intro .wrap::before {
  content: "";
  display: block;
  position: absolute;
  left: -160px;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  width: 100%;
  height: 120%;
  background: url(../img/bytovka.jpg) no-repeat center / contain;
}
.home .intro .wrap h1 {
  font-size: 4rem;
}
.home .intro .wrap .inner {
  padding-left: 60px;
}

/* Single post & category */
.single-post .intro h2,
.category .intro h2 {
  font-size: 3em;
}
.single-post .intro h1,
.category .intro h1 {
  margin-bottom: 20px;
}
.single-post .intro {
  min-height: 20vh;
}
.category .intro {
  min-height: 20vh;
}

/* --- Transforms -------------------------------------------- */
.tilt-left {
  transform: translateX(-40px);
}
.tilt-right {
  transform: translateX(40px);
}

/* --- Testimonials ------------------------------------------ */
.testemonial .col {
  padding: 20px 0 0 50px;
  font-style: italic;
  background: url(../img/quote.svg) no-repeat top left / 80px;
}
.testemonial .col .name {
  color: #7e241b;
  font-style: normal;
}

/* --- References / Portfolio -------------------------------- */
.reference {
  margin-bottom: 20px;
}
.reference .item {
  display: inline-block;
  width: calc(25% - 1rem);
  padding: 10px;
  vertical-align: top;
  margin: 2px;
  border: 1px solid #ededed;
  border-radius: 4px;
  background-color: #fff;
  transition: 0.4s;
  text-align: center;
}
.reference .item:hover {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.05);
}
.reference .item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
}
.reference .item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  padding: 0 10px;
  text-transform: none;
  margin: 1rem 0 0;
  color: #4e4c4c;
}

/* --- Green container --------------------------------------- */
.container-zelena {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.container-zelena div {
  width: calc(50% - 1rem);
  padding: 2rem;
  background-color: #f2f2f2;
}
.container-zelena div:first-child {
  background-color: #108a00;
  color: #fff;
}
.container-zelena div:first-child h3 {
  color: #fbb913;
}
.container-zelena div h3 {
  font-weight: 700;
  font-size: 150%;
  color: #7e241b;
}
.container-zelena div img {
  max-width: 360px;
  width: 80%;
}

/* --- Footer ------------------------------------------------ */
#footer {
  background-color: #4e4c4c;
  color: #fff;
}
#footer h3 {
  font-size: 1.2em;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 700;
}
#footer h2 {
  color: #fff;
}

#footer .container_footer {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
#footer .container_footer .col {
  width: calc(50% - 1rem);
}
#footer img {
  max-width: 50%;
}

/* =============================================================
   RESPONSIVE — Tablet (max 768px)
   ============================================================= */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-toggle {
    display: block;
  }

  #footer img {
    max-width: 80%;
  }

  #header nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 150;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 80px 20px 40px;
    float: none;
    text-align: center;
  }
  #header nav ul li.btn {
    margin-left: 0;
  }

  .open #header nav ul {
    display: flex;
  }

  #header nav ul li {
    display: block;
    margin: 8px 0;
  }

  #header nav ul li a {
    font-size: 1.4em;
    padding: 12px 20px;
  }

  .logo img {
    width: 160px;
  }

  .home .intro .wrap h1 {
    font-size: 2.5rem;
  }
  .home .intro .wrap .inner {
    padding-left: 20px;
  }
  .intro h1 {
    font-size: 3em;
  }
}

/* =============================================================
   RESPONSIVE — Mobile (max 670px)
   ============================================================= */
@media (max-width: 670px) {
  h1,
  .intro h1 {
    font-size: 2.2em;
  }
  h2 {
    font-size: 1.5em;
  }

  .intro {
    height: auto;
    max-height: none;
    padding: 60px 0 40px;
  }
  .intro h1 {
    font-size: 2em;
  }
  .intro .inner {
    position: relative;
    top: auto;
    transform: none;
  }
  .intro .inner p {
    font-size: 1em;
  }

  .container_intro {
    flex-direction: column;
    gap: 1.5rem;
  }
  .container_intro .col {
    width: 100%;
  }

  .section {
    padding: 40px 0;
  }

  .reference .item {
    width: calc(50% - 1rem);
    float: none;
  }

  .container-zelena div {
    width: 100%;
  }

  .home .intro .wrap h1 {
    font-size: 2rem;
  }
  .home .intro .wrap .inner {
    padding-left: 0;
  }
  .home .intro .wrap::before {
    content: "";
    display: block;
    position: absolute;
    left: 0px;
    bottom: -200px;
    transform: none;
    z-index: -1;
    width: 100vw;
    height: 120%;
    background: url(../img/bytovka.jpg) no-repeat left / auto 100%;
  }
  .logo img {
    width: 140px;
  }

  .tilt-left,
  .tilt-right {
    transform: none;
  }
  #footer .container_footer .col {
    width: 100%;
  }

  .wp-block-kadence-column {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.grecaptcha-badge {
  display: none !important;
}
