/* ==========================================================================
   Plasser & Theurer Corporate Design — Fonts, Tokens, Typography & Buttons
   ========================================================================== */

/* ---------- Self-hosted Rubik Variable Font (300–700, normal + italic) ---------- */

/* cyrillic */
@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../Fonts/rubik-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../Fonts/rubik-latin-ext-wght-normal.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;
}

/* latin */
@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../Fonts/rubik-latin-wght-normal.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;
}

/* cyrillic italic */
@font-face {
    font-family: "Rubik";
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url("../Fonts/rubik-cyrillic-wght-italic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext italic */
@font-face {
    font-family: "Rubik";
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url("../Fonts/rubik-latin-ext-wght-italic.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;
}

/* latin italic */
@font-face {
    font-family: "Rubik";
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url("../Fonts/rubik-latin-wght-italic.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;
}

/* ---------- Corporate Design Tokens ---------- */

:root {
    --blue: #003576;
    --yellow: #FFCC00;
    --white: #FFFFFF;
    --text: #333333;
    --claim: #DAE0E3;
    --silver: #E6E6E6;
    --muted: #5C6168;
    --on-blue-muted: #C3CEE0;
    --line: rgba(51, 51, 51, 0.14);
    --line-blue: rgba(255, 255, 255, 0.2);
    --poly-1: #1B2749;
    --poly-2: #223976;
    --poly-3: #293F82;
    --red: #D4021D;
    --lightblue: #00A0D9;
    --orange: #EE7F00;
    --font: "Rubik", Arial, sans-serif;
    --ease: cubic-bezier(0.76, 0, 0.24, 1);
    --gut-l: max(16px, env(safe-area-inset-left, 0px));
    --gut-r: max(16px, env(safe-area-inset-right, 0px));
    --maxw: 1240px;

    /* Default surface tokens (matching [data-surface="light"]) */
    --surface-bg: var(--white);
    --surface-fg: var(--text);
    --surface-heading: var(--blue);
    --surface-muted: var(--muted);
    --surface-accent: var(--blue);
    --surface-border: var(--line);
    --surface-focus: var(--blue);
    color-scheme: light;
}

/* ---------- Base Reset & Typography ---------- */

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

body {
    margin: 0;
    background-color: var(--surface-bg);
    color: var(--surface-fg);
    font-family: var(--font);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 860px) {
    body {
        font-size: 16px;
    }
}

h1,
h2,
h3,
h4,
.h-display {
    margin: 0;
    font-weight: 300;
    text-wrap: balance;
    color: var(--surface-heading);
}

h1,
.h-display {
    line-height: 1.08;
}

h2,
.h2 {
    font-size: clamp(30px, 4.2vw, 50px);
    line-height: 1.12;
}

h3 {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.25;
}

h4 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
}

h1 b,
h1 strong,
h2 b,
h2 strong,
h3 b,
h3 strong,
.h-display b,
.h-display strong {
    font-weight: 500;
}

p {
    margin: 0;
}

p + p {
    margin-top: 1em;
}

strong,
b {
    font-weight: 500;
}

a {
    color: var(--surface-accent);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

button {
    font: inherit;
    color: inherit;
}

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

/* ---------- Semantic Text Styles ---------- */

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--surface-muted);
}

.tag {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow-num,
.tag b {
    font-weight: 500;
    font-size: 16px;
    color: var(--surface-accent);
}

.big {
    font-size: clamp(22px, 2.3vw, 28px);
    line-height: 1.45;
    font-weight: 300;
    color: var(--surface-heading);
}

.lead {
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.55;
    font-weight: 300;
}

.small {
    font-size: 13px;
    line-height: 1.5;
    color: var(--surface-muted);
}

.tabnum {
    font-variant-numeric: tabular-nums;
}

/* ---------- Pull Quote (.brochure-quote & blockquote.quote) ---------- */

.brochure-quote,
blockquote.quote,
blockquote {
    margin: 1.5rem 0 0;
    padding-left: 22px;
    border-left: 3px solid var(--yellow);
}

[data-surface="yellow"] .brochure-quote,
[data-surface="yellow"] blockquote.quote,
[data-surface="yellow"] blockquote {
    border-left-color: var(--blue);
}

.brochure-quote blockquote {
    margin: 0;
    padding-left: 0;
    border-left: 0;
}

.brochure-quote blockquote p,
.brochure-quote q,
blockquote.quote,
blockquote p {
    font-style: italic;
    font-weight: 300;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.4;
    color: var(--surface-fg);
}

.brochure-quote figcaption,
.brochure-quote cite,
blockquote.quote cite,
blockquote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 14px;
    color: var(--surface-muted);
}

.brochure-quote cite strong,
.brochure-quote cite b,
blockquote.quote cite strong,
blockquote.quote cite b,
blockquote cite strong,
blockquote cite b {
    font-weight: 500;
    color: var(--surface-fg);
}

/* ---------- Surface-Adaptive Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625em;
    border-radius: 3px;
    padding: 12px 22px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Primary CTA: Plasser blue + white on light/paper/yellow; yellow + blue on dark */
.btn-primary {
    background-color: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background-color: #00285A;
    border-color: #00285A;
}

[data-surface="dark"] .btn-primary {
    background-color: var(--yellow);
    color: var(--blue);
    border-color: var(--yellow);
}

[data-surface="dark"] .btn-primary:hover {
    background-color: var(--white);
    color: var(--blue);
    border-color: var(--white);
}

/* Secondary CTA: blue outline on light/paper/yellow; white ghost outline on dark */
.btn-secondary {
    background-color: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-secondary:hover {
    background-color: var(--blue);
    color: var(--white);
}

[data-surface="dark"] .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

[data-surface="dark"] .btn-secondary:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Chip CTA: compact bordered pill link */
.btn-chip {
    padding: 10px 18px;
    border-color: rgba(0, 53, 118, 0.3);
    background-color: var(--white);
    color: var(--blue);
    font-weight: 400;
}

.btn-chip:hover {
    background-color: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

[data-surface="dark"] .btn-chip {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

[data-surface="dark"] .btn-chip:hover {
    background-color: var(--yellow);
    color: var(--blue);
    border-color: var(--yellow);
}

/* Width, size & trailing icon helpers */
.btn-fit,
.btn[data-btn-width="fit"] {
    width: auto;
}

.btn-fill,
.btn[data-btn-width="fill"],
.btn.btn-chip.btn-fill,
.btn.btn-chip[data-btn-width="fill"],
a[data-btn-width="fill"] {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.btn-sm {
    padding: 9px 16px;
    font-size: 14px;
}

a[data-btn-icon]:not([data-btn-icon=""]) {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625em;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.125em;
    height: 1.125em;
    transition: transform 0.25s;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.btn:hover .btn-icon,
a[data-btn-icon]:hover .btn-icon {
    transform: translateX(3px);
}

.arrow {
    display: inline-block;
    transition: transform 0.25s;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .btn,
    .btn-icon,
    .arrow {
        transition: none;
    }

    .btn:hover,
    .btn:hover .btn-icon,
    a[data-btn-icon]:hover .btn-icon,
    .btn:hover .arrow {
        transform: none;
    }
}
