/* ==========================================================================
   ZMKSU theme styles
   CSS custom properties + light base layer on top of Bootstrap 5.
   ========================================================================== */

:root {
    /* Font families */
    --font-display: "Saira Condensed";
    --font-body: "Hanken Grotesk";
    --font-mono: "Space Mono";

    /* Display type tokens */
    --disp-weight: 800;
    --disp-transform: uppercase;
    --disp-tracking: 0;

    /* Map theme fonts onto Bootstrap's own variables */
    --bs-font-sans-serif: var(--font-body), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-font-monospace: var(--font-mono), SFMono-Regular, Menlo, Consolas, monospace;
    --bs-body-font-family: var(--font-body), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --accent: #ff7d24;
    --accent-2: #ff7d24;
    --white: #FFF;
    --muted: #9aa1ab;
    --page-muted: #5d6470;
    --black: #14223b;
    --black-200: #16293b;
    --dark-black: #212529;
    --hero-line: #2c323a;
    --page-bg: #f3f0ea;
    --line: #d8d1c3;
    --shadow: 0 22px 50px -28px rgba(20, 34, 59, .5);

}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: var(--page-bg);
}

body {
    background-color: var(--page-bg);
}

.saira {
    font-family: var(--font-display);
}

.mono {
    font-family: var(--font-mono);
}

.white {
    color: var(--white);
}

.dark-black {
    color: var(--dark-black);
}

.accent {
    color: var(--accent);
}

.span-accent span {
    color: var(--accent);
}

.muted {
    color: var(--muted);
}

.black {
    color: var(--black);
}

.black-bg {
    background-color: var(--black);
}

/* Base body copy */
body {
    font-family: var(--font-body), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Display headings */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.font-display {
    font-family: var(--font-display), "Arial Narrow", sans-serif;

}

h1 {
    font-size: clamp(46px, 6vw, 90px);
    margin: 22px 0 0;
    text-wrap: balance;
    font-weight: var(--disp-weight);
    text-transform: var(--disp-transform);
    letter-spacing: var(--disp-tracking);
}

h2 {
    font-size: clamp(30px, 3.6vw, 48px);
    margin: 18px 0 28px;
    font-weight: var(--disp-weight);
}

h3 {
    font-size: clamp(20px, 3.6vw, 22px);
    font-weight: var(--disp-weight);
}

/* Monospace */
code, kbd, pre, samp, .font-mono {
    font-family: var(--font-mono), SFMono-Regular, Menlo, Consolas, monospace;
}

/* Small helper utilities */
.font-body {
    font-family: var(--font-body), sans-serif;
}

/* Sticky footer layout */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 1080;
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.subtitle::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
}

.subtitle {
    font-family: var(--font-mono), monospace;
    font-size: 12px;
    letter-spacing: .24em;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.zmksu__button {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 17px;
    letter-spacing: .03em;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 15px 26px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0);
    transition: transform .2s, background .2s, color .2s, border-color .2s;
    text-decoration: none;

}

.zmksu__transparent_button {
    border: 1px solid rgb(44, 50, 58);
    color: var(--white);
}

.zmksu__transparent_button:hover,
.zmksu__transparent_button:focus {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
}

.zmksu__orange_button {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.zmksu__button .arr {
    transition: transform .2s;
}

.zmksu__button:hover .arr,
.zmksu__button:focus .arr {
    transform: translateX(4px);
}

@media screen and (max-width: 575.8px) {
    .zmksu__button {
        display: block;
        width: 100%;
        margin-inline: auto;
        text-align: center;
    }
}

.zmksu__link-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .04em;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
    text-decoration: none;
}

