/*
 * Stylesheet for tradedefence.eu
 * ------------------------------------------------------------------
 * Colours, fonts and sizes are defined once below (":root"). Change a
 * value there and it changes everywhere on the site.
 *
 * Design: deep navy (authority, the Commission/Brussels context), the
 * brand blue and teal of the logo, and a gold accent taken from the
 * EU flag stars. Headings use a serif (legal/policy feel), body text a
 * clean sans-serif for readability.
 */

/* ---------- Fonts (stored locally - no external requests) ---------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/source-serif-4-latin.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */

:root {
    --navy-950: #071528;
    --navy-900: #0b1f3a;
    --navy-800: #12305a;
    --blue-600: #1f5fae;
    --blue-500: #2f74c8;
    --blue-100: #e3eefb;
    --sky-400: #6cb4f0;
    --teal-400: #38bdc9;
    --gold-400: #f4c04e;
    --gold-500: #e2a923;

    --ink: #0f1d33;
    --text: #3a4a62;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --surface-alt: #f5f8fc;

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;

    --container: 1180px;
    --gutter: clamp(20px, 4vw, 40px);
    --section: clamp(64px, 9vw, 112px);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 29, 51, 0.06), 0 1px 3px rgba(15, 29, 51, 0.04);
    --shadow: 0 10px 30px -12px rgba(15, 29, 51, 0.18), 0 2px 6px rgba(15, 29, 51, 0.05);
    --shadow-lg: 0 30px 60px -20px rgba(7, 21, 40, 0.35);
    --header-height: 92px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

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

body {
    margin: 0;
    font: 400 17px/1.7 var(--font-body);
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--navy-800);
}

:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.5em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
}

h3 {
    font-size: 1.35rem;
}

p,
ul,
ol {
    margin: 0 0 1.15em;
}

p:last-child,
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--ink);
    font-weight: 600;
}

address {
    font-style: normal;
}

::selection {
    background: var(--gold-400);
    color: var(--navy-950);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--navy-900);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.muted {
    color: var(--muted);
}

/* ---------- Icons (files in assets/icons/, coloured with CSS) ---------- */

.icon {
    display: inline-block;
    flex: none;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.icon-arrow-right { --icon: url('../icons/arrow-right.svg'); }
.icon-award { --icon: url('../icons/award.svg'); }
.icon-building { --icon: url('../icons/building.svg'); }
.icon-check { --icon: url('../icons/check.svg'); }
.icon-document { --icon: url('../icons/document.svg'); }
.icon-globe { --icon: url('../icons/globe.svg'); }
.icon-handshake { --icon: url('../icons/handshake.svg'); }
.icon-mail { --icon: url('../icons/mail.svg'); }
.icon-phone { --icon: url('../icons/phone.svg'); }
.icon-pin { --icon: url('../icons/pin.svg'); }
.icon-scale { --icon: url('../icons/scale.svg'); }
.icon-search { --icon: url('../icons/search.svg'); }
.icon-shield { --icon: url('../icons/shield.svg'); }
.icon-target { --icon: url('../icons/target.svg'); }

.icon-badge {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--blue-100);
    color: var(--blue-600);
    font-size: 24px;
}

.icon-badge--gold {
    background: rgba(244, 192, 78, 0.18);
    color: var(--gold-500);
}

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.85em 1.5em;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 0.98rem/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn .icon {
    transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gold-400);
    color: var(--navy-950);
    box-shadow: 0 8px 20px -8px rgba(226, 169, 35, 0.7);
}

.btn-primary:hover {
    background: #f7cd6b;
    color: var(--navy-950);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-dark {
    background: var(--navy-900);
    color: #fff;
}

.btn-dark:hover {
    background: var(--blue-600);
    color: #fff;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 600;
    text-decoration: none;
}

.text-link .icon {
    transition: transform 0.2s var(--ease);
}

.text-link:hover .icon {
    transform: translateX(3px);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(15, 29, 51, 0.45);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

/*
 * The original company logos are used unchanged. The large logo
 * (globe + "European Trade Defence") is shown on wide screens; the narrow
 * logo (EU flag + "TRADEDEFENCE") replaces it on small screens, exactly
 * like on the original website.
 */
.brand-logo {
    display: block;
    width: auto;
    height: 80px;
}

.brand-logo-small {
    display: none;
    width: auto;
    height: 30px;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    position: relative;
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text);
    font-size: 0.97rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--ink);
    background: var(--surface-alt);
}

.site-nav a.is-active {
    color: var(--ink);
}

.site-nav a.is-active:not(.nav-button)::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-400);
}

.site-nav a.nav-button {
    margin-left: 8px;
    padding: 10px 20px;
    background: var(--navy-900);
    color: #fff;
}

.site-nav a.nav-button:hover,
.site-nav a.nav-button.is-active {
    background: var(--blue-600);
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 12px 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.menu-open .menu-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero (dark band at the top of every page) ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 9vw, 112px);
    color: #c9d6ea;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(47, 116, 200, 0.45), transparent 60%),
        radial-gradient(700px 420px at 5% 110%, rgba(56, 189, 201, 0.18), transparent 60%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
    isolation: isolate;
}

