/* Päis ja jalus v2 (chrome-v2.php) — kõigil v2 lehtedel. Laius 1340 nagu sisu. */

.hr-hdr,
.hr-ftr {
    --hr-red: #C8102E;
    --hr-red-dark: #a50d26;
    --hr-ink: #1a1a1a;
    --hr-muted: #5f6368;
    --hr-line: #e9e7e2;
    --hr-navy: #1f3a68;
    color: var(--hr-ink);
    font-family: inherit;
}
.hr-hdr a,
.hr-ftr a {
    font-size: inherit; /* teema a-stiil muudab suurust */
    text-decoration: none !important;
}
.hr-hdr__in,
.hr-ftr__in {
    box-sizing: border-box;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}
.hr-ico {
    flex: none;
}
.hr-logo {
    display: inline-flex;
    flex: none;
    line-height: 0;
}
.hr-logo img {
    max-width: 100%;
}

/* ─── Päis ─── */
.hr-hdr {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 100;
    border-bottom: 1px solid var(--hr-line);
    background: #fff;
    transition: box-shadow .2s;
}
.hr-hdr.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.hr-hdr__in {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}
.hr-hdr__nav {
    margin-left: auto;
}
.hr-hdr__menu {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hr-hdr__menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--hr-ink) !important;
    font-size: 16px;
    font-weight: 600;
}
.hr-hdr__menu a:hover {
    background: #f4f3f0;
}
.hr-hdr__menu a[aria-current] {
    color: var(--hr-red) !important;
}
.hr-hdr__act {
    display: flex;
    align-items: center;
    gap: 4px;
}
.hr-hdr__cart,
.hr-hdr__burger,
.hr-drawer__close {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--hr-ink) !important;
    cursor: pointer;
}
.hr-hdr__cart:hover,
.hr-hdr__burger:hover {
    background: #f4f3f0;
}
.hr-hdr__cart .hr-ico {
    width: 26px;
    height: 26px;
}
.hr-hdr__badge {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--hr-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.hr-hdr__badge.is-dot {
    min-width: 10px;
    height: 10px;
    padding: 0;
    top: 8px;
    right: 6px;
}
.hr-hdr__burger {
    display: none;
}
.hr-hdr a:focus-visible,
.hr-hdr button:focus-visible,
.hr-ftr a:focus-visible {
    outline: 2px solid var(--hr-ink);
    outline-offset: 2px;
}

/* Mobiili sahtel */
.hr-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    background: rgba(20, 20, 20, .45);
}
.hr-drawer[hidden] {
    display: none;
}
.hr-drawer__panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(88vw, 380px);
    height: 100%;
    overflow-y: auto;
    padding: 14px 20px 28px;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .12);
}
.hr-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--hr-line);
}
.hr-drawer__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
.hr-drawer__menu a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #f1f0ed;
    color: var(--hr-ink) !important;
    font-size: 19px;
    font-weight: 700;
}
.hr-drawer__menu a[aria-current] {
    color: var(--hr-red) !important;
}
.hr-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 10px;
    background: var(--hr-red);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
}
.hr-drawer__contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hr-drawer__contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    color: var(--hr-ink) !important;
    font-size: 15px;
    font-weight: 600;
}
html.hr-noscroll {
    overflow: hidden;
}

/* ─── Jalus ─── */
.hr-ftr {
    border-top: 1px solid var(--hr-line);
    background: #fff;
    font-size: 15px;
}
.hr-ftr__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr);
    gap: 32px;
    padding: 48px 0 36px;
}
.hr-ftr__brand p {
    margin: 14px 0 0;
    color: var(--hr-muted);
    font-size: 14px;
    line-height: 1.55;
}
.hr-ftr__h {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.hr-ftr__links,
.hr-ftr__trust ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hr-ftr__links a {
    color: var(--hr-muted) !important;
}
.hr-ftr__links a:hover,
.hr-ftr__trust a:hover span {
    color: var(--hr-red) !important;
}
.hr-ftr__trust li,
.hr-ftr__trust a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--hr-ink) !important;
    font-size: 14px;
    line-height: 1.4;
}
.hr-ftr__trust .hr-ico {
    margin-top: -1px;
    color: #2E7D32;
}
.hr-ftr__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 18px 0 22px;
    border-top: 1px solid var(--hr-line);
}
.hr-ftr__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hr-ftr__contact li + li {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid var(--hr-line);
}
.hr-ftr__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hr-ink) !important;
    font-weight: 600;
}
.hr-ftr__contact a:hover {
    color: var(--hr-red) !important;
}
.hr-ftr__contact li:first-child span {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.hr-ftr__copy {
    margin: 0;
    color: var(--hr-muted);
    font-size: 13px;
}
.hr-ftr__copy a {
    color: var(--hr-ink) !important;
    font-weight: 600;
}

/* ─── Tahvel ─── */
@media (max-width: 1100px) {
    .hr-ftr__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hr-ftr__brand,
    .hr-ftr__trust {
        grid-column: span 3;
    }
}
@media (max-width: 960px) {
    .hr-hdr__nav {
        display: none;
    }
    .hr-hdr__act {
        margin-left: auto;
    }
    .hr-hdr__burger {
        display: inline-flex;
    }
    .hr-hdr__in {
        min-height: 64px;
    }
    .hr-hdr .hr-logo img {
        width: 180px !important;
    }
}

/* ─── Mobiil ─── */
@media (max-width: 600px) {
    .hr-ftr__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        padding-top: 36px;
    }
    .hr-ftr__brand,
    .hr-ftr__trust {
        grid-column: 1 / -1;
    }
    .hr-ftr__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .hr-ftr__contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .hr-ftr__contact li + li {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
    .hr-ftr__contact li:first-child span {
        position: static !important;
        width: auto;
        height: auto;
        clip: auto;
    }
}
