/*
Theme Name: Kontaktikeskus
Theme URI: https://kontaktikeskus.ee
Author: kontaktikeskus
Author URI: https://kontaktikeskus.ee
Description: Theme for Kontaktikeskus website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kontaktikeskus
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/


body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #2B2D42;
    background-color: #EDF2F4;
}

/* HEADER */

header {
    background-color: #EDF2F4;
    height: 100px;
    align-items: center;
}

.logo {
    text-align: left;
    padding: 15px 0;
}

nav {
    text-align: center;
    padding: 35px 0;
}

nav a {
    color: #2B2D42;
    text-decoration: none;
    margin: 0 15px; /* Adjust margin between links */
    font-size: 18px; /* Adjust font size as needed */
    font-weight: 500;
}

nav a:hover {
    color: #8D99AE;
}

.languages {
    text-align: right;
    padding: 38px 0;
}

.languages img {
    height: 22px;
    padding-left: 8px;
}



/* Display sub-menu items when parent menu item is hovered over */

/* Apply styling to the submenu */
.sub-menu {
    text-align: left; /* Center the submenu links */
    padding: 10px 0; /* Adjust padding for the submenu */
    list-style: none; /* Remove default list style */
    position: absolute;
    top: 100%; /* Position the submenu below the parent */
    left: 0; /* Align the submenu with the left edge of the parent */
    z-index: 999; /* Ensure the submenu appears above other elements */
    display: none; /* Hide the submenu by default */
}

.menu-item:hover > .sub-menu {
    display: block; /* Display the submenu when the parent is hovered */
    white-space: nowrap; /* Prevent line breaks */
}

.menu-item-has-children {
    position: relative;
}


/* Apply styling to submenu links */
.sub-menu li a {
    color: #2B2D42;
    text-decoration: none;
    margin: 0 15px; /* Adjust margin between links */
    font-size: 18px; /* Adjust font size for submenu links */
    font-weight: 500;
}

/* Apply hover effect to submenu links */
.sub-menu li a:hover {
    color: #8D99AE;
}

/* footer menu */
#menu-footer-menu {
    list-style: none; /* Remove bullet points */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}





/* HOME PAGE */

/* HERO */

    .hero-content .hero-text {
        margin-top: 130px;
    }

    .hero-content .hero-text h1 {
        font-size: 50px;
    }

    .hero-content .hero-text p {
        font-size: 20px;
        margin-bottom: 60px;
    }

    /* Custom button styles */
    .custom-btn-red {
        background-color: #EF233C;
        color: white;
        border-radius: 3px;
        text-align: center; /* Center text horizontally */
        display: inline-block; /* Ensure the button only takes the width of its content */
        padding: 10px 20px; /* Adjust padding as needed */
    }

    .custom-btn-red:hover {
        background-color: #D0102A;
        color: white;
    }

    .custom-btn-outline-red {
        background-color: transparent;
        border: 1px solid #EF233C;
        color: #EF233C;
        border-radius: 3px;
    }

    .custom-btn-outline-red:hover {
        background-color: #EF233C;
        color: white;
    }

    .btn {
        font-size: 18px;
        height: 50px;
        width: 185px;
        margin-right: 10px; /* Adjust margin between buttons */
    }

 /* PARTNERS */   

 .partner-strip {
    background-color: #2B2D42;
    height: 120px;
    padding: 25px 0;
}

.partner-strip img {
    max-height: 70px; /* Adjust max-height as needed */
    display: block;
    margin: 0 auto; /* Center logos horizontally */
    max-width: 100%;
}

/* SERVICES */

.services {
    margin-top: 120px;
    text-align: center;
}

.services h2 {
    font-size: 45px;
    margin-bottom: 30px;
}

.services-description p {
    margin: 0 auto;
    margin-bottom: 60px;
}

.white-box {
    background-color: white;
    width: 336px;
    height: auto;
    margin: 0 auto;
    padding: 20px;
    border-radius: 3px;
    box-shadow: 0px 4px 20px rgba(43, 45, 66, 0.25);
}

.white-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
}

.klienditeenindus {
    float: right;
}

.telemarketing {
    float: left;
}

.services-cta {
    margin-top: 60px;
}

