html, body {
    background: #020617;
    overflow-x: clip;
    font-family: 'Open Sans', sans-serif;
}

:root {
    --section-py: 7rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --section-py: 5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 3.5rem;
    }
}

/* Bez focus outline / ringa pri kliku (miš, touch) */
:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

a,
button,
input,
select,
textarea,
summary,
[tabindex]:not([tabindex="-1"]) {
    -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL HERO TITLE  —  jedna klasa za sve h1 na svim stranicama
   ═══════════════════════════════════════════════════════════════════ */

.hero-title {
    font-family: 'Fraunces', serif !important;
    font-optical-sizing: none;
    font-variation-settings: "wght" 700, "opsz" 144, "SOFT" 100, "WONK" 0;
    font-size: clamp(2.4rem, 5.5vw, 6.25rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.1 !important;
    margin-bottom: 1.75rem !important;
    letter-spacing: 2px;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
}

/* Single shared class for all hero paragraphs */
.hero-sub {
    font-family: 'Open Sans', sans-serif !important;
    font-size: clamp(0.95rem, 1.4vw, 2.25rem) !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: #fff !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
}

/* Global hero heights — desktop puni ekran; tablet/mobitel u responsive bloku ispod */
.hero-slider,
.careers-hero,
.about-hero,
.contact-hero,
.referral-hero,
.news-hero,
.npost-hero,
.privacy-hero,
.imprint-hero,
.svc-hero,
.svc-detail-hero {
    height: 100vh;
    min-height: 520px;
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL SECTION TITLES
   h1  →  .hero-title      (hero sekcija, sve stranice)
   h2  →  .section-title   (sve sekcije, svuda)
   h3  →  h3.section-title (automatski manji putem tag selektora)
   Boja se kontroliše CSS kontekstom — bez modifikatora.
   ═══════════════════════════════════════════════════════════════════ */

.section-title {
    font-family: 'Fraunces', serif;
    font-variation-settings: "WONK" 0;
    font-size: clamp(1.5rem, 3vw, 2.75rem);
    color: #000;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    background: none !important;
    -webkit-text-fill-color: #000;
}

/* h1 kao naslov sekcije/članka (nije hero) */
h1.section-title {
    font-size: clamp(1.5rem, 3vw, 2.75rem);
    color: #000;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    background: none !important;
    -webkit-text-fill-color: #000;
}

/* h3 — manji section naslovi */
h3.section-title {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-variation-settings: "WONK" 0;
    margin-bottom: 0.85rem;
}

/* Step h3 — lakša težina */
.svc-ai-step h3.section-title {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-variation-settings: "WONK" 0;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

/* Service “How it works” steps — staggered reveal */
.svc-ai-how__right .svc-ai-step {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-ai-how__right .svc-ai-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bijeli tekst kada je naslov unutar tamne sekcije */
.svc-ai-banner .section-title,
.svc-ai-safety .section-title,
.svc-ai-intro__card .section-title,
.about-tl .section-title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* FAQ h2 — centriran */
.svc-ai-faq .section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Services bento cards */
.bento-card__header .section-title {
    font-size: 1.6rem;
    margin-bottom: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL BODY TEXT
   Jedna klasa za sve paragrafe na svim stranicama.
   Boja se kontroliše CSS kontekstom — bez modifikatora.
   ═══════════════════════════════════════════════════════════════════ */

.body-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: #000;
    background: none !important;
    -webkit-text-fill-color: #000;
}

/* Service banner — CSS parallax (background-attachment: fixed) */
section.svc-ai-banner {
    overflow: visible;
}

section.svc-ai-banner .svc-ai-banner__bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

section.svc-ai-banner:not(.is-parallax-fallback) .svc-ai-banner__bg {
    transform: none;
}

/* Bijeli tekst unutar tamnih sekcija */
.svc-ai-banner .body-text,
.svc-ai-safety .body-text,
.svc-ai-intro__card .body-text,
.mission-cell--dark .body-text,
.about-tl .body-text {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.referral-card .section-title,
.job-card .section-title,
.services-card .section-title,
.referral-form-card .section-title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.mission-cell--dark .section-title {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL TYPOGRAPHY SYSTEM
   h1  →  .hero-title (hero) | h1.section-title (naslov članka/sekcije)
   h2  →  .section-title
   h3  →  h3.section-title
   .lead / p.lead — Open Sans 600, intro paragraph under a heading
   p   — Open Sans 400, body text
   ═══════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 6.25rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 0.85rem;
}

/* H4 — smaller block labels */
h4 {
    font-size: clamp(1rem, 1.75vw, 1.25rem);
    font-weight: 600;
}

/* Body text */
p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
}

/* Lead paragraph — bold intro text under a heading */
.lead, p.lead {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 600;
    line-height: 1.7;
}

/* Section label / eyebrow text above a heading */
.eyebrow {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navbar absolute over hero */
#site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* Navbar CTA — white glow over dark hero */
#site-header .btn-primary,
#site-header .btn-primary:hover {
    box-shadow: 0px 3px 5px -3px rgba(255, 255, 255, 0.75);
    -webkit-box-shadow: 0px 3px 5px -3px rgba(255, 255, 255, 0.75);
    -moz-box-shadow: 0px 3px 5px -3px rgba(255, 255, 255, 0.75);
}

/* Navbar menu items — Fraunces (body uses font-sans / Open Sans) */
#site-header ul[role="list"] a,
#site-header .nav-dropdown-trigger,
#site-header .nav-dropdown__link {
    font-family: 'Fraunces', serif !important;
}

.nav-search {
    position: relative;
    flex-shrink: 0;
}

.nav-search__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-search__toggle:hover,
.nav-search__toggle--active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-search__icon {
    display: block;
    height: 1.5rem;
    width: auto;
    object-fit: contain;
}

/* Search modal overlay */
.nav-search-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: min(14vh, 7rem) 1.25rem 2rem;
}

.nav-search-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
}

.nav-search-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(40rem, 100%);
}

.nav-search-modal__close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

.nav-search-modal__close:hover {
    color: #fff;
}

.nav-search-modal__form {
    margin: 0;
}

.nav-search-modal__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 0 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease;
}

