@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,100..900;1,100..900&family=Moderustic:wght@300..800&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,100..900;1,100..900&family=Moderustic:wght@300..800&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
:root {
    --primary-color: #262930;
    --section-color: #fff;
    --light-bg: #edf2f9;
    --clr-highlight: #ffbf08;
    --clr-black: #000;
    --clr-light-gray: #f2f2f2;
    --clr-gray: #cecece;
    --clr-white: #fff;
    --title-gradient: linear-gradient(90deg,rgba(255, 255, 255, 1) 1%, rgba(146, 146, 146, 1) 98%);
    --hmbg-color: #a19b9b;
    --font-size-base: 1em;
    --base-spacing: 17vw;
    --font-title: 'Aleo', sans-serif;
    --font-base: 'Source Sans 3', sans-serif;

    --hamburger-size: 4rem;
    --hamburger-transition-time: 200ms;
    --hamburger-bg: var(--light-bg);
    --hamburger-color: var(--hmbg-color);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    @media screen and (min-width: 1200px) {
        font-size: 22px;
    }
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--section-color);
    font-family: var(--font-base);
}

h1, h2, h3{
    font-family: var(--font-title);
    text-align: center;
}

p{
    font-family: var(--font-base);
}

.wrapper{
    margin-inline: 0;
    @media screen and (min-width: 1200px) {
        margin-inline: var(--base-spacing);
    }
}

.illust-wrapper{
    margin-inline: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    @media screen and (min-width: 1200px) {
        margin-inline: var(--base-spacing);
        flex-direction: row;
        gap: 2em;
    }
}

/* Header and Navigation */
.header {
  background-color: var(--light-bg);
  position: relative;
  top: 0;
  z-index: 254;
  width: 40%;
  margin-inline: auto;
  @media screen and (min-width: 1200px) {
    width: 100%;
  }
}

.header-title{
    position: absolute;
    z-index: 255;
    left: 5%;
    top: 3%;
    right: 80%;
    text-align: center;
    font-weight: bold;
    padding: 0;
    font-size: 1em;
    background-color: var(--clr-light-gray);
    color: var(--clr-black);
    clip-path: polygon(0 0, 100% 0%, 100% 88%, 50% 100%, 0 86%);
    @media screen and (max-width: 1200px) {
        display: none;
    }   
}

.header-title-text{
    margin: 0.5em 0 0 0;
    font-size: 20px;
}

.header-title-text-bar {
    height: 2px;
    background-color: var(--clr-black);
}

.header-title-text2{
    font-style: var(--font-title);
    font-size: 36px;
    text-transform: uppercase;
    margin: 0 0 0.5em 0;
}

.header-title-mobile{
    position: absolute;
    left: 25%;
    right: 25%;
    text-align: center;
    padding: 0;
    font-size: 1em;
    z-index: 1;
    @media screen and (min-width: 600px) {
        left: 30%;
        right: 30%;
    }
    @media screen and (min-width: 1200px) {
        display: none;
    }   
}

.header-title-mobile-text{
    margin: 0;
    font-size: 16px;
    background-color: var(--primary-color);
    color: var(--clr-white);
}

.header-title-mobile-text2{
    font-style: var(--font-title);
    font-size: 30px;
    text-transform: uppercase;
    margin: 0;
    background: var(--title-gradient);
    border-bottom-right-radius: 0.25em;
    border-bottom-left-radius: 0.25em;
}

@media screen and (min-width: 1300px) {
  .header-title { font-size: 1.4em; }
}

.header-nav{
  position: fixed;
  width: 100%;
  top: 0;
  right: auto;
  bottom: 0;
  left: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  font-weight: 700;
  transition: left 200ms;
  background-color: var(--light-bg);
}

.header-nav.visible {
  background-color: var(--light-bg);
  left: 0;
}

.header-nav button{
  padding: 0;
  margin: 0;
}

@media screen and (min-width: 1200px) {
  .header-nav {
      font-weight: 400;
      left: 0;
      position: relative;
      width: 100%;
      flex-direction: row;
      overflow: unset;
      background-color: var(--clr-white);
  }
}

