/*
 * SAERAAM.EE
 * Custom Website Design
 * WordPress / Jevelin
 */

/* =========================================
   01. KONTAKTIRIBA
   ========================================= */

.primary-desktop .sh-header-top {
    border-bottom: none !important;
}

/* Kontaktiriba tekstid ja lingid */
.primary-desktop .sh-header-top,
.primary-desktop .sh-header-top a,
.primary-desktop .sh-header-top span {
    color: #ffffff !important;
}

/* Kontaktiriba ikoonid */
.primary-desktop .sh-header-top i {
    color: #d00000 !important;
}

/* Kontaktiriba tume taust */
.primary-desktop .sh-header-top,
.primary-desktop .sh-header-top.sh-header-top-3 {
    background: #252b30 !important;
    background-color: #252b30 !important;
}

/* Kontaktiriba elementide eraldusjooned */
.primary-desktop .sh-header-top .sh-header-top-item {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* =========================================
   02. LOGO JA NAVIGATSIOON
   ========================================= */

/* Päise valge taust ja alumise joone eemaldamine */
.primary-desktop .sh-header-height {
    background-color: #ffffff !important;
    border-bottom: none !important;
}

/* Menüü lingid */
.primary-desktop .sh-nav > li > a {
    color: #333333 !important;
    transition: color 0.25s ease !important;
}

/* Menüülingi hover */
.primary-desktop .sh-nav > li > a:hover {
    color: #b51212 !important;
}

/* Aktiivne menüüpunkt */
.primary-desktop .sh-nav > li.current-menu-item > a,
.primary-desktop .sh-nav > li.current_page_item > a {
    color: #b51212 !important;
}

/* Aktiivse menüüpunkti punane joon */
.primary-desktop .sh-nav > li.current-menu-item > a::after,
.primary-desktop .sh-nav > li.current_page_item > a::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #b51212;
    border-radius: 2px;
}

/* Päise alumine eraldusjoon */
.primary-desktop .sh-header {
    border-bottom: none !important;
}

/* Aktiivse menüüpunkti joone parandus */
.primary-desktop .sh-nav > li.current-menu-item > a,
.primary-desktop .sh-nav > li.current_page_item > a {
    position: relative !important;
}

/* Punane joon ainult aktiivse lingi all */
.primary-desktop .sh-nav > li.current-menu-item > a::after,
.primary-desktop .sh-nav > li.current_page_item > a::after {
    left: 0 !important;
    right: 0 !important;
    bottom: 8px !important;
    width: 100% !important;
    height: 3px !important;
}

/* =========================================
   03. KOOSTÖÖPARTNERITE LOGORIBA
   ========================================= */

/* Tootjate veerud */
.sh-section-3814e00f28be07ce0e4e52492cffbab8 .fw-col-sm-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #dedede;
}

/* Viimasel tootjal eraldusjoont pole */
.sh-section-3814e00f28be07ce0e4e52492cffbab8 .fw-col-sm-3:last-child {
    border-right: none;
}

/* Logode mõõdud */
.sh-section-3814e00f28be07ce0e4e52492cffbab8 .sh-single-image img {
    max-width: 170px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Õrn suurenemine hiirega liikudes */
.sh-section-3814e00f28be07ce0e4e52492cffbab8 .sh-single-image a:hover img {
    transform: scale(1.05);
}

/* Mobiilivaade */
@media (max-width: 767px) {
    .sh-section-3814e00f28be07ce0e4e52492cffbab8 .fw-col-sm-3 {
        width: 50%;
        min-height: 75px;
        border-right: none;
    }

    .sh-section-3814e00f28be07ce0e4e52492cffbab8 .sh-single-image img {
        max-width: 130px;
        max-height: 45px;
    }
}

/* Koostööpartnerite riba täpsustused */

/* Kogu koostööpartnerite riba */
.sh-section-3814e00f28be07ce0e4e52492cffbab8 {
    background: #f7f8f9 !important;
    padding: 14px 0 !important;
}

/* Kõik viis elementi ühele reale */
.sh-section-3814e00f28be07ce0e4e52492cffbab8 .fw-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Pealkirja veerg */
.sh-section-3814e00f28be07ce0e4e52492cffbab8 .fw-col-sm-15 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pealkirja kujundus */
.sh-section-3814e00f28be07ce0e4e52492cffbab8 h2.sh-heading-content {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin: 0 !important;
}

/* Tootjate veergude kõrgus */
.sh-section-3814e00f28be07ce0e4e52492cffbab8 .fw-col-sm-3 {
    min-height: 55px;
}

/* Mobiilis elemendid mitmele reale */
@media (max-width: 767px) {
    .sh-section-3814e00f28be07ce0e4e52492cffbab8 .fw-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sh-section-3814e00f28be07ce0e4e52492cffbab8 .fw-col-sm-15 {
        width: 100%;
        margin-bottom: 15px;
    }

    .sh-section-3814e00f28be07ce0e4e52492cffbab8 .fw-col-sm-3 {
        width: 50%;
        border-right: none;
    }
}

/* Koostööpartnerite pealkiri */
.sh-section-3814e00f28be07ce0e4e52492cffbab8
.sh-column:first-child .sh-heading-content {
    border-left: 4px solid #b11e17;
    padding-left: 14px;
    max-width: 170px;
    text-align: left !important;
    line-height: 1.3 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    overflow-wrap: normal;
}

/* Eraldusjooned logode vahel */
.sh-section-3814e00f28be07ce0e4e52492cffbab8
.fw-row > .sh-column:nth-child(n+3) {
    border-left: 1px solid #dedede;
}


/* SERRA logo suuremaks */
.sh-section-3814e00f28be07ce0e4e52492cffbab8
.fw-row > .sh-column:nth-child(3) img {
    transform: scale(1.2);
    transform-origin: center;
}




/* =====================================
   04. AVALEHE METSABÄNNER
   ===================================== */

.saeraam-hero {
    position: relative;
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
    min-height: 430px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 65px max(7%, 30px);

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.68) 0%,
            rgba(0, 0, 0, 0.38) 42%,
            rgba(0, 0, 0, 0.02) 80%
        ),
        url("https://saeraam.ee/wp-content/uploads/2026/11/saeraam.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* SISU */

.saeraam-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 850px;
}