.hero::before {
    /* fine grid pattern */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.hero h1 {
    max-width: 16ch;
    color: #fff;
}

.hero .lead {
    max-width: 60ch;
    color: #c9d6ea;
}

.hero a:not(.btn) {
    color: #fff;
}

.hero-home {
    padding-top: clamp(80px, 11vw, 140px);
    padding-bottom: clamp(80px, 11vw, 140px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 48px;
}

.hero-art {
    position: relative;
    justify-self: end;
    width: min(100%, 440px);
    aspect-ratio: 1;
}

.hero-art img {
    width: 100%;
    height: 100%;
    animation: slow-spin 120s linear infinite;
}

.hero-art::after {
    content: '';
    position: absolute;
    inset: 22%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 180, 240, 0.35), transparent 70%);
    filter: blur(20px);
}

@keyframes slow-spin {
    to {
        transform: rotate(360deg);
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--blue-600);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-400);
}

.hero .eyebrow {
    color: var(--gold-400);
}

.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-facts .icon {
    color: var(--teal-400);
}

/* Smaller hero for inner pages */
.hero-page h1 {
    max-width: 22ch;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.breadcrumb {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #8fa3c2;
}

.breadcrumb a {
    color: #c9d6ea;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
}

/* ---------- Sections ---------- */

.section {
    padding: var(--section) 0;
}

.section-alt {
    background: var(--surface-alt);
}

.section-dark {
    background: var(--navy-900);
    color: #c9d6ea;
}

.section-dark h2,
.section-dark h3,
.section-dark strong {
    color: #fff;
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head.center .eyebrow {
    justify-content: center;
}

.section-head p {
    font-size: 1.1rem;
}

/* Text column with readable width */
.prose {
    max-width: 72ch;
}

.prose h2 {
    margin-top: 1.6em;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.prose h2:first-child {
    margin-top: 0;
}

/* Two columns: heading left (sticky), text right */
.split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.split > :first-child {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.split-text p {
    font-size: 1.06rem;
}

.split-text p:first-child {
    font-size: 1.22rem;
    color: var(--ink);
}

/* Big pull quote / statement */
.statement {
    margin: 0;
    padding: 0 0 0 28px;
    border-left: 3px solid var(--gold-400);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.4;
    color: var(--ink);
}

/* ---------- Grids & cards ---------- */

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card h3 {
    margin: 4px 0 0;
}

.card p {
    margin: 0;
}

a.card,
.card-hover {
    color: inherit;
    text-decoration: none;
}

a.card:hover,
.card-hover:hover {
    transform: translateY(-4px);
    border-color: #cfdcef;
    box-shadow: var(--shadow);
}

.card .text-link {
    margin-top: auto;
    padding-top: 8px;
}

.card-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.card-feature {
    border-color: transparent;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    color: #c9d6ea;
}

.card-feature h3,
.card-feature strong {
    color: #fff;
}

.card-feature .icon-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-400);
}

.card-feature .card-tag {
    background: rgba(244, 192, 78, 0.16);
    color: var(--gold-400);
}

/* Check list */
.checklist {
    display: grid;
    gap: 10px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 30px;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-100) url('../icons/check.svg') center / 13px no-repeat;
}

.card-feature .checklist li::before {
    background-color: var(--gold-400);
}

/* ---------- Stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.stat {
    padding: 28px 26px;
    background: var(--surface);
}

.stat-value {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
}

.stat-value small {
    font-size: 0.5em;
    font-weight: 500;
    color: var(--muted);
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
}

.section-dark .stats {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.section-dark .stat {
    background: var(--navy-900);
}

.section-dark .stat-value {
    color: #fff;
}

.section-dark .stat-label {
    color: #9fb2cf;
}

/* ---------- Steps (numbered process) ---------- */

.steps {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps > li {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 36px;
    counter-increment: step;
}

.steps > li:last-child {
    padding-bottom: 0;
}

.steps > li::before {
    content: counter(step, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #cfdcef;
    background: var(--surface);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--blue-600);
    box-shadow: var(--shadow-sm);
}

.steps > li::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 60px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(var(--line), var(--line)) center / 2px 100% no-repeat;
}

.steps > li:last-child::after {
    display: none;
}

.steps h3 {
    margin: 12px 0 6px;
    font-size: 1.25rem;
}

.steps p {
    margin: 0;
}

/* Horizontal steps on wide screens */
.steps-row {
    grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
    gap: 28px;
}

.steps-row > li {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 0;
}

.steps-row > li::after {
    left: 64px;
    right: -20px;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 2px;
}

.steps-row h3 {
    margin-top: 4px;
}

/* ---------- Profile ---------- */

.profile {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.profile-card {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    padding: 32px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    color: #c9d6ea;
    box-shadow: var(--shadow-lg);
}

.profile-card img {
    display: block;
    width: 112px;
    height: 143px;
    margin-bottom: 22px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.profile-card h3 {
    margin-bottom: 4px;
    color: #fff;
}

.profile-card p {
    font-size: 0.95rem;
}

.profile-card .checklist {
    margin-top: 20px;
    font-size: 0.95rem;
}

.profile-card .checklist li::before {
    background-color: var(--gold-400);
}

/* ---------- Notice (highlighted announcement) ---------- */

.notice {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
    border: 1px solid #f1dca6;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #fffaf0, #fff4dc);
    color: var(--ink);
}

.notice .icon-badge {
    background: var(--gold-400);
    color: var(--navy-950);
}

.notice p {
    margin: 0;
}

.notice-strip {
    position: relative;
    z-index: 2;
    margin-top: -44px;
}

.notice-strip .notice {
    box-shadow: var(--shadow);
}

/* Old class kept for compatibility: a highlighted paragraph */
.highlight {
    padding: 18px 22px;
    border-left: 3px solid var(--gold-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #fff8e6;
    color: var(--ink);
}

.stats + .prose {
    margin-top: 32px;
}

/* ---------- Call to action band (built from settings.js) ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 88px) 0;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(108, 180, 240, 0.35), transparent 60%),
        linear-gradient(120deg, var(--blue-600), var(--navy-800));
    color: #dbe7f7;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-band h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.cta-band p {
    max-width: 58ch;
    font-size: 1.08rem;
}

.cta-band .btn {
    flex: none;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy-950);
    color: #9fb2cf;
    font-size: 0.96rem;
}

.footer-main {
    padding: clamp(56px, 7vw, 80px) 0 48px;
}

.footer-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

/* The logo has dark text, so in the dark footer it sits on a white plate. */
.footer-brand .brand {
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 14px;
    background: #fff;
}

.footer-brand .brand-logo {
    height: 84px;
}

.footer-brand p {
    max-width: 38ch;
}

.footer-partner {
    margin-top: 14px;
    font-size: 0.9rem;
}

.footer-title {
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.footer-name {
    margin-bottom: 8px;
    color: #fff;
}

.footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact .icon {
    color: var(--teal-400);
}

/* :not(.btn) so the call-to-action button keeps its own colours */
.site-footer a:not(.btn) {
    color: #c9d6ea;
    text-decoration: none;
    overflow-wrap: break-word;
}

.site-footer a:not(.btn):hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bar {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
}

.footer-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}

.footer-bar p {
    margin: 0;
}

.to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.to-top::after {
    content: '↑';
}

/* ---------- Contact page ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 10px;
}

.contact-photo {
    width: 88px;
    height: 112px;
    border-radius: 12px;
    object-fit: cover;
}

.contact-card .eyebrow {
    margin-bottom: 8px;
}

.contact-card h2 {
    margin-bottom: 4px;
    font-size: 1.7rem;
}

.contact-card .muted {
    font-size: 0.95rem;
}

.contact-actions {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-action:hover {
    border-color: #cfdcef;
    background: var(--surface-alt);
    color: var(--ink);
    transform: translateY(-2px);
}

.contact-action .icon-badge {
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.contact-action__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-action__value {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-address {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--ink);
}

.contact-register {
    margin-top: 6px;
    font-size: 0.9rem;
}

.map {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    filter: saturate(0.75);
}

/* ---------- Fade-in on scroll (only when JavaScript runs) ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s !important; }
.reveal-delay-2 { transition-delay: 0.16s !important; }
.reveal-delay-3 { transition-delay: 0.24s !important; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .footer-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .grid-4,
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }

    .steps-row > li::after {
        display: none;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .site-header .brand-logo {
        display: none;
    }

    .site-header .brand-logo-small {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 12px var(--gutter) 24px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 20px 30px -20px rgba(15, 29, 51, 0.35);
    }

    .menu-open .site-nav {
        display: block;
        animation: menu-in 0.25s var(--ease);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .site-nav a {
        padding: 13px 16px;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .site-nav a.is-active:not(.nav-button) {
        background: var(--surface-alt);
    }

    .site-nav a.is-active:not(.nav-button)::after {
        left: 0;
        right: auto;
        top: 12px;
        bottom: 12px;
        width: 3px;
        height: auto;
    }

    .site-nav a.nav-button {
        margin: 10px 0 0;
        text-align: center;
    }

    .hero-grid,
    .split,
    .profile,
    .contact-grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-art {
        display: none;
    }

    .split > :first-child,
    .profile-card {
        position: static;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

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

    .grid-4,
    .stats,
    .steps-row,
    .footer-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .notice {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-person {
        align-items: flex-start;
    }

    .map iframe {
        height: 320px;
    }
}

/* ---------- Print ---------- */

@media print {
    .site-header,
    .menu-toggle,
    .cta-band,
    .map,
    .to-top,
    .hero-art,
    .skip-link {
        display: none !important;
    }

    body {
        color: #000;
        font-size: 11pt;
    }

    .hero,
    .section-dark,
    .card-feature,
    .profile-card,
    .site-footer {
        background: none !important;
        color: #000 !important;
    }

    .hero h1,
    .hero .lead,
    .card-feature h3,
    .profile-card h3 {
        color: #000 !important;
    }

    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    a {
        color: #000;
    }
}
