﻿/* Prism Language Solutions - single stylesheet. Hand-written, no framework.
   Palette: teal brand, charcoal ink, amber accent, off-white tint. */

:root {
    --ink: #17212b;
    --ink-soft: #3b4650;
    --muted: #5f6b76;
    --brand: #0f766e;
    --brand-dark: #0b4f4a;
    --brand-tint: #e6f4f2;
    --accent: #d97706;
    --accent-dark: #b45309;
    --paper: #ffffff;
    --tint: #f4f8f7;
    --line: #dfe6e4;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(11, 79, 74, .08);
    --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.6em; }
h3 { font-size: 20px; margin-top: 1.4em; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: 15.5px; }
/* A data table keeps readable column widths and scrolls sideways on a narrow screen
   instead of squeezing its columns to nothing. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; }
.table-wrap table { margin-bottom: 0; min-width: 520px; }
.table-wrap:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
/* Visually hidden. The sizes are !important because a more specific form rule
   (.field input[type=text]) would otherwise win and stretch the hidden honeypot
   field to full width, pushing the page into a horizontal scroll on a phone. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important;
           padding: 0 !important; border: 0 !important; margin: -1px; overflow: hidden;
           clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-tint); }

/* Top bar */
.topbar { background: var(--brand-dark); color: #d7f2ee; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; margin-left: 18px; }
.topbar-note { opacity: .95; }

/* Header + nav */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-name span { color: var(--brand); }
.brand-light { color: #fff; }
.brand-light .brand-name span { color: #5eead4; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 10px 12px; color: var(--ink-soft); font-weight: 600; font-size: 15.5px; border-radius: 6px; }
.nav-list > li > a:hover { background: var(--tint); text-decoration: none; color: var(--ink); }
.nav-cta > a.btn { padding: 10px 18px; color: #fff; margin-left: 8px; }
.nav-cta > a.btn:hover { color: #fff; background: var(--accent-dark); }
.menu-open { display: none; }
.menu {
    position: absolute; left: 0; top: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: var(--shadow); padding: 10px; min-width: 250px;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s;
    z-index: 60;
}
.menu-wide { display: flex; gap: 6px; min-width: 500px; }
.menu ul { list-style: none; margin: 0; padding: 0; min-width: 230px; }
.menu li { margin: 0; }
.menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink-soft); font-size: 15px; }
.menu a:hover { background: var(--tint); color: var(--brand-dark); text-decoration: none; }
.has-menu:hover > .menu, .has-menu:focus-within > .menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Hero band */
.hero { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); color: #fff; padding: 46px 0 40px; }
.hero h1 { color: #fff; margin-bottom: 10px; }
.hero-sub { font-size: 19px; max-width: 760px; color: #d7f2ee; margin-bottom: 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.12); }
.breadcrumb { font-size: 14px; margin-bottom: 14px; color: #b7e4dd; }
.breadcrumb a { color: #e6f4f2; }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

/* Two-column page layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; padding-top: 40px; padding-bottom: 56px; }
.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { padding-top: 6px; }
.lede { font-size: 19.5px; line-height: 1.6; color: var(--ink-soft); }
.reviewed { font-size: 14px; color: var(--muted); border-left: 3px solid var(--brand); padding-left: 12px; margin: 0 0 22px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 26px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.trust li { background: var(--tint); border-radius: 8px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); margin: 0; }
.trust li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-right: 8px; }
.note { background: var(--brand-tint); border-radius: 10px; padding: 16px 18px; margin: 0 0 1.3em; }
.note p:last-child { margin-bottom: 0; }

/* Sidebar */
.side { position: sticky; top: 92px; align-self: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; }
.card h2, .card h3 { margin-top: 0; font-size: 19px; }
.card p { font-size: 15.5px; }
.card .btn { width: 100%; text-align: center; margin-bottom: 10px; }
.card-contact { font-size: 15px; color: var(--ink-soft); }
.card-contact a { font-weight: 700; }
.card ul { padding-left: 0; list-style: none; margin: 0; }
.card li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.card li:first-child { border-top: 0; }
.card-dark { background: var(--brand-dark); color: #d7f2ee; border: 0; }
.card-dark h2, .card-dark h3 { color: #fff; }
.card-dark a { color: #fff; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 11px; font-size: 22px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 0 16px; color: var(--ink-soft); }

/* Sources */
.sources { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; }
.sources h2 { font-size: 18px; margin-top: 0; }
.sources ul { font-size: 14px; color: var(--muted); }
.sources li { margin-bottom: 6px; }

/* Link grids (languages, documents, cities) */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 1.6em; }
.link-grid li { margin: 0; }
.link-grid a { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); font-size: 15px; }
.link-grid a:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; background: var(--tint); }

/* Home page bands */
.band { padding: 56px 0; }
.band-tint { background: var(--tint); }
.band-dark { background: var(--brand-dark); color: #d7f2ee; }
.band-dark h2 { color: #fff; }
.band-dark a:not(.btn) { color: #fff; }
.band h2 { margin-top: 0; }
.band-intro { max-width: 720px; color: var(--ink-soft); font-size: 18px; }
.band-dark .band-intro { color: #d7f2ee; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 26px; }
.card-link { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.card-link h3 { margin: 0 0 8px; font-size: 19px; color: var(--brand-dark); }
.card-link p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-top: 26px; }
.stat { background: rgba(255,255,255,.08); border-radius: 10px; padding: 18px; }
.stat strong { display: block; font-size: 32px; color: #fff; line-height: 1.1; }
.stat span { font-size: 14.5px; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 26px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; margin: 0; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.home-hero { padding: 70px 0 64px; }
.home-hero h1 { max-width: 820px; }
.home-hero .hero-sub { font-size: 20px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=time],
.field select, .field textarea {
    width: 100%; padding: 11px 12px; border: 1px solid #c9d3d0; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field .hint { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 15px; }
.choice input { accent-color: var(--brand); }
.form-error { background: #fdf2f2; border: 1px solid #f3b8b8; color: #8a1c1c; border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; }
.form-ok { background: var(--brand-tint); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
fieldset { border: 0; padding: 0; margin: 0 0 1.2em; }
legend { font-weight: 800; font-size: 18px; margin-bottom: 12px; padding: 0; }

/* Footer */
.site-footer { background: #0e1b1a; color: #b8c7c4; margin-top: 20px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 48px; padding-bottom: 36px; }
.footer-about p { margin: 14px 0; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: #e2ecea; }
.footer-heading { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 22px; font-size: 13.5px; }
.footer-legal p { margin: 0; }

/* 404 */
.notfound { text-align: center; padding: 70px 22px; }
.notfound .code { font-size: 96px; font-weight: 800; color: var(--brand-tint); line-height: 1; }

/* Responsive */
@media (max-width: 1024px) {
    /* minmax(0, 1fr), not 1fr: an auto-sized grid track grows to its widest content, so a
       520px table inside would push the whole page into a horizontal scroll. */
    .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow: auto; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; padding: 8px 12px 16px; gap: 0; }
    .nav-list > li { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
    .nav-list > li > a { flex: 1; padding: 12px 8px; }
    .nav-list > li:first-child { border-top: 0; }
    .menu-open { display: inline-block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
    .menu-open::after { content: ""; position: absolute; left: 17px; top: 15px; width: 9px; height: 9px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .15s; }
    .has-menu.is-open .menu-open::after { transform: rotate(225deg); top: 20px; }
    .menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; width: 100%; min-width: 0; }
    .menu-wide { flex-direction: column; gap: 0; }
    .has-menu.is-open > .menu { display: block; }
    .has-menu:hover > .menu { display: none; }
    .has-menu.is-open:hover > .menu { display: block; }
    .nav-cta { padding-top: 12px; }
    .nav-cta > a.btn { margin-left: 0; text-align: center; width: 100%; }
    .topbar-note { display: none; }
    .topbar a { margin-left: 0; margin-right: 16px; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    /* Comfortable tap targets: footer and menu links are otherwise about 22px tall. */
    .site-footer a, .menu a { display: inline-block; padding: 7px 0; }
    .site-footer li { margin-bottom: 2px; }
    .breadcrumb a { display: inline-block; padding: 4px 0; }
    .hero { padding: 32px 0 30px; }
    .layout { padding-top: 26px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .band { padding: 40px 0; }
    .home-hero { padding: 44px 0 40px; }
}
@media print {
    .topbar, .site-header, .site-footer, .side, .cta-row, .hero-cta { display: none; }
}
