/*
Theme Name: Energio
Theme URI: https://kansleri.fi
Version: 1.1
Description: Custom theme for Energio.
Author: Tapio Kauranen
Author URI: https://kansleri.fi
template: bb-theme
*/

/* Add your custom styles here... */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --color-btn-primary: #ff6100;
    --color-btn-primary-focus: #cc4e00;
}

/* ========================================
   Homepage Links
   ======================================== */
.etusivunlinkit a {
    width: 100%;
    padding-top: 150px;
    padding-bottom: 150px;
    display: block;
}

/* ========================================
   Locations (Sijainnit)
   ======================================== */
@media (min-width: 800px) {
    .Sijainnit {
        columns: 4;
        padding: 0;
        margin: 0;
    }
}

.Sijainnit .fl-post-feed-post {
    border: none;
}

.Sijainnit .fl-post-feed-header {
    padding: 0;
    margin: 0;
}

.Sijainnit a {
    font-size: 13px;
}


/* ========================================
   Buttons
   ======================================== */
.painike,
.pyyda-tarjous-painike a {
    color: white;
    font-weight: bold;
    background-color: var(--color-btn-primary);
    padding: 10px 20px;
    text-transform: uppercase;
}

.painike:hover,
.pyyda-tarjous-painike a:hover {
    color: white;
    text-decoration: unset;
    background-color: var(--color-btn-primary-focus);
}

/* ========================================
   Form Fields
   ======================================== */
.lomakekentta {
    text-align: center;
}

/* ========================================
   Product Boxes (Tuotelaatikot)
   ======================================== */
.tuotelaatikko {
    display: block;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s, filter 0.2s;
    text-decoration: none;
}

.tuotelaatikko:hover {
    transform: scale(1.03);
    filter: brightness(0.9);
}

a.tuotelaatikko,
a.tuotelaatikko:visited,
a.tuotelaatikko:hover,
a.tuotelaatikko:focus {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.type-tuote .fl-post-header {
    display: none;
}

/* ========================================
   Info Box
   ======================================== */
.infobox-otsikko {
    background: var(--color-btn-primary);
    padding: 10px;
}

/* ========================================
   Slider Pagination
   ======================================== */
.bx-pager-link {
    background: rgb(136, 52, 0) !important;
}

.bx-pager-link[aria-current]:not([aria-current="false"]) {
    background: var(--color-btn-primary) !important;
}

/* ========================================
   Header Mobile Adjustments
   ======================================== */
@media (max-width: 1420px) {
    .taytesarake {
        display: none !important;
    }
}

/* ========================================
   Flipbox
   ======================================== */
.flip-box-front,
.flip-box-back {
    height: 380px;
    background-position: center center;
}

.hover-card {
    transition: transform 0.3s ease-in-out;
}

.hover-card:hover {
    transform: scale(1.05);
}

/* ========================================
   Logos
   ======================================== */
.logot img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border: 1px solid black;
}

/* ========================================
   Customer Stories (Asiakastarinat)
   ======================================== */
.asiakastarinat img {
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
}

.asiakastarinat .fl-post-feed-post {
    border: none;
}

/* ========================================
   Blog Post Content
   ======================================== */
.blogpostcontent h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.singlearticlelabel p {
    display: inline-block;
    width: auto;
    background-color: #ff6100;
    padding: 5px 20px;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
}

#etusivunlinkit h2 a:hover {
    transition: 0.2s;
    background-color: rgba(0,0,0,0.2);
}

/* ========================================
   Experts (Asiantuntijat)
   ======================================== */
.asiantuntijat-palveluksessanne img {
    min-height: 140px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 800px) {
    .asiantuntijat-palveluksessanne h2 a {
        font-size: 16px;
    }
}

/* ========================================
   Products (Tuotteet)
   ======================================== */
.tuotteet .fl-post-grid-post {
    border: none;
    text-align: center;
}

.tuotteet .price-wrap {
    justify-content: center;
}

.tuotteet .wp-post-image {
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.tuotteet h3 a {
    font-size: 16px;
}

/* ========================================
   Price Display
   ======================================== */
span.price-current {
    font-size: 20px;
}

div.price-wrap {
    margin-top: 10px;
}

/* ========================================
   Menu Styles
   ======================================== */
.current-menu-item a::before {
    content: "\f345"; /* The Dashicon code for a lightning bolt */
    font-family: dashicons;
    display: inline-block;
    padding-right: 0px; /* Space between the bolt and the text */
    margin-top: -3px;
    color: #ff6100; /* Matches your active text color */
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.current-menu-item a {
    font-weight: bold;
    color: #ff6100;
    padding-left: 0px;
    margin-left: -4px;
}
