/* Rethios website - one stylesheet, no external fonts or libraries */
:root {
    --navy: #0C3C60;
    --navy-dark: #082a44;
    --orange: #F58144;
    --orange-dark: #D9632A;
    --text: #26333D;
    --muted: #5B6873;
    --line: #DCE4EA;
    --tint: #F2F6F9;
    --white: #FFFFFF;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(12, 60, 96, 0.08);
    --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.icon { width: 1.2em; height: 1.2em; vertical-align: -0.2em; flex-shrink: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
mark.todo { background: #FFE8A3; color: #6B4E00; padding: 0 4px; border-radius: 3px; }

/* ---------- header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.site-header .wrap { max-width: 1320px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 24px; }
.brand img { display: block; width: 141px; height: 50px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #DCE7F0; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 6px 6px 0 0; }
.lang-switch { display: inline-flex; align-items: center; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.25); gap: 2px; }
.site-nav .lang-switch a { padding: 6px 7px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: #AFC4D4; box-shadow: none; }
.site-nav .lang-switch a.active { color: var(--white); background: rgba(255,255,255,0.12); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 28px; padding: 8px; cursor: pointer; }
.menu-toggle .icon-close { display: none; }

@media (max-width: 1240px) {
    .menu-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--navy); flex-direction: column; padding: 8px 24px 20px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
    .site-nav a { padding: 12px 8px; font-size: 1.05rem; }
    .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); border-radius: 0; }
    .nav-open .site-nav { display: flex; }
    .lang-switch { margin: 10px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.2); }
    .site-nav .lang-switch a { padding: 8px 12px; font-size: 0.95rem; }
    .nav-open .menu-toggle .icon-open { display: none; }
    .nav-open .menu-toggle .icon-close { display: inline; }
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.tint { background: var(--tint); }
section.navy { background: var(--navy); color: #E6EEF4; }
section.navy h2, section.navy h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--orange-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
section.navy .eyebrow { color: var(--orange); }
.lead { font-size: 1.2rem; color: var(--muted); }
section.navy .lead { color: #C9D8E4; }

/* ---------- hero ---------- */
.hero { padding: 80px 0 72px; background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--orange-dark); }
.hero .lead { margin-bottom: 28px; }
.hero-art { width: 100%; max-width: 480px; justify-self: center; }
.hero .lead strong { color: var(--navy); }
/* value proposition: consulting + tool = better decisions */
.uvp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 28px; }
.uvp-part { padding: 8px 14px; border: 2px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 700; font-size: 0.95rem; background: var(--white); }
.uvp-result { background: var(--orange); border-color: var(--orange); color: var(--white); }
.uvp-op { color: var(--orange-dark); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.uvp-end { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.uvp-result { border-radius: 22px; text-align: center; }
.page-hero { padding: 64px 0 48px; background: var(--tint); }
.page-hero .lead { max-width: 760px; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
section.navy .btn-secondary { border-color: var(--white); color: var(--white); }
section.navy .btn-secondary:hover { background: var(--white); color: var(--navy); }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; }

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
section.tint .card { border-color: transparent; }
.card h3 { margin-top: 4px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 12px; }
.card.flex { display: flex; flex-direction: column; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 26px; margin-bottom: 14px; }
.badge.orange { background: var(--orange); }
.badge.soft { background: #E3ECF3; color: var(--navy); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange-dark); margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

ul.checks, ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
ul.checks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
ul.plain li { margin-bottom: 8px; }

/* two paths (companies / consulting firms) */
.path { border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; }
.path.companies { background: var(--navy); color: #E6EEF4; }
.path.companies h3, .path.companies h2 { color: var(--white); }
.path.firms { background: var(--white); border: 2px solid var(--navy); }
.path .sub { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 14px; margin-top: 14px; }
.path.firms .sub { border-top-color: var(--line); }
.path .btn { align-self: flex-start; margin-top: auto; }
.path .sub:last-of-type { margin-bottom: 24px; }

/* "where Rethios fits": the middle layer stands out */
.layers { position: relative; }
.card.highlight { background: var(--navy); border-color: var(--navy); color: #E6EEF4; transform: translateY(-6px); box-shadow: 0 14px 32px rgba(12, 60, 96, 0.25); }
.card.highlight h3 { color: var(--white); }
@media (min-width: 761px) {
    .layers .card.layer:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 14px; height: 14px; border-top: 4px solid var(--orange); border-right: 4px solid var(--orange); transform: translateY(-50%) rotate(45deg); }
    .layers .card.layer { position: relative; }
}
/* comparison table: the Rethios column stands out */
table.compare th.rethios { background: var(--orange); }
table.compare td:last-child { background: #FFF5EF; color: var(--navy); font-weight: 600; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps.five { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* figures */
.figures { display: flex; flex-wrap: wrap; gap: 40px; }
.figure strong { display: block; font-size: 2.6rem; color: var(--orange); line-height: 1; }
.figure span { color: inherit; opacity: 0.85; }

/* table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* split rows (text + visual) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.quote { border-left: 4px solid var(--orange); padding: 6px 0 6px 22px; font-size: 1.15rem; font-style: italic; color: var(--navy); margin: 0; }
.quote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-style: normal; font-weight: 600; color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .actions { justify-content: center; }

/* about */
.person { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.person img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #B9C7D2; border-radius: 8px; font: inherit; color: var(--text); background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid rgba(12,60,96,0.2); }
.captcha { display: flex; align-items: center; gap: 14px; }
.captcha-code { font-family: Consolas, "Courier New", monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.35em; color: var(--navy); background: repeating-linear-gradient(45deg, #EEF3F7, #EEF3F7 6px, #E1EAF1 6px, #E1EAF1 12px); padding: 8px 14px; border-radius: 8px; user-select: none; }
.captcha input { max-width: 160px; }
.form-message { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px; }
.form-message.ok { display: block; background: #E7F6EC; color: #1E6B39; }
.form-message.error { display: block; background: #FDECEA; color: #8A2A1F; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* legal pages */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: #C9D8E4; padding: 56px 0 24px; font-size: 0.95rem; }
.site-footer a { color: #E6EEF4; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 120px; height: auto; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.88rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .grid-4, .grid-5, .steps, .steps.five { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    section { padding: 52px 0; }
    .hero { padding: 48px 0; }
    .hero-grid, .split, .grid-2, .grid-3, .contact-grid, .person, .footer-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 320px; }
    .person img { max-width: 220px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .grid-4, .grid-5, .steps, .steps.five { grid-template-columns: 1fr; }
    .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* use cases page */
.case-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.case-index a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.case-index a:hover { border-color: var(--orange); color: var(--orange-dark); }
.case { scroll-margin-top: 90px; }
.case-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.case-head .badge { flex: 0 0 auto; margin-bottom: 0; }
.case-head h2 { font-size: 1.35rem; margin: 0; }
.case-with { margin: 4px 0 8px; font-weight: 700; color: var(--navy); }
.case-result { margin-top: auto; padding: 12px 16px; border-left: 4px solid var(--orange); background: var(--tint); border-radius: 0 8px 8px 0; }
