/* ==========================================================================
   KUTIL PEPA
   Hlavní stylesheet
   ========================================================================== */


/* ==========================================================================
   RESET
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.7;

    color: var(--text);
    background: #ffffff;

    overflow-x: hidden;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    padding-left: 1.25rem;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}


/* ==========================================================================
   PROMĚNNÉ
   ========================================================================== */

:root {

    --green: #0b6b4c;
    --green-dark: #084d37;

    --orange: #c7861b;
    --orange-dark: #b5720d;

    --text: #444444;
    --light: #f7f7f7;
    --white: #ffffff;

    --container-width: 1200px;

    --header-height: 95px;

    --radius: 12px;

    --shadow:
        0 12px 30px rgba(0,0,0,.12);

    --transition:
        .35s ease;
}


/* ==========================================================================
   TYPOGRAFIE
   ========================================================================== */

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 3px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2rem);
}

h3 {
    font-size: 1.5rem;
    color: var(--green);
	margin-top: 2rem;
	margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
}

strong {
    font-weight: 700;
}


/* ==========================================================================
   SPOLEČNÉ
   ========================================================================== */

.container {
    width: min(92%, var(--container-width));
    margin-inline: auto;
}

section {
    padding: 90px 0;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.two-columns .image {
    display: flex;
    justify-content: center;
}

.two-columns img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


/* ==========================================================================
   ZELENÝ NADPIS SEKCE
   ========================================================================== */

.section-title {
    position: relative;
    background: var(--green);
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 70px;
}

.section-title h2 {
    margin: 0;
    color: #ffffff;
    letter-spacing: 2px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-top: 28px solid var(--green);
}


/* ==========================================================================
   TLAČÍTKA
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 17px 34px;
    border-radius: 40px;
    background: var(--orange);
    color: #ffffff;
    font-weight: 700;
    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);

    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0);
}


/* ==========================================================================
   POMOCNÉ TŘÍDY
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.hidden {
    display: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

#header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    transition:
        height .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

#header.scrolled {
    height: 78px;
    box-shadow: 0 5px 20px rgba(0,0,0,.12);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ==========================================================================
   LOGO
   ========================================================================== */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    transition: .35s ease;
}

#header.scrolled .logo img {
    height: 30px;
}

/* ==========================================================================
   MENU
   ========================================================================== */

#nav {
    display: flex;
    align-items: center;
}

#nav ul {
    display: flex;
    align-items: center;
    gap: 42px;
    list-style: none;
    padding: 0;
}

#nav a {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    font-weight: 700;
    color: #555;
    transition: color var(--transition);
}

#nav a:hover,
#nav a.active {
    color: var(--orange);
}

#nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 4px;
    background: var(--orange);
    transition: width var(--transition);
}

#nav a:hover::after,
#nav a.active::after {
    width: 100%;
}

/* ==========================================================================
   HAMBURGER
   ========================================================================== */

.hamburger {
    display: none;
    width: 42px;
    height: 34px;
    position: relative;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--green);
    border-radius: 3px;
    transition: .35s ease;
}

.hamburger span:nth-child(1) {
    top: 2px;
}

.hamburger span:nth-child(2) {
    top: 15px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

.hamburger.open span:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    top: 15px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: var(--header-height);
    text-align: center;
    background:
        url("../img/hero.jpg")
        center center / cover
        no-repeat;

    overflow: hidden;
}

/* Ztmavení obrázku */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(0,0,0,.58),
            rgba(0,0,0,.42)
        );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(92%, 900px);
    color: #ffffff;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

.hero-content.show {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    margin-top: 1em;
	margin-bottom: 1.5em;
    color: #ffffff;
    text-transform: uppercase;
}

.hero h2 {
    margin-bottom: 28px;
    color: #ffffff;
    font-weight: 400;
}

.hero-text {
    max-width: 650px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

.hero-call {
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.hero-phone {
    display: inline-block;
    margin-bottom: 42px;
    font-size: clamp(1.5rem,4vw,2.5rem);
    font-weight: 700;
    color: #ffffff;
    transition: color var(--transition);
}

.hero-phone:hover {
    color: var(--orange);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   O MNĚ
   ========================================================================== */

#omne {
    background: var(--white);
}

#omne .text p:last-child {
    margin-bottom: 0;
}

#omne .image {
    justify-content: center;
}

#omne .image img {
    width: 100%;
    max-width: 500px;
    border-radius: 0;
    box-shadow: none;
}


/* ==========================================================================
   NABÍDKA SLUŽEB
   ========================================================================== */

#sluzby {
    background: var(--light);
}

.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
    align-items: start;
}


/* ==========================================================================
   KARTA SLUŽBY
   ========================================================================== */