.nav-search-modal__bar:focus-within {
    border-bottom-color: #fff;
}

.nav-search-modal__icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.55);
}

.nav-search-modal__input {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0.35rem 0;
    border: none;
    background: transparent;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 500;
    color: #fff;
    outline: none;
}

.nav-search-modal__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.nav-search-modal__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* reCAPTCHA widget (contact / referral forms) */
.g-recaptcha {
    display: inline-block;
}

.recaptcha-setup-hint {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #9a3412;
}

:root {
    --brand:      #3a56ff;
    --brand-dark: #1826e1;
    --accent:     #ec4899;
    --glow-brand: rgba(58, 86, 255, 0.4);
    --glow-accent: rgba(236, 72, 153, 0.3);
}

/* Scrollbar  */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: #020617; }
::-webkit-scrollbar-thumb  { background: #3a56ff55; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a56ff99; }

/* Selection  */
::selection { background: rgba(58, 86, 255, 0.3); color: #fff; }

/* Typography helpers */
.gradient-text {
    background: linear-gradient(135deg, #607cff 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 4rem;
    background: black;
    color: white;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.75);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -120px;
    width: 50px;
    height: 200px;
    background: rgba(255, 255, 255, 0.55);
    transform: rotate(35deg);
    transition: left 2s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    pointer-events: none;
}
.btn-primary:hover::after {
    left: 120%;
}
.btn-primary:hover {
    background: white;
    color: black;
    box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.75);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-decoration: none;
    cursor: pointer;
}
.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
}

/* Form elements */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    color: #f1f5f9;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    font-family: inherit;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
    border-color: rgba(58, 86, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(58, 86, 255, 0.1);
    background: rgba(255,255,255,0.06);
}

/* Section helpers */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #607cff;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.section-sub {
    font-size: 1.0625rem;
    color: #94a3b8;
    line-height: 1.7;
}

/* Gradient orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(58,86,255,0.18) 0%, transparent 70%);
    top: -200px; left: -200px;
    animation: orb-drift-1 18s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, transparent 70%);
    top: 20%; right: -150px;
    animation: orb-drift-2 22s ease-in-out infinite;
}
.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
    bottom: 10%; left: 30%;
    animation: orb-drift-1 16s ease-in-out infinite reverse;
}

@keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -30px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-50px, 40px) scale(1.08); }
}

/* Section glows */
.section-glow {
    position: absolute;
    width: 800px; height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    top: 50%; transform: translateY(-50%);
}
.section-glow-left {
    left: -400px;
    background: radial-gradient(circle, rgba(58,86,255,0.08) 0%, transparent 70%);
}
.section-glow-right {
    right: -400px;
    background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 70%);
}

