/* ---------- Design tokens (Guide-IT brand) ---------- */
:root {
    --brand: #0072AE;          /* logo blue rgb(0,114,174) */
    --brand-dark: #005b8c;
    --brand-soft: #e6f2f9;
    --navy: #0b1f33;
    --navy-2: #12304d;
    --ink: #1c1c1c;
    --text: #263238;
    --muted: #5f6b76;
    --bg: #f5f7fa;
    --card: #ffffff;
    --border: #e1e7ee;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 8px 24px rgba(11, 31, 51, .06);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
button { font: inherit; }
code { font-family: ui-monospace, Consolas, monospace; background: var(--brand-soft); padding: .1em .35em; border-radius: 4px; }

/* FocusOnNavigate moves focus to the page <h1> for screen readers; hide the visual ring it causes. */
h1:focus, h1:focus-visible, [tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand-logo { height: 58px; width: auto; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
    color: var(--navy); font-weight: 500; padding: .5rem .85rem; border-radius: 8px; transition: background .15s;
}
.site-nav a:hover { background: var(--brand-soft); text-decoration: none; }
.site-nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.site-nav a.nav-cta { background: var(--brand); color: #fff; font-weight: 600; margin-left: .5rem; }
.site-nav a.nav-cta:hover { background: var(--brand-dark); }

.lang-switch { display: inline-flex; margin-left: .75rem; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: #fff; }
.site-nav .lang-switch a {
    color: var(--muted); font-weight: 600; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .04em;
}
.site-nav .lang-switch a.active { background: var(--navy); color: #fff; }

.nav-checkbox { display: none; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero, .page-hero {
    background: radial-gradient(1200px 500px at 85% -10%, rgba(0, 114, 174, .45), transparent 60%),
                linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
}
.hero h1, .page-hero h1 { color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; padding: 5.5rem 0; }
.page-hero .container { padding: 3.5rem 0; }
.hero-tagline { font-size: 1.25rem; font-weight: 600; color: #cfe6f5; margin-bottom: .75rem; max-width: 60ch; }
.hero-lead { font-size: 1.1rem; color: rgba(255, 255, 255, .82); max-width: 60ch; }
.hero-note { font-size: .9rem; color: rgba(255, 255, 255, .65); max-width: 70ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; backdrop-filter: blur(4px);
}
.stat-value { display: block; font-size: 2.25rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-value.stat-text { font-size: 1.45rem; padding-top: .4rem; }
.stat-label { display: block; margin-top: .4rem; font-size: .85rem; color: rgba(255, 255, 255, .75); }

.eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand); margin-bottom: .75rem;
}
.eyebrow.light { color: #7fc4ea; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.4rem; border-radius: 10px; font-weight: 600; border: 1px solid transparent;
    transition: transform .12s, box-shadow .12s, background .15s; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(0, 114, 174, .35); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }
.btn-block { display: flex; width: 100%; margin-top: 1.25rem; }

/* ---------- Sections & cards ---------- */
.section { padding: 4.5rem 0; }
.section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.section-heading { margin-bottom: 1.75rem; }
.section-heading.center { text-align: center; }
.section-heading .lead { color: var(--muted); font-size: 1.05rem; max-width: 65ch; }
.section-heading.center .lead { margin-inline: auto; }
.prose { font-size: 1.02rem; max-width: 70ch; }
.prose-page { max-width: 75ch; }
.prose-page h2 { font-size: 1.35rem; margin-top: 2rem; }
.subsection-title { margin: 3rem 0 .5rem; font-size: 1.35rem; }

.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow);
}
.card + .card { margin-top: 1.25rem; }
.cta-card { background: linear-gradient(135deg, var(--brand-soft), #fff); }
.cta-card p { color: var(--muted); }
.center-actions { text-align: center; margin-top: 2rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Key skill level bars ---------- */
.level-row { margin-bottom: 1rem; }
.level-label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .35rem; }
.level-name { font-weight: 600; color: var(--navy); }
.level-text { color: var(--muted); font-size: .8rem; }
.level-bar { display: grid; grid-auto-flow: column; gap: 4px; }
.level-bar .segment { height: 8px; border-radius: 4px; background: var(--border); }
.level-bar .segment.filled { background: linear-gradient(90deg, var(--brand), #2b9fd8); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .78rem; color: var(--muted); margin: 1.25rem 0 0; }
.legend strong { color: var(--brand); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.chips li {
    background: var(--brand-soft); color: var(--brand-dark); border: 1px solid rgba(0, 114, 174, .18);
    border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 500; white-space: nowrap;
}
.chips.small li { font-size: .76rem; padding: .2rem .6rem; }
.chips.large li { font-size: .95rem; padding: .45rem 1rem; }
.chips.center { justify-content: center; }

/* ---------- Projects & cases ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .75rem;
}
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.project-period { font-size: .8rem; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.project-client { margin: .15rem 0 0; font-size: 1.3rem; }
.project-client a { color: var(--navy); }
.project-client a:hover { color: var(--brand); }
.project-role {
    font-size: .78rem; font-weight: 600; background: var(--navy); color: #fff;
    padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
}
.project-desc { color: var(--text); margin: 0; }
.project-subhead { margin: .5rem 0 .25rem; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted); }
.project-tasks { padding-left: 1.2rem; margin: 0; }
.project-tasks li { margin-bottom: .3rem; }
.project-more { margin: .25rem 0 0; font-weight: 600; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.case-grid p { margin: 0; font-size: .95rem; }
.case-body h2 { font-size: 1.4rem; margin-top: 1.75rem; }
.case-body h2:first-child { margin-top: 0; }
.project-card.compact .project-client { font-size: 1.15rem; }
.project-card.compact .project-desc { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.timeline { position: relative; display: flex; flex-direction: column; gap: 2rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; }
.timeline-marker {
    position: absolute; left: -2rem; top: 1.9rem; width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--brand);
}

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chips a {
    display: inline-block; background: #fff; border: 1px solid var(--border); color: var(--navy); border-radius: 999px;
    padding: .4rem .9rem; font-size: .85rem; font-weight: 500; transition: all .15s;
}
.filter-chips a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.filter-chips a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-form { display: flex; gap: .5rem; }
.search {
    border: 1px solid var(--border); border-radius: 10px; padding: .55rem .9rem; min-width: 240px; font: inherit; background: #fff;
}
.search:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.empty { color: var(--muted); text-align: center; padding: 2rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fafbfc; font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcfe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.skill-name { font-weight: 500; color: var(--navy); }
.card .table { box-shadow: none; border: 1px solid var(--border); }

.skill-group { margin-bottom: 2.5rem; }
.skill-group-title { font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.skill-group-title .count { font-size: .75rem; font-weight: 600; background: var(--brand-soft); color: var(--brand-dark); padding: .1rem .55rem; border-radius: 999px; }

.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.badge.level-5 { background: var(--navy); color: #fff; }
.badge.level-4 { background: var(--brand); color: #fff; }
.badge.level-3 { background: #cfe6f5; color: var(--brand-dark); }
.badge.level-2 { background: #e9eef3; color: var(--text); }
.badge.level-1 { background: #f3f5f7; color: var(--muted); }

/* ---------- Competence areas ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.area-card {
    background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius);
    padding: 1.5rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem;
}
.area-card h3 { font-size: 1.1rem; margin: 0; }
.area-card p { color: var(--muted); font-size: .95rem; margin: 0 0 .25rem; }

/* ---------- Misc ---------- */
.plain-list { list-style: none; }
.plain-list li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.plain-list li:last-child { border-bottom: 0; }
.edu-line { font-weight: 600; color: var(--navy); margin: 0; }
.dev-list { list-style: none; display: grid; gap: .5rem; margin-bottom: 3rem; }
.dev-list li { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: .7rem 1rem; padding-left: 2.2rem; position: relative; }
.dev-list li::before { content: "✓"; position: absolute; left: .9rem; color: var(--brand); font-weight: 700; }

.contact-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; margin: 1.25rem 0 1.75rem; }
.contact-list dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding-top: .2rem; }
.contact-list dd { margin: 0; font-weight: 500; color: var(--navy); }

/* ---------- Front page: how we help / services / partners ---------- */
.steps { list-style: none; display: grid; gap: 1rem; margin: 0; padding: 0; }
.step {
    display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow);
}
.step-no {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.service-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.5rem;
    display: grid; gap: .35rem; box-shadow: var(--shadow); border-top: 4px solid var(--brand);
}
.service-card strong { color: var(--navy); font-size: 1.05rem; }
.service-card span { color: var(--muted); font-size: .95rem; }

.cta-band {
    margin-top: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 2rem 2.25rem;
}
.cta-band h3 { color: #fff; margin-bottom: .25rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); }

.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.partner-card {
    display: grid; gap: .4rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem 1.75rem; box-shadow: var(--shadow); color: inherit; transition: transform .12s, border-color .15s;
}
.partner-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); color: inherit; }
.partner-name { font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.partner-name .ext { color: var(--brand); font-size: .9rem; margin-left: .25rem; }
.partner-desc { color: var(--muted); font-size: .95rem; }
.partner-url { color: var(--brand); font-size: .85rem; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 40ch; font-size: .95rem; }
.footer-brand .muted { display: block; color: rgba(255, 255, 255, .5); font-size: .85rem; }
.footer-col { display: flex; flex-direction: column; gap: .4rem; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.footer-col a { color: rgba(255, 255, 255, .8); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .55); }

/* ---------- Consultant profile (/cv) ---------- */
.cv { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 3rem; margin: 3rem auto; max-width: 900px; }
.cv-head { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.cv-logo { height: 64px; width: auto; }
.cv-name { font-size: 2rem; margin: 0; }
.cv-title { font-weight: 600; color: var(--brand); margin: .25rem 0; }
.cv-contact { margin: 0; font-size: .9rem; color: var(--muted); }
.cv-section { margin-bottom: 1.75rem; }
.cv-section h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); border-bottom: 1px solid var(--border); padding-bottom: .3rem; margin-bottom: .75rem; }
.cv-section p, .cv-section li { font-size: .95rem; }
.cv-areas { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
.cv-areas div { display: grid; }
.cv-areas span { font-size: .85rem; color: var(--muted); }
.cv-table { box-shadow: none; border: 1px solid var(--border); }
.cv-table td { padding: .35rem .75rem; font-size: .9rem; }
.cv-project { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border); break-inside: avoid; }
.cv-project-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .35rem; }
.cv-project-head strong { color: var(--navy); font-size: 1.05rem; }
.cv-project-head span { color: var(--muted); font-size: .85rem; }
.cv-project ul { padding-left: 1.2rem; margin-bottom: .5rem; }
.cv-tech, .cv-skill-line { font-size: .85rem !important; color: var(--muted); }
.cv-foot { border-top: 1px solid var(--border); padding-top: 1rem; font-size: .85rem; }

@media print {
    @page { margin: 14mm; }
    body { background: #fff; font-size: 11pt; }
    .site-header, .site-footer, .no-print { display: none !important; }
    .cv { box-shadow: none; border: 0; margin: 0; padding: 0; max-width: none; }
    a { color: inherit; text-decoration: none; }
    .cv-section h2 { break-after: avoid; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 0; }
    .two-col { grid-template-columns: 1fr; }
    .project-grid, .area-grid, .case-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .brand-logo { height: 48px; }
    .site-nav {
        display: none; position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--border);
        padding: .75rem 1.25rem 1.25rem; box-shadow: var(--shadow);
    }
    .nav-checkbox:checked ~ .site-nav { display: flex; }
    .site-nav a { padding: .8rem .75rem; }
    .site-nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
    .lang-switch { margin: .75rem 0 0; align-self: flex-start; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .section { padding: 3rem 0; }
    .search-form { width: 100%; }
    .search { flex: 1; min-width: 0; }
    .project-head { flex-direction: column; }
    .timeline { padding-left: 1.5rem; }
    .timeline-marker { left: -1.5rem; width: 14px; height: 14px; }
    .service-grid, .partner-grid, .footer-inner, .cv-areas { grid-template-columns: 1fr; }
    .cta-band { padding: 1.5rem; }
    .cv { padding: 1.5rem; }
    .cv-head { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Historical skills (collapsible) ---------- */
.historical { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.historical summary { cursor: pointer; list-style: none; display: grid; gap: .25rem; margin-bottom: 1.25rem; }
.historical summary::-webkit-details-marker { display: none; }
.historical summary .skill-group-title { margin: 0; }
.historical summary .skill-group-title::before { content: "▸"; color: var(--brand); margin-right: .35rem; transition: transform .15s; display: inline-block; }
.historical[open] summary .skill-group-title::before { transform: rotate(90deg); }
.historical .skill-group { margin-bottom: 1.5rem; }
.historical h4.skill-group-title { font-size: 1rem; }
.historical .table { box-shadow: none; border: 1px solid var(--border); }