.services-cta a {
    text-decoration: none;
    color: #2B2D42;
    font-weight: 600;
}

 /* FOOTER */

 footer {
    background-color: #2B2D42;
    font-size: 14px;
    color: white;
    padding: 30px 0 60px;
    margin-top: 120px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-company-details {
    position: relative;
}

.footer-text {
    position: absolute;
    bottom: 0;
    left: 0;
}

.footer-text p {
    padding-left: 12px;
    margin-bottom: 0;
}

.column-heading {
    font-weight: bold;
    margin-bottom: 10px;
}

.column-links a,
.column-paragraphs p {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-socials {
    position: relative;
}

.footer-socials div {
    float: right;
}

.social-icons {
    display: flex;
    align-items: flex-start;
}

.social-icons img {
    margin-left: 10px;
}

.badges {
    position: absolute;
    bottom: 0;
    right: 0;
}

.badges img {
    height: 90px;
    width: auto;
    padding-right: 12px;
}

/* HOME PAGE - MEDIUM DEVICES (768px and smaller) */
@media (max-width: 767px) {
    .klienditeenindus, .telemarketing {
        float: none;
        margin-bottom: 30px;
    }
}

/* PEOPLE PAGE */

.people h2 {
    text-align: center;
    font-size: 45px;
    margin: 60px 0;
}

.people .card {
    margin: 0 auto 30px auto; /* Center the cards horizontally */
    max-width: 270px; /* Set max-width to match image width */
    border: none;
    border-radius: 3px;
    box-shadow: 0px 4px 20px rgba(43, 45, 66, 0.25);
}

.people  .card-img-top {
    width: 270px;
    height: auto;
    object-fit: cover;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.people .card-details {
    text-align: center;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: #2B2D42;
}

/* PEOPLE PAGE END */

/* Adjust the width of Lazy Block's people card */
.wp-block-lazyblock-people-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 270px; /* Adjust based on the actual width of your cards */
    /* No 'display: block;' or 'display: flex;' here unless needed for inner content layout */
}

.card-img-top {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important; /* Change to 'contain' if you don't want images to be cropped */
}
/* Adjust the width of Lazy Block's people card END */

/* Slick-slide for rotating partner logos on main index.php page */

.partner-logos .col-2 {  /* Slick-slide partner logos */
    margin: 15px 0; /* Adjust based on your design needs */
    display: flex;
    justify-content: center;
}


.slick-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logos img {
    width: auto; /* Or you can set this to 100% if they need to be full-width */
    height: auto; /* Maintains the original height */
    max-width: none; /* Ensures Slick doesn't constrain widths */
    object-fit: contain; /* Ensures the image fits within its container without stretching */
}
/* Hides next-previous arrows if slick-init.js somehow fails - Don't really need this part down here but used it for testing.*/
.slick-prev, .slick-next {
    display: none !important;
}
/* Slick-slide END */

/* Animations for index.php */
/* Initial state of the animated elements */
.white-box {
    opacity: 0;
    transform: translateY(70px); /* Increase from 30px to 50px for more movement */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out; /* Increase duration from 0.6s to 0.8s */
}

/* State of the elements when they are animated */
.white-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-cta {
    opacity: 0;
    transform: translateX(-70px); /* Start from the left */
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.services-cta.visible {
    opacity: 1;
    transform: translateX(0); /* Move to original position */
}
/* Animations for index.php END*/


    /* CONTACT PAGE */

    .contact h2 {
        text-align: center;
        font-size: 45px;
        margin: 60px 0;
    }
    
    .bold-20 {
        font-size: 20px;
        font-weight: 600;
    }

    .contact .description {
        width: 80%;
    }

    .contact .contact-info {
        margin: 50px 0 0 0;
    }

    .contact-flex-box {
        display: flex;
        vertical-align: middle;
        margin-bottom: 10px;
    }
    
    .contact-flex-box p {
        margin: 0 0 0 12px;
    }

    /* form */

    form {
        max-width: 100%;
        margin: 0 auto;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        height: 42px;
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #8D99AE;
        border-radius: 3px;
        box-sizing: border-box;
    }

    textarea {
        height: 150px;
    }

    input[type="submit"] {
        background-color: #EF233C;
        color: #fff;
        height: 50px;
        width: 130px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-size: 18px;
    }

    input[type="submit"]:hover {
        background-color: #CF102A;
    }

    /* google maps */

    .contact .map-container iframe {
        height: 230px;
        width: 100%;
        border-radius: 3px;
        margin: 60px 0;
    }

    /* offices */

    .contact .office-card {
        background-color: white;
        border-radius: 3px;
        padding: 10px 30px 30px;
        margin-bottom: 20px;
        box-shadow: 0px 4px 20px rgba(43, 45, 66, 0.25);
    }

    .contact .office-card .row > div {
        padding: 5px;
    }

    .contact .location-icon {
        text-align: right;
    }

    .contact .location-icon i {
        font-size: 24px;
    }

/* JOBS - SALES PAGE */

.jobs-sales h2 {
    text-align: center;
    font-size: 45px;
    margin: 60px 0 0 0;
}

.jobs-sales .subtitle {
    text-align: center;
    margin: 30px 0 60px 0;
}

.jobs-sales .description {
    width: 80%;
}

.jobs-sales .contact-info {
    margin: 30px 0;
}

/* JOBS - CUSTOMER SUPPORT PAGE */

.jobs-customer-support h2 {
    text-align: center;
    font-size: 45px;
    margin: 60px 0 0 0;
}

.jobs-customer-support .subtitle {
    text-align: center;
    margin: 30px 0 60px 0;
}

.jobs-customer-support .description {
    width: 80%;
}

.jobs-customer-support .contact-info {
    margin: 30px 0;
}

/* CALCULATOR */

.calculator-container {
    width: 700px; /* Adjust the width as needed */
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Adjust shadow as needed */
    border-radius: 10px;
}

.calculator-container form {
    text-align: center;
}

.calculator-container label {
    display: block;
    margin-bottom: 10px;
}

.calculator-container input[type="number"],
.calculator-container input[type="radio"] {
    margin-bottom: 10px;
}

.calculator-container button {
    display: block;
    margin: 0 auto;
}

.calculator-container p {
    margin-top: 20px;
}

.radio-container {
    display: inline-block; /* Ensures elements are displayed in a line */
}

.radio-container input[type="radio"],
.radio-container label {
    display: inline-block; /* Makes input and label inline */
    vertical-align: middle; /* Aligns them vertically in the middle */
    margin-right: 10px; /* Adds some space between elements */
}