/* ==========================================================
   KOLONTAY – main stylesheet (asset/css/style.css)
   Colours are defined once in :root – change them there.
   ========================================================== */

:root {
    --k-primary: #0b2b50;        /* navy */
    --k-primary-dark: #08213d;
    --k-primary-soft: #edf2f6;
    --k-accent: #981b2b;         /* red accent (BG flag) */
    --k-accent-dark: #7d1523;
    --k-green: #216b43;          /* green accent (BG flag) */
    --k-text: #273849;
    --k-muted: #5e6d7c;
    --k-bg-soft: #f6f8fa;
    --k-border: #e2e8ed;
    --k-radius: .75rem;
    --k-shadow: 0 .5rem 1.5rem rgba(11, 43, 80, .08);
    --k-shadow-hover: 0 1rem 2rem rgba(11, 43, 80, .14);

    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --bs-body-color: var(--k-text);
    --bs-link-color-rgb: 11, 43, 80;
    --bs-link-hover-color-rgb: 152, 27, 43;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--k-primary); font-weight: 700; line-height: 1.25; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute; left: 1rem; top: 1rem; z-index: 2000;
    background: #fff; padding: .5rem 1rem; border-radius: .5rem; box-shadow: var(--k-shadow);
}

/* ---------- Buttons ---------- */
.btn { border-radius: .5rem; font-weight: 600; padding: .6rem 1.4rem; }
.btn-accent { background: var(--k-accent); border-color: var(--k-accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--k-accent-dark); border-color: var(--k-accent-dark); color: #fff; text-decoration: none; }
.btn-primary { --bs-btn-bg: var(--k-primary); --bs-btn-border-color: var(--k-primary); --bs-btn-hover-bg: var(--k-primary-dark); --bs-btn-hover-border-color: var(--k-primary-dark); --bs-btn-active-bg: var(--k-primary-dark); }
.btn-outline-light:hover { text-decoration: none; }
.btn:hover { text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--k-primary-dark); color: rgba(255,255,255,.8); font-size: .875rem; padding: .45rem 0; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: #fff; }
.topbar-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.topbar-phone i { font-size: .95rem; }
@media (max-width: 767.98px) {
    .topbar .container { justify-content: center !important; }
    .topbar-phone { font-size: 1.05rem; padding: .1rem 0; }
}

/* ---------- Navbar ---------- */
.site-header { background: #fff; backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--k-border); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 .25rem 1rem rgba(0,0,0,.06); }
.navbar { padding: .7rem 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; letter-spacing: .08em; color: var(--k-primary); font-size: 1.25rem; }
.brand-tagline { font-size: .72rem; color: var(--k-muted); text-transform: uppercase; letter-spacing: .1em; }
.navbar-brand:hover { text-decoration: none; }
.navbar .nav-link { font-weight: 600; color: var(--k-text); padding: .5rem .9rem !important; border-radius: .5rem; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--k-accent); text-decoration: none; }
.navbar .nav-link.active { color: var(--k-primary); background: var(--k-primary-soft); }
.dropdown-menu { border: 1px solid var(--k-border); border-radius: .75rem; box-shadow: var(--k-shadow); padding: .5rem; }
.dropdown-item { border-radius: .5rem; padding: .5rem .9rem; font-weight: 500; }
.dropdown-item:hover { text-decoration: none; }
.dropdown-item.active, .dropdown-item:active { background: var(--k-primary); }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--k-primary-soft); }

@media (max-width: 991.98px) {
    .navbar-collapse { padding: .75rem 0 .5rem; }
    .navbar .nav-link { padding: .65rem .75rem !important; }
    .dropdown-menu { border: 0; box-shadow: none; background: var(--k-bg-soft); }
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(115deg, var(--k-primary-dark), var(--k-primary));
    padding: 5rem 0 6rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
.hero .lead { color: rgba(255,255,255,.85); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40rem; }
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: .3rem .9rem; border-radius: 50rem; font-size: .85rem; letter-spacing: .05em; margin-bottom: 1.25rem; }
.hero-facts { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: .5rem; max-width: 36rem; }
.hero-facts li { display: flex; align-items: flex-start; gap: .75rem; color: rgba(255,255,255,.9); font-size: 1.02rem; line-height: 1.5; }
.hero-facts i { flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: .5rem; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.hero-langs { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-langs span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 50rem; padding: .35rem .9rem; font-size: .9rem; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--k-radius); padding: 2rem; backdrop-filter: blur(4px); }
.hero-card .stat { font-size: 2.6rem; font-weight: 800; line-height: 1; }

