/* ==========================================================================
   Universal Legal Boutique — shared styles (UA + EN)
   One mobile breakpoint: max-width 768px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted variable woff2:
   Inter 400–600 (text and UI), Playfair Display 500–600 + italic (headings).
   Split by unicode-range, so a page downloads only the alphabets it uses.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 500 600;
    font-display: swap;
    src: url("../fonts/playfair-display-italic-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 500 600;
    font-display: swap;
    src: url("../fonts/playfair-display-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 500 600;
    font-display: swap;
    src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("../fonts/playfair-display-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("../fonts/playfair-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Brand colours — change here, used everywhere */
    --navy: #1c2541;
    --navy-2: #243055;
    --navy-deep: #141b31;
    --gold: #c5a059;
    --gold-light: #d6b679;
    --gold-dark: #8a6a2f;   /* gold for small text on light backgrounds (AA contrast) */
    --gold-soft: #f5eddd;
    --ink: #1f2433;
    --muted: #5b6275;
    --line: #e6e2d8;
    --bg: #faf8f4;
    --white: #ffffff;

    /* Derived tints (follow the brand colours above) */
    --gold-a08: color-mix(in srgb, var(--gold) 8%, transparent);
    --gold-a20: color-mix(in srgb, var(--gold) 20%, transparent);
    --gold-a60: color-mix(in srgb, var(--gold) 60%, transparent);
    --gold-border: color-mix(in srgb, var(--gold) 45%, var(--gold-soft));
    --shadow: 0 12px 32px color-mix(in srgb, var(--navy) 8%, transparent);
    --shadow-hover: 0 18px 40px color-mix(in srgb, var(--navy) 12%, transparent);

    /* Typography — families */
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Typography — size scale */
    --fs-label: 0.75rem;       /* 12px  uppercase labels */
    --fs-fine: 0.8125rem;      /* 13px  fine print: footer, notes */
    --fs-small: 0.875rem;      /* 14px  UI: buttons, form labels */
    --fs-text-sm: 0.9375rem;   /* 15px  text inside cards */
    --fs-text: 1.0625rem;      /* 17px  body text */
    --fs-lead: 1.1875rem;      /* 19px  intro paragraphs */
    --fs-h4: 1.1875rem;        /* 19px  small titles */
    --fs-h3: 1.375rem;         /* 22px  card titles */
    --fs-h2-sm: 1.625rem;      /* 26px  block titles inside a section */
    --fs-h2: clamp(1.875rem, 1.35rem + 2.1vw, 2.625rem);   /* 30–42px section titles */
    --fs-h1: clamp(2.25rem, 1.45rem + 3.4vw, 3.5rem);      /* 36–56px page title */
    --fs-display: clamp(2.5rem, 1.4rem + 4.8vw, 5rem);     /* 40–80px home page statement */

    /* Typography — line height and tracking */
    --lh-display: 1.08;
    --lh-heading: 1.25;
    --lh-text: 1.65;
    --lh-ui: 1.4;
    --ls-display: -0.01em;
    --ls-label: 0.16em;
    --ls-button: 0.08em;

    --radius: 6px;
    --max: 1160px;
    --header-h: 68px;
}

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

html {
    background: var(--navy-deep);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-text);
    font-weight: 400;
    line-height: var(--lh-text);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --------------------------------------------------------------------------
   Type system
   Serif (Playfair Display 600) — headings; 500 for large numbers.
   Sans (Inter) — everything else: 400 text, 600 labels and buttons.
   Italic serif — accents only: the headline highlight, the motto, the tagline.
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: var(--lh-heading);
    color: var(--navy);
    font-variant-numeric: lining-nums;
    text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: var(--ls-display); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* Label — the single style for small uppercase captions */
.eyebrow, .office-country {
    font-family: var(--font-sans);
    font-size: var(--fs-label);
    font-weight: 600;
    line-height: var(--lh-ui);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

/* Large numbers in the serif */
.card-num {
    font-family: var(--font-serif);
    font-weight: 500;
    font-variant-numeric: lining-nums;
}

/* Italic accents */
.hero h1 em, .platform-motto, .footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Header (identical on every page: logo + language switch)
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

/* Logo lockup — its own fixed proportions, outside the type scale */
.brand { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--white); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-top { font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); }
.brand-name { font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.lang-switch { display: flex; border: 1px solid var(--gold-a60); border-radius: 999px; overflow: hidden; }
.lang-switch a {
    padding: 6px 14px;
    font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-button); line-height: var(--lh-ui);
    color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.2s;
}
.lang-switch a:hover { color: var(--gold); }
.lang-switch a[aria-current] { background: var(--gold); color: var(--navy); }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 34px; border-radius: 2px; border: 1px solid transparent;
    font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600; line-height: var(--lh-ui);
    letter-spacing: var(--ls-button); text-transform: uppercase;
    text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--gold); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 96px 0 104px; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 85% 15%, var(--gold-a20), transparent 45%),
        radial-gradient(circle at 5% 95%, rgba(255, 255, 255, 0.06), transparent 40%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--gold-a08) 1px, transparent 1px),
        linear-gradient(90deg, var(--gold-a08) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to left, #000, transparent 65%);
    mask-image: linear-gradient(to left, #000, transparent 65%);
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--gold); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); flex: none; }