.menu{
  display: flex;
  flex-direction: column;
  list-style-type: none;
}

@media screen and (min-width: 1200px) {
  .menu {
      flex-direction: row;
      margin-left: 5em;
  }
}

.menu li{
  border-radius: 0.4em;
}

.menu a{
  display: block;
  color: var(--clr-black);
  font-size: 1.3em;
  padding: 0;
  text-decoration: none;
}

@media screen and (min-width: 1200px) {
  .menu a {
      color: var(--clr-black);
      padding: 1.5em 1em 1.5em 1em;
      display: inline;
      font-size: 1.2em;
  }
}

  .menu-item {
    line-height: 2;
  }

/* Hero Section (Introduction) */
.hero {
     background: url('/zdroje/bg_hlavicka_mobil.jpg') no-repeat center/cover;
    @media screen and (min-width: 1200px) {
        background: url('/zdroje/bg_hlavicka.jpg') no-repeat 45%;
        background-size: cover;
    }
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    @media screen and (min-width: 1600px){
       height: 50vh;
       text-align: left;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-inline: var(--base-spacing);
    text-align: center;
    @media screen and (min-width: 1200px){
        margin-right: 25em;
        text-align: left;
    }
    @media screen and (min-width: 1600px){
       margin-right: 35em;
       margin-left: 5em;
    }
}

.hero h1 {
    font-size: 1.5rem;
    color: var(--clr-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 5rem;
    margin-inline: 0;
    text-align: center;
    @media screen and (min-width: 1200px) {
        font-size: 2rem; 
        margin-bottom: 2rem;
        text-align: left;
    }
}

.tel-button{
    text-decoration: none;
    color: var(--primary-color);
    padding: 0.75em 1em;
    background-color: var(--clr-highlight);
    border-radius: 2em;
    font-weight: bold;
    @media screen and (min-width: 1200px){
        padding: 0.75em 2em;
    }
}

.hero p,
.about {
    font-size: 1.2rem;
    margin-inline: 0;
    @media screen and (min-width: 1200px) {
        margin-inline: var(--base-spacing);
    }
}

.section {
    padding: 3rem 2rem;
    text-align: left;
}

.section:nth-child(6){
    background-color: var(--clr-light-gray);
}

.section:nth-child(7){
    background: url(/zdroje/bg_kolobezka.jpg) no-repeat 70%;
    color: var(--clr-white);
    font-size: 24px;
}

.section:nth-child(8){
    background-color: var(--clr-light-gray);
}

.section-illust{
    background: url(/zdroje/foto_illustrace.jpg) no-repeat;
    background-size: cover;
    height: 300px;
    width: auto;
    border-radius: 0.5em;
    @media screen and (min-width: 1200px){
        width: 600px;
    }
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    @media screen and (min-width: 1200px){
        grid-template-columns: repeat(2, 1fr);
    }
}
.service-block {
    background-color: var(--clr-highlight);
    padding: 2em;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.service-block h3 {
    margin-top: 0;
    padding: 0.5em;
    background-color: var(--primary-color);
    border-radius: 1em;
    color: var(--clr-white);
    @media screen and (min-width: 1200px) {
        width: 80%;
    }
}
.service-block.featured {
    grid-row: auto;
    @media screen and (min-width: 1200px) {
        grid-row: span 2;
    }

}

/* Yearly Check-Up Section */
.checkup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.checkup-item {
    background-color: var(--clr-highlight);
    padding: 1.5em;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
    text-align: left;
}

.checkup-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.checkup-item h3 {
    margin-top: 0;
    font-size: 0.8em;
    color: var(--clr-white);
    background-color: var(--clr-black);
    padding: 0.5em;
    border-radius: 1em;
 }

/* Pricing Table */
.pricing-table {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    text-align: left;
}

.pricing-table th, .pricing-table td {
    padding: 20px;
    border-bottom: 1px solid var(--light-bg);
}

.pricing-table th {
    background: var(--primary-color);
    color: var(--clr-highlight);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.pricing-table tbody td {
    transition: background-color 0.2s ease-in-out;
}

.pricing-table tbody tr:last-child td {
    border-bottom: 0;
}

.pricing-table td:first-child {
    font-weight: bold;
}

.pricing-table tbody tr:nth-child(even) {
    background-color: var(--light-bg);
}

.pricing-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

/* Contact & Footer */
.main-footer {
    background: url(/zdroje/bg_paticka.jpg) no-repeat 20%;
    background-size: cover;
    color: var(--section-color); 
    padding: 4rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    @media screen and (min-width: 1200px){
        background: url(/zdroje/bg_paticka.jpg) no-repeat;
        background-size: cover;
    }
}

.footer-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
}

.footer-title{
    position: relative;
    text-align: center;
    font-size: 1em;
    border-radius: 0.5em;
    margin-inline: 2em;
    @media screen and (min-width: 1200px) {
        margin-inline: 6em;
    }
}

.footer-title-text{
    margin: 0;
    font-size: 16px;
    background-color: var(--primary-color);
    color: var(--clr-white);
}

.footer-title-text2{
    font-style: var(--font-title);
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
    background: var(--title-gradient);
    color: var(--clr-black);
    border-bottom-left-radius: 0.25em;
    border-bottom-right-radius: 0.25em;
}

.footer-contact {
    flex: 1;
    min-width: 300px;
    width: 100%;
}

.footer-contact h2 {
    color: var(--clr-white);
    text-align: center; 
    font-size: 2rem;
}

.footer-contact p{
    text-align: center;
}

.kontakt-footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    @media screen and (min-width: 1200px) {
        flex-direction: row;
        justify-content: center;
    }
}

.mail-button-footer{
    text-decoration: none;
    color: var(--clr-black);
    padding: 0.75em;
    background-color: var(--clr-highlight);
    border-radius: 2em;
    font-weight: bold;
}

.tel-button-footer{
    text-decoration: none;
    color: var(--clr-black);
    padding: 0.75em;
    background-color: var(--clr-highlight);
    border-radius: 2em;
    font-weight: bold;
}

.footer-map{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    align-items: center;
}

.footer-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 1em;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    @media screen and (min-width: 1200px) {
        width: 60%;
    }
}

.footer-map p{
    color: #585b5f;
    text-align: center;
    margin-top: 0;
}

#back-to-top{
    /* display: none; */
    display: block;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: red;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    transform: translateY(100px);
    transition: transform 300ms;
}