.service {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.service:hover {
    box-shadow:
        0 20px 40px rgba(0,0,0,.15);
}


/* ==========================================================================
   OBRÁZEK SLUŽBY
   ========================================================================== */

.service-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.service:hover .service-image img {
    transform: scale(1.05);
}


/* ==========================================================================
   TEXT SLUŽBY
   ========================================================================== */

.service-body {
    flex: 1;
    padding: 30px;
}

/* .service-body h3 {

    margin-bottom: 22px;

    text-align: center;

    color: var(--green);

} */

.service-body ul {
    margin: 0;
    padding-left: 22px;
}

.service-body li {
    margin-bottom: 10px;
}

.service-body li:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   ANIMACE NASUNUTÍ OBRÁZKŮ
   ========================================================================== */

.slide-left,
.slide-right {
    opacity: 0;
    transition:
        transform .8s ease,
        opacity .8s ease;
}

.slide-left {
    transform: translateX(-120px);
}

.slide-right {
    transform: translateX(120px);
}

.slide-left.show,
.slide-right.show {
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================================================
   FADE ANIMACE SEKCÍ
   ========================================================================== */

.fade,
.slide-left,
.slide-right {
    opacity: 1;
    transform: none;
}

.js .fade {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.js .fade.show {
    opacity: 1;
    transform: translateY(0);
}

.js .slide-left {
    opacity: 0;
    transform: translateX(-120px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.js .slide-right {
    opacity: 0;
    transform: translateX(120px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.js .slide-left.show,
.js .slide-right.show {
    opacity: 1;
    transform: none;
}



/* ==========================================================================
   CENÍK
   ========================================================================== */

#cenik {
    background: var(--white);
}

#cenik .image {
    display: flex;
    justify-content: center;
}

#cenik .image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.price-list {
    margin: 25px 0 35px;
    padding-left: 22px;
}

.price-list li {
    margin-bottom: 12px;
}


/* ==========================================================================
   FOOTER / KONTAKT
   ========================================================================== */

footer {

    background: var(--green-dark);
    color: var(--white);
    margin-top: 60px;
}

.footer {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 60px;
    align-items: center;
    padding: 70px 0;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo img {
    width: 180px;
    height: auto;
}

.footer-contact h2,
.footer-right h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.footer-contact p,
.footer-right p {
    margin-bottom: 14px;
}

.footer a {
    color: var(--white);
    transition: color var(--transition);
}

.footer a:hover {
    color: var(--orange);
}

.footer-right {
    text-align: left;
}

.footer-right .btn {
    margin-top: 20px;
}

.copyright {
    text-align: center;
    padding: 22px;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: .75rem;
}


/* ==========================================================================
   ODKAZY NA SEKCE
   ========================================================================== */

#home,
#omne,
#sluzby,
#cenik,
#kontakt {

    scroll-margin-top: calc(var(--header-height) + 10px);

}


/* ==========================================================================
   TABLETY
   ========================================================================== */

@media (max-width: 992px) {

    :root {
        --header-height: 82px;
    }

    .logo img {
        height: 42px;
    }

    #header.scrolled .logo img {
        height: 28px;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-right {
        text-align: center;
    }

}


/* ==========================================================================
   MOBILNÍ MENU
   ========================================================================== */

@media (max-width:768px){

    section{
        padding:70px 0;
    }

    .hamburger{
        display:block;
        z-index:1100;
    }
	
	.no-js .hamburger {
		display: none;
	}

    #nav{
        position:fixed;
        top:0;
        right:-100%;
        width:300px;
        height:100vh;
        background:#ffffff;
        box-shadow:-5px 0 20px rgba(0,0,0,.15);
        transition:right .35s ease;
		display: flex;
		align-items: flex-start;
		justify-content: flex-start;
        /* padding-top:110px; */
    }

    #nav.open{
        right:0;
    }

    #nav ul{
        display: flex;
		flex-direction:column;
		align-items: flex-start;
        gap:25px;
		list-style: none;
		padding: 90px 30px 30px;
		margin: 0;
		width: 100%;
    }

    #nav a{
        display: block;
		width: 100%;
		font-size:1.15rem;
    }
	
	.no-js #nav {
		position: static !important;
		width: auto !important;
		height: auto !important;
		box-shadow: none !important;
	}

    .hero{
        min-height:90vh;
    }

    .hero-phone{
        font-size:2.2rem;
    }

    .btn{
        min-width:200px;
    }

}


/* ==========================================================================
   TELEFONY
   ========================================================================== */

@media (max-width:576px){

    body{
        font-size:16px;
    }

    .logo img{
        height:40px;
    }

    #header.scrolled .logo img{
        height:30px;
    }

    .section-title{
        margin-bottom:50px;
        padding:22px 15px;
    }

    .service-body{
        padding:24px;
    }

    .hero h1{
        letter-spacing:1px;
    }

    .hero h2{
        font-size:1.5rem;
    }

    .hero-text{
        font-size:1rem;
    }

    .hero-phone{
        font-size:1.9rem;
    }

    .footer{
        padding:50px 0;
    }

}


/* ==========================================================================
   VELKÉ MONITORY
   ========================================================================== */

@media (min-width:1600px){

    :root{
        --container-width:1400px;
    }

    body{
        font-size:18px;
    }

}


/* ==========================================================================
   REDUKCE ANIMACÍ
   ========================================================================== */

@media (prefers-reduced-motion: reduce){

    *{
        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;
    }

}