.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { color: var(--gold); }
.hero .lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.8); max-width: 36em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* Home page: one full-screen statement */
.hero-main { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.hero-main h1 { font-size: var(--fs-display); line-height: var(--lh-display); max-width: 13em; margin-bottom: 44px; }
.hero-main .eyebrow { margin-bottom: 28px; }

/* Short message pages (404, thank-you) */
.hero-message { display: flex; align-items: center; min-height: 60vh; }
.hero-message h1 em, .hero-message .lead span { display: block; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 104px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--navy-deep); color: rgba(255, 255, 255, 0.85); }
.section-dark h2 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* Competency cards ------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold);
    border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-num { margin: 0; font-size: var(--fs-text); letter-spacing: 0.12em; color: var(--gold); }
.card h3 { margin: 12px 0 12px; }
.card p:not([class]) { margin: 0; font-size: var(--fs-text-sm); color: var(--muted); }

/* Platform of new opportunities ------------------------------------------ */
.platform { text-align: center; }
.platform-inner { max-width: 840px; }
.platform h2 { margin-bottom: 14px; }
.platform-motto { margin: 0 0 28px; font-size: var(--fs-h2-sm); line-height: var(--lh-heading); color: var(--gold); }
.platform p:not([class]) { margin: 0; font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.8); }

/* Call-to-action band ---------------------------------------------------- */
.band { background: var(--gold-soft); border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border); padding: 64px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.band h2 { font-size: var(--fs-h2-sm); letter-spacing: 0; margin: 0; }
.band p { margin: 0; }

/* Contact: form + offices ------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 4vw, 48px); align-items: start; }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-field { margin: 0 0 18px; }
.form-field label { display: block; margin-bottom: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.form-field input, .form-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
    background: var(--white); color: var(--ink); font-family: inherit; font-size: var(--fs-text); line-height: var(--lh-ui);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-a20); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-consent { margin: 0 0 22px; font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--muted); }
.form-consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.form-consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--gold); }
.form-consent a { color: var(--gold-dark); }
.form-honeypot { position: absolute; left: -9999px; }
.form-submit { margin: 0; }
.form-note { margin: 14px 0 0; font-size: var(--fs-fine); color: var(--muted); }

.offices { display: grid; gap: 20px; }
.office { background: var(--navy); color: var(--white); padding: 32px 32px 28px; border-radius: var(--radius); border-bottom: 4px solid var(--gold); }
.office-country { margin: 0 0 4px; color: var(--gold); }
.office h3 { margin: 0 0 20px; color: var(--white); }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; border: 1px solid var(--gold-a60); color: var(--gold); }
.contact-value { margin: 0; font-size: var(--fs-text); line-height: var(--lh-ui); }
.contact-value a { color: var(--white); text-decoration: none; }
.contact-value a:hover { color: var(--gold); }
.office-map { margin: 0; }

/* Text pages (privacy policy, terms) ------------------------------------ */
.page-hero { background: var(--navy); color: var(--white); padding: 56px 0 48px; border-bottom: 3px solid var(--gold); }
.page-hero h1 { font-size: var(--fs-h2); line-height: 1.15; color: var(--white); margin: 0 0 12px; }
.breadcrumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.6); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--gold); }
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.page-meta { margin: 0; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.7); }
.page-meta a { color: var(--gold); }

.legal-body { max-width: 820px; }
.legal-body h2 { font-size: var(--fs-h2-sm); letter-spacing: 0; margin: 2em 0 0.6em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal-body li { margin-bottom: 0.4em; }
.legal-body li::marker { color: var(--gold); }
.legal-body a { color: var(--gold-dark); }

/* Footer (identical on every page, bilingual) ---------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.65); padding: 64px 0 32px; font-size: var(--fs-small); border-top: 3px solid var(--gold); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-tagline { margin: 14px 0 0; font-size: var(--fs-text); color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 30px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 24px; font-size: var(--fs-fine); }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }
.footer-disclaimer { max-width: 38em; }
.footer-disclaimer p + p { margin-top: 4px; }

/* --------------------------------------------------------------------------
   Mobile (single breakpoint)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --header-h: 62px;
        --fs-text: 1rem;
        --fs-lead: 1.0625rem;
        --fs-h3: 1.25rem;
        --fs-h2-sm: 1.375rem;
    }
    .container { padding: 0 18px; }

    .brand-mark { width: 36px; height: 36px; }
    .brand-name { font-size: 1.02rem; letter-spacing: 0.05em; }
    .brand-top { font-size: 0.58rem; letter-spacing: 0.28em; }
    .lang-switch a { padding: 5px 11px; }

    .hero { padding: 56px 0 64px; }
    .hero-main { padding: 64px 0; }
    .hero-main h1 { margin-bottom: 36px; }
    .hero-actions .btn { width: 100%; }

    .section { padding: 64px 0; }
    .section-head { margin-bottom: 32px; }
    .card { padding: 28px 24px; }
    .band { padding: 48px 0; }
    .band p, .band .btn { width: 100%; }

    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .contact-form { padding: 24px 20px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .office { padding: 28px 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .btn { transition: none; }
    .card:hover { transform: none; }
}