/* Social icons */
.social-icon {
    width: 2.25rem; height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.social-icon:hover {
    color: #fff;
    background: rgba(58,86,255,0.15);
    border-color: rgba(58,86,255,0.3);
    transform: translateY(-2px);
}

.btn-icon-wrapper {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.icon-default {
    width: 1.7rem !important;
    height: 1.7rem !important;
    object-fit: contain;
    flex-shrink: 0;
    transition: filter 0.4s ease;
}
.icon-hover {
    display: none;
}
.btn-primary:hover .icon-default {
    filter: invert(1);
}

/* Apply / book-meeting modal (shared) */
.apply-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.apply-modal.is-open {
    display: flex;
}

.apply-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.apply-modal__box {
    position: relative;
    z-index: 1;
    width: min(720px, 92vw);
    border-radius: 1.25rem;
    overflow: hidden;
}

.apply-modal__box.referral-form-card {
    padding: 0;
    width: min(720px, 92vw);
    max-width: min(720px, 92vw);
}

.apply-modal__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.45);
    transform: scale(1.05);
    z-index: 0;
}

.apply-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.72);
    z-index: 1;
}

.apply-modal__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 10;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.apply-modal__close:hover {
    opacity: 1;
}

/* ══════════════════════════════════════════════
   SHARED FORM SYSTEM — contact, referral, apply, booking
   ══════════════════════════════════════════════ */

.contact-card,
.referral-form-card {
    background: #0d1b2e;
    border-radius: 1.25rem;
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-card__title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    margin: 0 0 0.85rem;
}

.contact-card .form-card__title:first-of-type,
.referral-form .form-card__title:first-of-type {
    margin-top: 0;
}

.referral-form > .form-card__title:not(:first-child) {
    margin-top: 0.25rem;
}

.apply-modal__content > .form-card__title,
.apply-modal__content .referral-form > .form-card__title {
    padding-right: 2rem;
}

.apply-modal__content {
    position: relative;
    z-index: 5;
    padding: 2.25rem 2rem;
}

.apply-modal__content > .referral-alert {
    margin-bottom: 1.25rem;
}

.contact-form,
.referral-form,
.apply-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form__row,
.referral-form__row,
.apply-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form__row > *,
.referral-form__row > *,
.apply-form__row > * {
    min-width: 0;
}