/* ---------- Inner page hero ---------- */
.page-hero { background: linear-gradient(135deg, var(--k-primary-dark), var(--k-primary)); color: #fff; padding: 3rem 0 3.25rem; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 46rem; margin-bottom: 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--k-bg-soft); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.section-intro { color: var(--k-muted); max-width: 44rem; margin-bottom: 2.5rem; }
.eyebrow { color: var(--k-accent); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; margin-bottom: .5rem; display: block; }

/* ---------- Cards ---------- */
.k-card { background: #fff; border: 1px solid var(--k-border); border-radius: var(--k-radius); padding: 1.75rem; height: 100%; box-shadow: var(--k-shadow); transition: transform .2s, box-shadow .2s; }
a.k-card { display: block; color: inherit; }
a.k-card:hover { transform: translateY(-4px); box-shadow: var(--k-shadow-hover); text-decoration: none; }
.k-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.k-card p:last-child { margin-bottom: 0; }
.k-icon { width: 3.25rem; height: 3.25rem; border-radius: .9rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--k-primary-soft); color: var(--k-primary); margin-bottom: 1rem; }
.k-icon.accent { background: rgba(152,27,43,.1); color: var(--k-accent); }
.k-icon.green { background: rgba(33,107,67,.1); color: var(--k-green); }
.card-link-more { font-weight: 600; color: var(--k-accent); }

/* ---------- Languages ---------- */
.lang-group { background: #fff; border: 1px solid var(--k-border); border-radius: var(--k-radius); padding: 1.75rem; height: 100%; box-shadow: var(--k-shadow); }
.lang-group h2, .lang-group h3 { font-size: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.lang-group .badge-count { background: var(--k-primary); color: #fff; border-radius: 50rem; font-size: .8rem; padding: .25rem .7rem; }
.lang-group .note { color: var(--k-muted); font-size: .95rem; }
.lang-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.lang-list li { background: var(--k-bg-soft); border: 1px solid var(--k-border); border-radius: 50rem; padding: .3rem .9rem; font-size: .95rem; font-weight: 500; }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.check-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem; color: var(--k-green); font-size: 1.15rem; }
.num-list { counter-reset: num; list-style: none; padding-left: 0; margin-bottom: 0; }
.num-list li { counter-increment: num; position: relative; padding-left: 2.6rem; margin-bottom: .75rem; min-height: 1.8rem; }
.num-list li::before { content: counter(num); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--k-primary-soft); color: var(--k-primary); font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; position: relative; }
.steps li { position: relative; padding: 0 0 1.75rem 3.5rem; }
.steps li::before { content: ""; position: absolute; left: 1.15rem; top: 2.5rem; bottom: 0; width: 2px; background: var(--k-border); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.steps .step-num { position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--k-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.steps p { margin-bottom: 0; color: var(--k-muted); }

/* ---------- Notice ---------- */
.notice { border-left: 4px solid var(--k-green); background: rgba(33,107,67,.06); border-radius: 0 var(--k-radius) var(--k-radius) 0; padding: 1.25rem 1.5rem; }
.notice.warn { border-left-color: var(--k-accent); background: rgba(152,27,43,.05); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--k-primary); border-left: 4px solid var(--k-green); color: #fff; border-radius: var(--k-radius); padding: 2.5rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Offices / contact ---------- */
.office-card address { font-style: normal; }
.office-card dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0; }
.office-card dt { font-weight: 500; color: var(--k-muted); }
.office-card dd { margin: 0; }
.contact-form .form-control, .contact-form .form-select { border-radius: .65rem; padding: .7rem 1rem; }
.contact-form .form-control:focus { border-color: var(--k-primary); box-shadow: 0 0 0 .2rem var(--k-primary-soft); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 50rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--k-primary-dark); color: rgba(255,255,255,.75); padding: 4rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff !important; font-weight: 800; letter-spacing: .08em; font-size: 1.2rem; }
.footer-brand:hover { text-decoration: none; }
.footer-title { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .4rem; }
.site-footer address { color: rgba(255,255,255,.75); }
.site-footer address strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .875rem; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 1rem; bottom: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--k-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--k-shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 1030; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { color: #fff; background: var(--k-accent); text-decoration: none; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
    body { font-size: 1rem; }
    .section { padding: 3rem 0; }
    .hero { padding: 3.5rem 0 4rem; }
    .page-hero { padding: 2.25rem 0 2.5rem; }
    .k-card, .lang-group { padding: 1.35rem; }
    .cta-band { padding: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

@media print {
    .topbar, .site-header, .site-footer, .back-to-top, .cta-band { display: none !important; }
    .hero, .page-hero { background: none; color: #000; padding: 1rem 0; }
    .hero h1, .page-hero h1 { color: #000; }
}

/* Brand refresh — shared by every page, Bootstrap remains unmodified. */
.brand-logo { display: block; width: 320px; max-width: 100%; aspect-ratio: 5.4; overflow: hidden; }
.brand-logo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.navbar-brand { flex-shrink: 0; margin-right: 1.5rem; padding: .35rem 0; }
.navbar { padding: 1rem 0; }
.navbar .nav-link { font-size: .95rem; }
.footer-brand { background: #fff; padding: .9rem 1rem; border-radius: .5rem; max-width: 100%; }
.footer-brand .brand-logo { width: 270px; }
.hero h1 { letter-spacing: -.035em; margin-bottom: 1.25rem; }
.hero .lead { line-height: 1.65; margin-bottom: 1.5rem; }
.hero-card { padding: 2.25rem; background: rgba(255,255,255,.055); box-shadow: none; }
.hero-card .stat { font-weight: 600; letter-spacing: -.045em; }
.section-title, .page-hero h1 { letter-spacing: -.025em; }
.k-card, .lang-group { box-shadow: 0 .2rem .9rem rgba(11,43,80,.035); }
.k-icon { border-radius: .65rem; }
.lang-list li { background: #f8fafb; border-color: #edf0f3; }
.topbar { background: #f1f4f6; color: var(--k-muted); border-bottom: 1px solid var(--k-border); }
.topbar a { color: var(--k-primary); }
.topbar a:hover { color: var(--k-accent); }
.topbar-phone i { color: var(--k-accent); }
.btn-accent { --bs-btn-active-bg: var(--k-accent-dark); --bs-btn-active-border-color: var(--k-accent-dark); --bs-btn-active-color: #fff; }
.btn-primary { --bs-btn-active-border-color: var(--k-primary-dark); --bs-btn-disabled-bg: var(--k-primary); --bs-btn-disabled-border-color: var(--k-primary); }
:focus-visible { outline: 3px solid var(--k-green); outline-offset: 4px; }
.contact-form .form-select:focus { border-color: var(--k-primary); box-shadow: 0 0 0 .2rem var(--k-primary-soft); }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand { margin-right: 1rem; }
    .brand-logo { width: 270px; }
    .navbar .nav-link { padding-left: .6rem !important; padding-right: .6rem !important; }
    .navbar .btn { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 991.98px) {
    .navbar { padding: .85rem 0; }
    .navbar-collapse { border-top: 1px solid var(--k-border); margin-top: .85rem; }
}
@media (max-width: 575.98px) {
    .navbar-brand { margin-right: .5rem; }
    .brand-logo { width: clamp(200px, 66vw, 290px); }
    .hero-card { padding: 1.5rem; }
    .office-card dl { grid-template-columns: 1fr; gap: .15rem; }
    .office-card dd { margin-bottom: .5rem; overflow-wrap: anywhere; }
}
