/* 
    Theme name: IVEBA Security s.r.o.
    Author: Petr Svoboda
    Version: 0.1
    Description: WordPress theme directly for company Iveba Security s.r.o. located in Rakovník.
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Import Regular font */
@font-face {
    font-family: 'Handel';
    src: url('fonts/Handel-Gothic-D-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
  
/* Import Medium font */
@font-face {
    font-family: 'Handel';
    src: url('fonts/Handel-Gothic-D-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
  
/* Import Bold font */
@font-face {
    font-family: 'Handel';
    src: url('fonts/Handel-Gothic-D-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --blue: rgb(0, 141, 210);
    --green: #1AA254;
    --red: #E21E22;
    --black: #2A2A2A;
    --white: #f2f2f2;
}

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

    font-family: Montserrat;

    font-size: 1.6rem;
}

html {
    font-size: 62.5%;

    background-color: var(--white);
}


.btn,
.wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 20px;

    border: 1px solid var(--blue) !important;

    font-weight: 500;
    color: var(--white) !important;
    text-decoration: none;

    background-color: var(--blue);

    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn:hover,
.wp-block-button__link:hover {
    background-color: var(--white);
    color: var(--blue) !important;
    text-decoration: none !important;
}




body {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

header {
    position: relative;
}

header > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* opacity: 0.1; */
    filter: brightness(0.65);
}

header > nav {
    height: 70px;

    padding-right: 20px;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;

    background-color: #fff;

    border-bottom: 2px solid #000000;
}

header nav div {
    width: 100%;
    height: 100%;
    max-width: 1150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    text-decoration: none !important;
    color: #000;
}

header nav div a img {
    height: 50px;
    margin-left: 20px;
}

header nav div span {
    font-size: 3rem;
    font-family: Handel;
}

header nav div > ul {
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 25px;

    list-style-type: none;
}


header nav div > ul > li {
    position: relative;

    height: 100%;
    display: flex;
    justify-items: center;
}

header nav div > ul > li a {
    text-decoration: none !important;
    color: #000;

    font-size: 2rem;
    font-weight: 500;

    transition: .3s;
}

header nav div ul li a:hover {
    color: var(--green);
}

header nav div ul li.current-menu-item > a {
    color: var(--blue);
}

header nav ul li ul {
    display: none;
}

header nav ul li:hover ul {
    position: absolute;
    top: 60px;

    width: max-content;

    z-index: 100;

    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;    

    list-style-type: none;
}

header nav ul li ul li a {
    padding: 10px 20px;
    
    text-decoration: none !important;
    color: black;
    
    background-color: white;

    text-align: left;

    transition: .3s;
}

/* header nav div > ul > li#menu-item-151:active {
    pointer-events: none;
} */


header nav .mobile {
    display: none;
}

header nav .menu-btn {
    display: none !important;
}

@media screen and (max-width: 820px) {
    .mobile {
        display: block !important;
    }

    header nav ul li#menu-item-151 {
        pointer-events: all;
    }

    header nav ul li ul {
        display: none !important;
    }

    header nav {
        position: relative !important;
    }

    header nav div >  ul {
        display: none !important;
        position: absolute;
        top: 70px;

        width: 100%;
        height: max-content;
        align-items: stretch;
        flex-direction: column;
        gap: 0px !important;

        background-color: #ffffff;

        padding: 20px 0 !important;

        /* border: 2px solid black; */

        z-index: 500;
    }

    header nav div > ul > li {
        width: 100%;
        height: auto !important;

        padding: 10px;
    }

    header nav div > ul > li > a {
        width: 100%;
        display: block;
        padding: 5px 20px;
    
        text-align: center;
        text-decoration: none !important;
        color: black;
        
        background-color: white;
    }

    /* MOBILE MENU ICON LINES */

    header .menu-icon .nav-icon {
        background-color: #000000;
        display: block;
        height: 3px;
        width: 15px;
        position: relative;
        transition: background .2s ease-out;

        display: flex;
        justify-content: flex-end;
    }

    header .menu-icon .nav-icon:before {
        background-color: #000000;
        content: "";
        display: block;
        height: 100%;
        position: absolute;
        transition: all .2s ease-out;
        width: 150%;
        top: 5px;
    }

    header .menu-icon .nav-icon:after {
        background-color: #000000;
        content: "";
        display: block;
        height: 100%;
        position: absolute;
        width: 150%;
        transition: all .2s ease-out;
        top: -5px;
    }

    /* DISPLAING MOBILE MENU */

    header .menu-btn:checked~.menu {
        display: flex !important;
        transition: 0.5s;
        max-width: 100%;
    }

    /* MOBILE MENU ICON NAVIGATION */

    header .menu-btn:checked~.menu-icon .nav-icon {
        background-color: transparent;
    }

    header .menu-btn:checked~.menu-icon .nav-icon:before {
        transform: rotate(45deg);
        top: 0;
    }

    header .menu-btn:checked~.menu-icon .nav-icon:after {
        transform: rotate(-45deg);
        top: 0;
    }
}

header section {
    padding: 150px 20px 100px;

    display: flex;
    align-items: center;
    justify-content: center;
}

header section div {
    width: 100%;
    max-width: 1150px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
}

header section div h1 {
    font-size: 3.8rem;
    font-family: Handel;
    font-weight: bold !important;

    letter-spacing: 1.5px;

    color: #ffffff;
}

header section div p {
    font-size: 2.2rem;
    font-weight: 500 !important;

    max-width: 350px;

    color: #ffffff;
}

header section div a {
    font-size: 1.8rem;
}

main {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

main section {
    width: 100%;

    display: flex !important;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;

    padding: 20px;
}

main article {
    width: 100%;
    max-width: 1150px;
    align-self: center;
}

main h2 {
    font-size: 2.5rem;
    font-weight: bold !important;

    text-align: center;

    margin-bottom: 25px;

    color: #000000;

    position: relative;
}

main h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;

    background-color: var(--green);

    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

main a {
    color: var(--blue);
    text-decoration: none;

    transition: 0.3s;
}

main a:hover {
    color: var(--green);
    text-decoration: underline;
}

main.front-page section article:first-of-type p {
    text-align: justify;
    line-height: 1.75;
}

/* main.front-page section:has(article.home-page-services) {
    background: linear-gradient(180deg, #f2f2f2 0%, rgba(0, 140, 210, 0.5) 50%);
} */

.wp-block-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blue);
    padding: 10px 20px;
    margin: 10px;

    font-size: 1.7rem;
    font-weight: 500;

    border-radius: 0;
}

section.services {
    gap: 20px;
}

.home-page-services {
    padding: 10px 0;
}

.home-page-services {
    width: 100%;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.home-page-service {
    background-color: var(--white);
    margin: 0 auto;

    min-width: 175px;
    max-width: 190px;

    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-direction: column;
    gap: 25px;

    box-shadow: 1px 4px 10.4px black;

    padding: 20px;

    text-decoration: none !important;

    transition: .2s ease-in-out;
}

.home-page-service:hover {
    scale: 1.01;
    transform: translateY(5px);

    /* box-shadow: 1px 4px 10.4px #1aa2554f; */
    box-shadow: 1px 4px 10.4px var(--green);
}

.home-page-service span {
    margin: 0 auto;
    width: min-content;
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: var(--green);
    padding: 10px;
    border-radius: 100%;
}

.home-page-service span img {
    height: 40px;
    width: 40px;
}

.home-page-service h4 {
    font-size: 1.8rem;
    font-weight: bold !important;

    text-align: center;

    color: #000000;
}

.home-page-service p {
    font-size: 1.4rem;
    font-weight: 500 !important;
    font-style: italic;

    text-align: center !important;

    color: #555555;
} 





.hps-carousel-sec {
    max-width: 1150px;
    width: 90vw;
}

.hps-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 22%;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    width: 100%; /* Zajištění plné šířky */
}

.hps-carousel .home-page-service {
    scroll-snap-align: center;
}


@media screen and (max-width: 1050px) {
    .hps-carousel {
        grid-auto-columns: 39%;
    }
}

@media screen and (max-width: 750px) {
    .hps-carousel {
        grid-auto-columns: 63%;
    }
}

@media screen and (max-width: 500px) {
    .hps-carousel {
        grid-auto-columns: 83%;
    }
}





.home-page-services-wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
    padding: 20px;
}

.home-page-services-wide .home-page-service-wide {
    width: 100%;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 5px;
    
    padding: 20px;
    
    text-decoration: none !important;
    
    box-shadow: 1px 4px 10.4px black;

    transition: .2s ease-in-out;
}

.home-page-services-wide .home-page-service-wide:hover {
    scale: 1.01;
    transform: translateY(5px);

    box-shadow: 1px 4px 10.4px var(--green);
}

.home-page-services-wide .home-page-service-wide span {
    align-self: center;

    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: var(--green);
    border-radius: 100%;

    grid-row: 1 / 3;
}

.home-page-service-wide span img {
    height: 40px;
    width: 40px;
}

.home-page-service-wide h4 {
    font-size: 1.8rem;
    font-weight: bold !important;

    color: #000000;
}

.home-page-service-wide p {
    font-size: 1.4rem;
    font-weight: 500 !important;
    font-style: italic;
    text-align: left !important;

    line-height: 1.75;

    color: #555555;
} 

@media screen and (max-width: 775px) {
    .home-page-services-wide {
        grid-template-columns: 1fr;
    }
    
}




section:has(article.contact-form) {
    background-color: rgba(0, 140, 210, 0.5);
}

section article.contact-form form {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
}

section article.contact-form > p {
    text-align: center !important;
    font-size: 2rem;
    font-weight: bolder;
    margin-bottom: 10px;
}

section article.contact-form > p.code200 {
    color: var(--green);
}

section article.contact-form > p.code400 {
    color: var(--red);
}

section article.contact-form form .inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media screen and (max-width: 775px) {
    section article.contact-form form .inputs {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 25px;
    }
}

section article.contact-form form .inputs div {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 15px;
}

section article.contact-form form .inputs div div {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
}

section article.contact-form form .inputs div div input {
    width: 100%;
    padding: 10px;
    border: 1px solid #000000;
}

section article.contact-form form .inputs div div textarea {
    width: 100%;
    height: 100%;
    padding: 10px;
    border: 1px solid #000000;
    resize: none;
}

section article.contact-form form .check-input {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

section article.contact-form form .check-input input {
    width: 75px;
    padding: 10px;
    border: 1px solid #000000;
}

section article.contact-form form button {
    color: #ffffff;
    padding: 8px 16px;
    font-size: 2rem;
    border: none;
    background-color: var(--blue);
    width: max-content;
    cursor: pointer;

    border: 2px solid var(--blue);

    transition: .3s;
}

section article.contact-form form button:hover {
    background-color: #ffffff;
    color: #000;
}

section article.contact-form form p, 
section article.contact-form form p a {
    color: #000;
    text-align: left !important;
}

body.page main section h1,
body.single main section h1,
body.error404 main section h1 {
    font-size: 3.5rem;
    font-weight: bold !important;

    text-align: center;

    margin-bottom: 25px;

    color: #000000;

    position: relative;
}

body.page main section h1::after,
body.single main section h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;

    background-color: var(--red);

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

body.page main section p,
body.single main section p {
    margin: 5px 0;
}

body.page main section ul,
body.single main section ul {
    list-style-position: inside;
    margin-left: 20px;
}

body.page main section iframe {
    width: 100%;
    max-width: 1150px;
    height: 500px;
}

body main section.services-icons article {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 15px;
}

body main section.services-icons article img {
    width: 15vw;
    height: 15vw;
    max-width: 75px;
    max-height: 75px;
}

body.page-id-60 main .references article{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;

    padding: 0 20px;
}

@media screen and (max-width: 800px) {
    body.page-id-60 main .references article{
        grid-template-columns: 1fr;
    }
}

body.page-id-60 main .references .reference {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

body.page-id-60 main .references .reference h3 {
    font-size: 2.3rem;
    font-weight: bold !important;
}

body.page-id-60 main .references .reference a {
    color: #000000;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}



footer {
    width: 100%;

    display: flex;
    align-items: stretch;
    justify-content: center;

    padding: 30px 20px 0;
}

footer * {
    font-size: 1.8rem;
}

footer section {
    width: 100%;
    max-width: 1150px;
    background-color: var(--black);

    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: auto 1fr auto;
    grid-gap: 20px;

    padding: 30px 50px 25px 20px;

    color: #fff;
}

footer section h2 {
    grid-column: 1 / 3;
    text-align: center;
}

footer section h2 a {
    font-family: Handel;
    font-size: 4rem;
    font-weight: 400 !important;
    text-decoration: none;
}

footer section ul {
    grid-column: 3 / 4;
    grid-row: 1 / 4;

    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 10px;

    list-style-type: none;
    color: #ffffff;
}

footer section ul li {
    text-align: right;
    color: #ffffff;
}

footer section ul li a {
    color: #ffffff;
    text-decoration: none;

    transition: .3s;
}

footer section ul li ul {
    display: none;
}

footer section ul li a:hover {
    color: var(--green);
}

footer section ul li.current-menu-item a {
    color: var(--blue);
}

footer section div {
    width: 100%;

    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 8px;
}

footer div h3 {
    font-size: 1.8rem;
    font-weight: bold !important;

    color: #ffffff;
}

footer div span {
    font-weight: 600;
}

footer section div p {
    text-align: center;
}

footer section div p a {
    color: #ffffff;
    text-decoration: none;
}

footer section div a {
    margin-top: 5px;
    text-align: center;
}

footer section a {
    color: #ffffff;
}

footer section #footer-copy {
    font-size: 1.4rem !important;
}

@media screen and (max-width: 980px) {
    footer section {
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(auto, auto);
    }

    footer section h2 {
        grid-column: 1 / 2;
    }
    
    footer section ul {
        grid-column: 2 / 3;
        grid-row: 1 / 4;
    }

    footer section > a {
        grid-column: 1 / 3;
    }

    footer section > p {
        grid-column: 1 / 3;
    }
}

@media screen and (max-width: 570px) {
    footer section {
        grid-template-columns: auto;
        grid-template-rows: repeat(auto, auto);
    }

    footer section h2 {
        text-align: center;
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    footer section ul {
        grid-row: 4 / 5;
        grid-column: 1 / 2;
    }

    footer section > a {
        grid-column: 1 / 2;
    }

    footer section > p {
        grid-column: 1 / 2;
    }
}