.referral-form__schedule {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.referral-form__schedule > * {
    min-width: 0;
}

@media (min-width: 769px) {
    .referral-form__schedule {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form__input,
.referral-form__input,
.referral-form__select,
.apply-form__input,
.apply-form__select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #fff;
    border: none;
    border-radius: 0.6rem;
    padding: 0.8rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    color: #000;
    outline: none;
}

.apply-form__input,
.apply-form__select,
.referral-form__select {
    appearance: none;
}

.contact-form__textarea,
.referral-form__textarea,
.apply-form__textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-form__check,
.referral-form__check,
.apply-form__check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.contact-form__footer,
.referral-form__footer,
.apply-form__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 0.25rem;
}

.contact-form__captcha,
.referral-form__captcha,
.apply-form__footer .apply-form__captcha {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.contact-form__submit,
.referral-form__submit,
.apply-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    padding: 0.75rem 4rem;
    border: none;
    border-radius: 0.75rem;
    margin-top: 0;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 0.875rem;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.contact-form__submit:hover,
.referral-form__submit:hover,
.apply-form__submit:hover {
    background: #fff;
    color: #000;
}

.apply-form__select,
.referral-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.referral-form__date-field {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.referral-form__input--date {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #000;
}

.referral-form__input--date:invalid {
    color: transparent;
}

.referral-form__input--date:invalid::-webkit-datetime-edit {
    opacity: 0;
}

.referral-form__input--date:focus,
.referral-form__input--date:valid {
    color: #000;
}

.referral-form__input--date:focus::-webkit-datetime-edit,
.referral-form__input--date:valid::-webkit-datetime-edit {
    opacity: 1;
}

.referral-form__field-placeholder {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    color: #000;
    pointer-events: none;
}

.referral-form__input--date:focus ~ .referral-form__field-placeholder,
.referral-form__input--date:valid ~ .referral-form__field-placeholder,
.referral-form__input--date.has-value ~ .referral-form__field-placeholder {
    display: none;
}

.referral-form__input--date.has-value {
    color: #000;
}

.referral-form__input--date.has-value::-webkit-datetime-edit {
    opacity: 1;
}

.apply-form__file-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.apply-form__file-label {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.apply-form__file {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #333;
    width: 100%;
}

/* Consent checkbox label — shared (contact, referral, careers apply) */
.form-consent-check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #fff;
}

.form-consent-check span {
    font-family: 'Fraunces', serif;
    font-variation-settings: "wght" 500, "opsz" 144, "SOFT" 100, "WONK" 0;
    letter-spacing: 1px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.55;
    -webkit-text-fill-color: #fff !important;
}

.apply-form__error {
    margin: 0;
    font-size: 0.875rem;
    color: #fca5a5;
}

.apply-form__hint {
    margin: 1.25rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
}

@media (min-width: 769px) {
    .contact-form__footer,
    .referral-form__footer,
    .book-meeting-modal .referral-form__footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 1rem;
    }

    .contact-form__captcha,
    .referral-form__captcha,
    .book-meeting-modal .referral-form__captcha {
        width: auto;
        max-width: 100%;
    }

    .contact-form__captcha .g-recaptcha,
    .referral-form__captcha .g-recaptcha,
    .book-meeting-modal .referral-form__captcha .g-recaptcha {
        transform-origin: left center;
    }

    .contact-form__submit,
    .referral-form__submit,
    .book-meeting-modal .referral-form__submit {
        width: auto;
        justify-self: end;
        white-space: nowrap;
    }
}

/* Referral / book-meeting form (shared card styling) */

.referral-alert {
    margin-bottom: 0;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.referral-form-card > .referral-alert {
    margin-bottom: 1.25rem;
}

.referral-alert--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.referral-alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.referral-alert ul {
    margin: 0;
    padding-left: 1.15rem;
}

.referral-alert__note {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    opacity: 0.9;
}

/* Placeholders — match contact form (black on white fields) */
.contact-form__input::placeholder,
.referral-form__input::placeholder,
.apply-form__input::placeholder {
    color: #000;
    opacity: 1;
}

/* Submit buttons on dark form cards — white glow (referral, contact, careers modal, booking) */
.referral-form-card .btn-primary,
.contact-card .btn-primary,
.apply-form__submit {
    box-shadow: 0px 3px 5px -3px rgba(255, 255, 255, 0.75);
    -webkit-box-shadow: 0px 3px 5px -3px rgba(255, 255, 255, 0.75);
    -moz-box-shadow: 0px 3px 5px -3px rgba(255, 255, 255, 0.75);
}

.referral-form-card .btn-primary:hover,
.contact-card .btn-primary:hover,
.apply-form__submit:hover {
    box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 3px 5px -3px rgba(0, 0, 0, 0.75);
}

.book-meeting-modal__hint {
    margin: 1.25rem 0 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
}

.book-meeting-modal .flatpickr-calendar {
    z-index: 10002;
}

.book-meeting-modal .flatpickr-day.flatpickr-disabled,
.book-meeting-modal .flatpickr-day.flatpickr-disabled:hover {
    color: rgba(255, 255, 255, 0.25);
    background: transparent;
    border-color: transparent;
    cursor: not-allowed;
}

/* Footer */
.site-footer {
    position: relative;
    width: 100%;
    isolation: isolate;
    background: #020617;
}
.site-footer__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.site-footer__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.site-footer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.site-footer .site-footer__inner {
    position: relative;
    z-index: 1;
    padding-top: var(--section-py);

}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    gap: 0;
    align-items: stretch;
}
.site-footer__brand {
    position: relative;
    padding-right: 2.5rem;
}
.site-footer__brand::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: -3.5rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}
.site-footer__right {
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.site-footer__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
}
.site-footer__heading {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}
.site-footer__links,
.site-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer__links li + li,
.site-footer__contact li + li {
    margin-top: 0.35rem;
}
.site-footer__links a,
.site-footer__contact a {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer__links a:hover,
.site-footer__contact a:hover {
    color: #fff;
}
.site-footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
}
.site-footer__newsletter {
    display: flex;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0px 3px 5px -3px rgba(255,255,255,0.75);
    -webkit-box-shadow: 0px 3px 5px -3px rgba(255,255,255,0.75);
    -moz-box-shadow: 0px 3px 5px -3px rgba(255,255,255,0.75);
}
.site-footer__newsletter input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}
.site-footer__newsletter input::placeholder {
    color: #fff;
    font-family: 'Fraunces', serif;
}
.site-footer__newsletter button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s ease;
}
.site-footer__newsletter button:hover {
    color: #fff;
}
.site-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.375rem;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.site-footer__social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
}
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.site-footer__legal a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer__legal a:hover {
    color: #fff;
}
/* Navigation scroll effect */
.nav-scrolled {
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: none;
}