#back-to-top.visible {
    /* display: block; */
    /* bottom: 20px; */
    transform: translateY(0);
}

#back-to-top:hover{
    background-color: #555;
}

/*
 * HAMBURGER
 */

 .hamburger {
  position: fixed;
  z-index: 255;
  top: 0.7rem;
  right: 1rem;
  width: var(--hamburger-size);
  height: var(--hamburger-size);
  /*background: var(--hamburger-bg);*/
  font-size: 0;
  cursor: pointer;
  transition: background var(--hamburger-transition-time);
}

@media screen and (min-width: 1200px) {
  .hamburger {
      display: none !important;
  }
}

.hamburger span {
  position: absolute;
  top: 46.875%;
  left: 18.75%;
  width: 62.5%;
  height: 3px;
  background-color: var(--hamburger-color);
  transition: background 0s var(--hamburger-transition-time);
}

.hamburger span:before,
.hamburger span:after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  transition-delay: var(--hamburger-transition-time), 0s;
  transition-duration: var(--hamburger-transition-time), var(--hamburger-transition-time);
  background-color: var(--hamburger-color);
}

.hamburger span:before {
  top: -400%;
  transition-property: top, transform;
}

.hamburger span:after {
  bottom: -400%;
  transition-property: bottom, transform;
}

.hamburger.active span { background: transparent; }
.hamburger.active span:before { top: 0%; transition-delay: 0s, var(--hamburger-transition-time); transform: rotate(45deg); }
.hamburger.active span:after { bottom: 0%; transition-delay: 0s, var(--hamburger-transition-time); transform: rotate(-45deg); }