/* PEALKIRI */

.saeraam-hero h1 {
    color: #ffffff !important;
    font-size: clamp(32px, 3.5vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    margin: 0 0 20px;
}

/* ALATEKST */

.saeraam-hero p {
    color: #ffffff !important;
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 32px;
}

/* NUPUD */

.saeraam-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.saeraam-hero-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    box-sizing: border-box;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

/* PUNANE NUPP */

.saeraam-btn-primary {
    background: #c90000;
    border: 1px solid #c90000;
    color: #ffffff !important;
}

.saeraam-btn-primary:hover {
    background: #a80000;
    border-color: #a80000;
    color: #ffffff !important;
}

/* LÄBIPAISTEV NUPP */

.saeraam-btn-outline {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid #ffffff;
    color: #ffffff !important;
}

.saeraam-btn-outline:hover {
    background: #ffffff;
    color: #222222 !important;
}

/* =====================================
   MOBIILIVAADE
   ===================================== */

@media (max-width: 767px) {

    .saeraam-hero {
        min-height: 420px;
        padding: 55px 24px;
        background-position: 60% center;
    }

    .saeraam-hero h1 {
        font-size: clamp(28px, 7vw, 38px);
        letter-spacing: -0.5px;
    }

    .saeraam-hero p {
        font-size: 16px;
        margin-bottom: 26px;
    }

    .saeraam-hero-buttons {
        gap: 12px;
    }

    .saeraam-hero-buttons a {
        min-height: 48px;
        padding: 0 18px;
        font-size: 14px;
    }
}

/* =====================================
   05. AVALEHE EELISED JA KATEGOORIAD
   ===================================== */

.saeraam-home-blocks {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 30px 45px;
    box-sizing: border-box;
}

/* EELISTE RIDA */

.saeraam-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 28px;
    margin-bottom: 38px;
}

.saeraam-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    min-width: 0;
    box-sizing: border-box;
}

.saeraam-benefit:not(:last-child) {
    border-right: 1px solid #e5e5e5;
}

.saeraam-benefit-icon {
    color: #c90000;
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.saeraam-benefit > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.saeraam-benefit strong {
    color: #171717;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.saeraam-benefit div span {
    color: #444444;
    font-size: 14px;
    line-height: 1.4;
}

/* KATEGOORIAKAARDID */

.saeraam-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.saeraam-category {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 105px;
    padding: 22px 24px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    text-decoration: none !important;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.saeraam-category:hover {
    transform: translateY(-4px);
    border-color: #d8d8d8;
    box-shadow: 0 14px 30px rgba(0,0,0,0.14);
}

.saeraam-category-icon {
    color: #c90000;
    font-size: 34px;
    line-height: 1;
    flex-shrink: 0;
}

.saeraam-category strong {
    color: #171717;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.saeraam-arrow {
    color: #c90000;
    font-size: 32px;
    line-height: 1;
    margin-left: auto;
}

/* TAHVELARVUTID */

@media (max-width: 1024px) {
    .saeraam-benefits,
    .saeraam-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .saeraam-benefits {
        row-gap: 24px;
    }

    .saeraam-benefit:nth-child(2) {
        border-right: none;
    }
}

/* MOBIIL */

@media (max-width: 767px) {
 .saeraam-home-blocks {
        padding: 28px 20px 35px;
    }

    .saeraam-benefits {
        gap: 22px 12px;
        margin-bottom: 30px;
    }

    .saeraam-benefit {
        padding: 0;
        gap: 10px;
        justify-content: flex-start;
        border-right: none !important;
    }

    .saeraam-benefit-icon {
        font-size: 27px;
    }

    .saeraam-benefit strong {
        font-size: 13px;
    }

    .saeraam-benefit div span {
        font-size: 12px;
    }

    .saeraam-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .saeraam-category {
        min-height: 85px;
        padding: 18px 22px;
    }
}

/* SAERAAM – SVG JOONEIKOONID */

.saeraam-benefit-icon,
.saeraam-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c90000;
}

.saeraam-benefit-icon svg {
    width: 42px;
    height: 42px;
}

.saeraam-category-icon svg {
    width: 48px;
    height: 48px;
}

.saeraam-benefit-icon svg,
.saeraam-category-icon svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 767px) {
    .saeraam-benefit-icon svg {
        width: 32px;
        height: 32px;
    }

    .saeraam-category-icon svg {
        width: 40px;
        height: 40px;
    }
}



/* 06. JEVELIN – UUDISTE KAARDID */

.masonry2 article.post-item .post-container {
    border-radius: 10px !important;
    overflow: hidden !important;
    background-color: #fff !important;
    box-shadow: 0 10px 35px rgba(0,0,0,0.10) !important;
}

/* Ära piira uudisekaardi kõrgust */
.masonry2 article.post-item {
    height: auto;
}

/* Piltide ümardus */
.masonry2 article.post-item .post-thumbnail {
    border-radius: 10px 10px 0 0 !important;
}