/* Floating badges */
.float-badge { animation: float-badge 4s ease-in-out infinite; }
.float-badge-2 { animation-delay: -2s; animation-duration: 5s; }
@keyframes float-badge {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

/* Ticker */
.ticker-track {
    animation: ticker-scroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* Background grid pattern */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 80px 80px;
}

.container {
    width: 100%;
    max-width: 1650px !important;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ══════════════════════════════════════════════
   HERO BREADCRUMB — all inner pages (right synced in main.js)
   ══════════════════════════════════════════════ */
.hero-breadcrumb {
    position: absolute;
    bottom: 2rem;
    right: 1rem;
    z-index: 10;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.45;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-breadcrumb a:hover {
    color: #fff;
}

/* ══════════════════════════════════════════════
   BLOG CARD — shared component (home slider + news grid)
   ══════════════════════════════════════════════ */
.blog-track,
.blog-track-wrap {
    cursor: default;
}
.blog-track {
    display: flex;
    align-items: stretch;
}
.blog-card {
    --blog-card-title-lines: 2;
    --blog-card-desc-lines: 5;
    flex: 0 0 clamp(220px, calc(28vw - 28px), 360px);
    align-self: stretch;
    height: auto;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: transform, opacity;
    box-shadow: 0px 6px 16px -4px rgba(0,0,0,0.18);
    cursor: default;
}
.blog-card__top {
    height: 200px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}
.blog-card__top--has-image {
    padding: 0;
}
.blog-card__featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}
.blog-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(3, 8, 24, 0.72) 0%,
        rgba(3, 8, 24, 0.35) 60%,
        rgba(3, 8, 24, 0.15) 100%
    );
}
.blog-card__top--has-image .blog-card__tag {
    position: relative;
    z-index: 2;
    margin: 1.25rem 1.25rem 0 auto;
}
.blog-card__icon {
    font-size: 1.5rem;
    color: #ffffff;
    font-family: monospace;
    font-weight: 700;
}
.blog-card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 2rem;
    padding: 0.25rem 0.75rem;
}
.blog-card__body {
    padding: 1.5rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
}
.blog-card__num {
    position: absolute;
    bottom: -0.5rem;
    right: 0.5rem;
    font-family: 'Fraunces', serif;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.4s ease;
}
.blog-card:hover .blog-card__num {
    color: rgba(0, 0, 0, 0.1);
}
.blog-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    border-color: #d0d0d0;
}
.blog-card__title {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    cursor: pointer;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--blog-card-title-lines);
    overflow: hidden;
    min-height: calc(1.3rem * 1.4 * var(--blog-card-title-lines));
}
.blog-card__desc {
    font-size: 1rem;
    color: #000;
    line-height: 1.65;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--blog-card-desc-lines);
    overflow: hidden;
    min-height: calc(1rem * 1.65 * var(--blog-card-desc-lines));
}
.blog-card__link {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
    margin-top: auto;
}
.blog-card__link:hover {
    opacity: 0.6;
}

.news-grid .blog-card {
    width: 100%;
    height: 100%;
}

/* Breadcrumb horizontal position: synced in main.js to #nav-cta-anchor (Get started) */

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — jedan blok po breakpointu
   ═══════════════════════════════════════════════════════════════════ */

