:root {
    --brand-blue: #AFCCFF;
    --body-font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --heading-font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

body {
    font-family: var(--body-font);
    color: #111;
}

h1,
h2,
h3 {
    font-family: var(--heading-font)
}

.display-6 {
    font-weight: 700
}

/* Header matching Figma: light blue bar, brand on left, nav on right */
.site-header {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 1030
}

.site-header .brand-logo {
    height: 36px
}

main {
    max-width: 980px;
    margin: 0 auto
}

/* Ensure SVGs and images inside assets/images look crisp and constrained */
img {
    max-width: 100%;
    height: auto
}


@media (max-width:767px) {
    main {
        padding-left: 12px;
        padding-right: 12px
    }
}

/* Add horizontal padding to container on large screens to match Figma spacing */
@media (min-width:992px) {
    .container {
        padding-left: 4rem;
        padding-right: 4rem
    }
}

.fs-5-5 {
    font-size: 1.125rem;
}

/* Offcanvas adjustments so menu looks correct on mobile */
.offcanvas-body .nav-link {
    padding: 0.5rem 0
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700
}

/* Make the offcanvas sidebar use brand blue background and white text */
.offcanvas,
.offcanvas-header,
.offcanvas-body {
    background: var(--brand-blue);
    color: #000
}

.offcanvas .nav-link {
    color: #000
}

.offcanvas .btn-close {
    --bs-close-color: #000;
    filter: none
}

/* Desktop: ensure the nav links are right-aligned inside the container */
.navbar-nav.ms-auto {
    margin-left: auto
}

.nav-link {
    transition: all .3s ease-in-out;
}

.nav-link:hover {
    scale: 1.03;
    text-decoration: underline;
}

/* Hero headline sizing to match screenshot */
.display-6 {
    font-size: clamp(32px, 5.5vw, 56px);
    line-height: 1.02;
    margin-bottom: 1rem;
}

/* Section headings */
h2 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem
}

/* Body copy */
main p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #111
}

/* Reusable reference card */
.ref-card {
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--brand-blue);
    background: #FFFFFA;
}

.ref-card .ref-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem
}

.ref-card .ref-badges img {
    height: 36px
}

@media (min-width:992px) {
    .ref-card {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }
}

/* Reduce space between left text and right images */
.ref-card .row {
    gap: 0.75rem
}

.ref-card .col-lg-8 {
    padding-right: 0.5rem
}

.ref-card .col-lg-4 {
    padding-left: 0.5rem
}

/* Badges centered */
.ref-card .ref-badges {
    justify-content: center
}

/* Link style in reference cards */
a.ref-link,
button.ref-link {
    color: #000;
    text-decoration: underline;
    display: inline-block;
    transition: all .3s ease-in-out;
}

a.ref-link:hover,
button.btn-link:hover {
    color: color-mix(in srgb, var(--brand-blue) 60%, #000 40%);
    transform: scale(1.03);
    text-decoration: underline;
}

.ref-badges * {
    transition: all .3s ease-in-out;
}

/* Services cards (Služby) to match ref-card look */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.service-card {
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    /* border: 4px solid var(--brand-blue); */
    background: #FFFFFA;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    overflow: hidden;
    padding: 0;
}

.service-card-header {
    background: var(--brand-blue);
    color: #000;
    padding: 1rem 0.75rem;
    font-weight: 700;
    font-family: var(--heading-font);
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin: 0;
}

.service-card-body {
    padding: 1rem;
    color: #111;
}

@media (min-width:992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        min-height: 300px;
    }
}

/* Global link style inside main content: underlined by default, darker brand on hover */
main a {
    color: #000;
    text-decoration: underline;
    display: inline-block;
    transition: all .3s ease-in-out;
}

main a:hover {
    transform: scale(1.03);
    text-decoration: underline;
    color: color-mix(in srgb, var(--brand-blue) 60%, #000 40%);
}

/* Footer links use brand color and are underlined by default */
footer a {
    color: var(--brand-blue);
    text-decoration: underline;
    display: inline-block;
    transition: all .3s ease-in-out;
}

footer a:hover {
    transform: none;
    text-decoration: underline;
    color: color-mix(in srgb, var(--brand-blue) 60%, #000 40%);
}

.contact-form-card {
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 4px solid var(--brand-blue);
    background: #FFFFFA;
}

.form-control,
.form-select,
textarea.form-control {
    border: 1px solid var(--brand-blue);
    border-radius: 14px;
}


.contact-submit {
    background: var(--brand-blue);
    color: #000;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

/* Slight grow and darker background on hover for better affordance */
.contact-submit {
    transition: transform .12s ease-in-out, background-color .12s ease-in-out, box-shadow .12s ease-in-out;
}

.contact-submit:hover,
.contact-submit:focus {
    transform: scale(1.01);
    /* ~1% increase */
    background-color: color-mix(in srgb, var(--brand-blue) 85%, rgb(16, 71, 180) 15%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width:767px) {
    .contact-form-card {
        padding: 0.75rem;
    }
}

/* Global: underline every link by default and darken on hover, except header */
a {
    text-decoration: underline;
}

a:hover,
a:focus {
    color: color-mix(in srgb, var(--brand-blue) 60%, #000 40%);
}

/* Exempt header links from default underline and hover color change */
.site-header a {
    text-decoration: none;
}

.site-header a:hover,
.site-header a:focus {
    color: inherit;
}

/* Contact section: do not underline links */
#kontakt a {
    text-decoration: none;
}

#kontakt a:hover,
#kontakt a:focus {
    text-decoration: none;
    color: color-mix(in srgb, var(--brand-blue) 60%, #000 40%);
}