.zmksu__orange_link_button {
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.zmksu__orange_link_button:hover,
.zmksu__orange_link_button:focus {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.zmksu__orange_link_button .arr {
    transition: transform .2s;
}

.zmksu__orange_link_button:hover .arr,
.zmksu__orange_link_button:focus .arr {
    transform: translateX(4px);
}

.zmksu-service-card-image {
    position: relative;
    overflow: hidden;
    background: var(--black);
    aspect-ratio: 3/2;
    width: 100%;
    max-height: 250px;
}

.zmksu-service-card-image img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.type-usluga {
    background: var(--black);
    /*border: 1px solid rgba(255, 255, 255, .13);*/
    border: 1px solid var(--accent);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s, border-color .25s;
    height: 100%;

}

.zmksu-service-column {
    margin-bottom: 20px;
}

.type-usluga .service-content {
    padding: 12px 12px 14px;

    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

@media screen and (min-width: 575.8px) {
    .type-usluga .service-content {
        padding: 22px 22px 24px;
    }
}

.type-usluga .service-content p {
    font-size: 14px;
    color: var(--muted);
    flex: 1;
    margin-bottom: 0;
}

.type-usluga .service-card-info {
    border-top: 1px solid var(--muted);
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

.type-usluga .service-card-info .certificate {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-transform: uppercase;
}

.type-usluga .service-card-info .accredititation {
    font-family: var(--mono);
    text-transform: uppercase;
    background: var(--accent);
    color: var(--black);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .06em;
    padding: 3px 9px;
    white-space: nowrap;
}

b, strong {
    font-weight: 700;
}
/* ==========================================================================
   Header — sticky, frosted glass + self-contained mobile menu
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* When logged in, WordPress renders a fixed admin bar (32px, or 46px on
   small screens). Offset the sticky header so it pins below the admin bar
   instead of hiding behind it on scroll. Front-end visitors are unaffected. */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.zmksu-navbar {
    padding-block: 10px;
    background: rgba(243, 240, 234, .82);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(216, 209, 195, .6);
    transition: padding-block .25s ease, background-color .25s ease, box-shadow .25s ease;
}

/* Condensed, higher-contrast state once the page is scrolled */
.site-header.is-scrolled .zmksu-navbar {
    padding-block: 4px;
    background: rgba(243, 240, 234, .96);
    box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .45);
}

.zmksu-navbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo — constrain the oversized square SVG */
.zmksu-navbar .navbar-brand {
    padding: 0;
    margin: 0;
}

.zmksu-navbar .custom-logo {
    display: block;
    width: auto;
    height: 48px;
    transition: height .25s ease;
}

.site-header.is-scrolled .zmksu-navbar .custom-logo {
    height: 38px;
}

/* Nav container (inline on desktop, slide-in panel on mobile) */
.zmksu-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.zmksu-nav__head {
    display: none;
}

.zmksu-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.zmksu-menu .nav-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--black);
    padding: 10px 14px;
    text-decoration: none;
    transition: color .2s;
}

.zmksu-menu .nav-link:hover,
.zmksu-menu .nav-link:focus{
    color: var(--accent);
}

/* CTA button in the menu.
   Add the "menu-cta-button" CSS class to a menu item in the WordPress menu
   editor to render it as an accent pill (matches the design's .nav-cta).
   Any tel: link is also styled as a button as a sensible fallback. */
.zmksu-menu .menu-cta-button > .nav-link,
.zmksu-menu .nav-link[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    background: var(--accent);
    padding: 11px 19px;
    margin-left: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: filter .2s, transform .2s;
}

.zmksu-menu .menu-cta-button > .nav-link:hover,
.zmksu-menu .menu-cta-button > .nav-link:focus,
.zmksu-menu .nav-link[href^="tel:"]:hover,
.zmksu-menu .nav-link[href^="tel:"]:focus {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* Dropdown (desktop) */
.zmksu-menu .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow);
    padding: 6px;
}

.zmksu-menu .dropdown-item {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 8px 12px;
}

.zmksu-menu .dropdown-item:hover,
.zmksu-menu .dropdown-item:focus {
    background: var(--page-bg);
    color: var(--accent);
}

/* Burger (hidden on desktop) */
.zmksu-burger {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    width: 44px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
}

.zmksu-burger span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--black);
    transition: transform .3s, opacity .3s;
}

/* Backdrop hidden by default (never shown on desktop) */
.zmksu-nav__backdrop[hidden] {
    display: none;
}