/* Desktop (lg+) */
@media (min-width: 1024px) {
    .nav-search__icon {
        height: 1.75rem;
    }
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .hero-breadcrumb {
        left: 1rem;
        right: auto;
        text-align: left;
    }

    .hero-title {
        font-size: 3.6rem !important;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .site-footer__brand {
        padding-right: 0;
        padding-bottom: 2.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .site-footer__brand::after {
        display: none;
    }

    .site-footer__right {
        padding-left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 2.5rem;
    }

    .site-footer__row,
    .site-footer__row--bottom {
        display: contents;
    }

    .site-footer__row--bottom > div:nth-child(2) {
        display: none;
    }

    .site-footer__row--bottom > div:last-child {
        grid-column: 1 / -1;
    }

    .hero-slider,
    .careers-hero,
    .about-hero,
    .contact-hero,
    .referral-hero,
    .news-hero,
    .npost-hero,
    .privacy-hero,
    .imprint-hero,
    .svc-hero,
    .svc-detail-hero,
    .search-hero {
        height: 60vh !important;
        min-height: 300px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-sub {
        font-size: 1.2rem !important;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h1.section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3.section-title {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
    }

    section.svc-ai-banner.is-parallax-fallback .svc-ai-banner__bg {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: clamp(2.8rem, 7vw, 2.8rem) !important;
    }

    .hero-sub {
        font-size: 1rem !important;
    }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .site-footer .site-footer__inner {
        padding-top: var(--section-py);

    }

    .site-footer__right {
        gap: 1.5rem 2rem;
    }

    .site-footer__heading {
        font-size: 1.25rem;
    }

    .apply-modal {
        align-items: stretch;
        justify-content: flex-start;
        height: 100dvh;
        max-height: 100dvh;
        padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
        overflow: hidden;
        box-sizing: border-box;
    }

    .apply-modal.is-open {
        display: flex;
        flex-direction: column;
    }

    .apply-modal__box {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .apply-modal__box.referral-form-card {
        width: 100%;
        max-width: 100%;
    }

    .apply-modal__content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .contact-form__row,
    .referral-form__row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card,
    .referral-form-card:not(.apply-modal__box),
    .apply-modal__content {
        padding: 2rem 1.5rem;
    }

    .contact-form,
    .referral-form {
        gap: 1.25rem;
    }

    .hero-slider,
    .careers-hero,
    .about-hero,
    .contact-hero,
    .referral-hero,
    .news-hero,
    .npost-hero,
    .privacy-hero,
    .imprint-hero,
    .svc-hero,
    .svc-detail-hero,
    .search-hero {
        height: 70vh !important;
        min-height: 300px !important;
    }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
    .nav-search-modal {
        padding-top: 5.5rem;
    }

    .contact-form__captcha .g-recaptcha,
    .referral-form__captcha .g-recaptcha {
        transform: scale(0.92);
        transform-origin: left top;
    }

    .contact-card,
    .referral-form-card:not(.apply-modal__box),
    .apply-modal__content {
        padding: 1.75rem 1.25rem;
        border-radius: 1rem;
    }

    .apply-modal__box.referral-form-card {
        border-radius: 1rem;
    }

    .referral-form {
        gap: 1.25rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-breadcrumb {
        font-size: 0.75rem;
        bottom: 1.25rem;
        line-height: 1.4;
    }

    .site-footer__right {
        gap: 1.25rem 1.5rem;
    }

    .site-footer__row > div:nth-child(3),
    .site-footer__row--bottom > div:first-child {
        grid-column: 1 / -1;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .site-footer__legal {
        gap: 1rem;
    }
}

/* iOS only — modal card inset + date field (Android keeps stretch layout above) */
@media (max-width: 768px) {
    html.platform-ios .apply-modal {
        align-items: center;
        justify-content: center;
        height: 100dvh;
        max-height: 100dvh;
        padding:
            max(0.75rem, env(safe-area-inset-top))
            max(1.25rem, env(safe-area-inset-right))
            max(0.75rem, env(safe-area-inset-bottom))
            max(1.25rem, env(safe-area-inset-left));
        overflow: hidden;
        box-sizing: border-box;
    }

    html.platform-ios .apply-modal__box,
    html.platform-ios .apply-modal__box.referral-form-card {
        width: 100%;
        max-width: 100%;
        flex: 0 1 auto;
        min-height: 0;
        max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        margin: 0;
        border-radius: 1rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    html.platform-ios .apply-modal__content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding: 1.75rem 1.25rem;
    }

    html.platform-ios .apply-modal__close {
        top: 0.85rem;
        right: 1rem;
    }

    html.platform-ios .referral-form__date-field {
        overflow: hidden;
        max-width: 100%;
    }

    html.platform-ios .referral-form__input--date {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 2.875rem;
        box-sizing: border-box;
        padding: 0.85rem 2.75rem 0.85rem 1rem;
        line-height: 1.25;
        -webkit-appearance: none;
        appearance: none;
    }

    html.platform-ios .referral-form__input--date::-webkit-calendar-picker-indicator {
        margin: 0;
        padding: 0;
    }

    html.platform-ios .referral-form__field-placeholder {
        left: 1rem;
    }

    html.platform-ios .referral-form__schedule {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    section.svc-ai-banner .svc-ai-banner__bg {
        background-attachment: scroll;
    }
}