/* --- Mobile (below lg) --- */
@media screen and (max-width: 991.98px) {
    /* Drop the navbar's backdrop-filter on mobile. It creates a stacking
       context (and a containing block for fixed children) that would trap the
       slide-in menu panel beneath the full-screen backdrop overlay — making
       the open menu appear as just a black overlay. */
    .zmksu-navbar {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .zmksu-burger {
        display: inline-flex;
    }

    .zmksu-burger[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .zmksu-burger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .zmksu-burger[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .zmksu-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(84vw, 360px);
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--black);
        color: var(--white);
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1045;
        overflow-y: auto;
        box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .6);
    }

    .zmksu-nav.is-open {
        transform: translateX(0);
    }

    .zmksu-nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid var(--hero-line);
    }

    .zmksu-nav__title {
        color: var(--white);
        font-size: 20px;
        text-transform: uppercase;
        letter-spacing: .02em;
    }

    .zmksu-nav__close {
        border: 0;
        background: transparent;
        color: var(--white);
        font-size: 30px;
        line-height: 1;
        padding: 0 4px;
        cursor: pointer;
    }

    .zmksu-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 28px;
    }

    .zmksu-menu .nav-link {
        color: var(--white);
        font-size: 17px;
        padding: 15px 0;
        border-bottom: 1px solid var(--hero-line);
    }

    .zmksu-menu .menu-cta-button > .nav-link,
    .zmksu-menu .nav-link[href^="tel:"] {
        display: inline-flex;
        color: #fff;
        margin: 18px 0 0;
        border-bottom: 0;
    }

    /* Submenus render expanded inline on mobile */
    .zmksu-menu .dropdown-menu {
        position: static;
        display: block;
        border: 0;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 14px;
    }

    .zmksu-menu .dropdown-item {
        color: var(--muted);
        padding: 10px 0;
    }

    .zmksu-menu .dropdown-item:hover,
    .zmksu-menu .dropdown-item:focus {
        background: transparent;
        color: var(--accent);
    }

    .zmksu-nav__backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 1044;
        opacity: 0;
        transition: opacity .3s;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .zmksu-nav__backdrop {
        opacity: 1;
    }
}

/* ==========================================================================
   Footer — dark, widgetized
   ========================================================================== */

.site-footer {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: var(--black);
    color: var(--muted);
    padding-block: 64px 24px;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hero-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(120% 90% at 85% 0%, #000 26%, transparent 72%);
    opacity: .5;
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.site-footer__top {
    padding-bottom: 40px;
}

/* Design layout: wider brand column, then contact, then navigation.
   Footer areas 1/2/3 render in order as these columns. */
@media (min-width: 992px) {
    .site-footer__col:nth-child(1) { width: 41.6667%; }
    .site-footer__col:nth-child(2) { width: 33.3333%; }
    .site-footer__col:nth-child(3) { width: 25%; }
    .site-footer__col:nth-child(4) { width: 25%; }
}

/* On tablets, let the brand column span the full width like the design. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .site-footer__col:nth-child(1) { width: 100%; }
}

/* Keep a logo/image widget from dominating its column. */
.site-footer__col .widget_media_image img,
.site-footer__col .wp-block-image img {
    width: auto;
    height: auto;
    max-height: 72px;
}

/* Constrain the brand description line length (design parity). */
.site-footer__col .widget_text p {
    max-width: 340px;
}

.footer-widget {
    margin-bottom: 8px;
}

/* Widget titles AND Heading blocks used inside footer widgets share the
   same compact mono/accent style, so "Kontakt" (a Heading block) matches
   "Navigacija" (a widget title). */
.footer-widget__title,
.site-footer .footer-widget .wp-block-heading,
.site-footer .footer-widget h2,
.site-footer .footer-widget h3,
.site-footer .footer-widget h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin: 0 0 20px;
}

.footer-widget,
.footer-widget p,
.footer-widget li {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted);
}

.footer-widget a {
    color: var(--white);
    text-decoration: none;
    transition: color .2s;
}

.footer-widget a:hover,
.footer-widget a:focus {
    color: var(--accent);
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    padding: 5px 0;
}

/* Bottom bar */
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--hero-line);
}

.site-footer__copy,
.site-footer__powered {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--muted);
}

.site-footer__powered a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.site-footer__powered a:hover,
.site-footer__powered a:focus {
    color: var(--accent);
}

.site-footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__menu a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus {
    color: var(--accent);
}

@media screen and (max-width: 575.79px) {
    .site-footer {
        padding-block: 48px 20px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
