/* =========================================================
   Pearl Editing - main stylesheet
   All colours, spacing and type sizes are defined in :root.
   ========================================================= */

:root {
    /* Colours */
    --navy: #12263F;          /* header, headings, dark bands */
    --navy-soft: #1B3350;
    --gold: #C8A96A;          /* accents, gold buttons */
    --gold-light: #E4CF9F;
    --blue: #2F6DB5;          /* links, primary buttons */
    --blue-dark: #1F4F8A;     /* hover states */
    --bg: #FAF8F4;            /* page background (pearl off-white) */
    --alt: #EEF2F7;           /* alternate section background */
    --white: #FFFFFF;
    --text: #1E2A38;
    --muted: #4A5668;
    --line: #D5DCE6;
    --input-border: #8A96A8;
    --error: #B42318;
    --success-bg: #E7F4EC;
    --success-text: #1E5C34;

    /* Typography */
    --font-head: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --fs-base: 1.0625rem;
    --fs-small: 0.92rem;
    --lh: 1.65;

    /* Spacing and shape */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: clamp(3rem, 6vw, 5rem);
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 12px rgba(18, 38, 63, 0.08);
    --max: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh);
    color: var(--text);
    background: var(--bg);
}

img, svg { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0 0 var(--space-2); padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 2px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.admin-header :focus-visible,
.cookie-banner :focus-visible { outline-color: var(--gold-light); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    z-index: 999;
    background: var(--white);
    color: var(--navy);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.skip-link:focus { left: 1rem; }

[hidden] { display: none !important; }

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--gold-light); }
.section-head { max-width: 720px; margin-bottom: var(--space-4); }
.section-head p.lead { color: var(--muted); font-size: 1.1rem; }
.section-dark .lead, .section-dark p { color: #E6ECF4; }
.text-center { text-align: center; }
.text-center .section-head { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.2rem;
    margin-bottom: var(--space-2);
}

.grid { display: grid; gap: var(--space-3); }
.grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

.split { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.split img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D8BC85; color: var(--navy); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn-block { width: 100%; }

/* ---------- Header and navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(18, 38, 63, 0.1); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    transition: padding 0.3s ease;
}
.site-header.is-scrolled .header-inner { padding: 0.45rem 0; }
.brand img { height: 44px; width: auto; transition: height 0.3s ease; }
.site-header.is-scrolled .brand img { height: 38px; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.nav-toggle-icon {
    width: 20px;
    height: 14px;
    background:
        linear-gradient(var(--navy), var(--navy)) top / 100% 2px no-repeat,
        linear-gradient(var(--navy), var(--navy)) center / 100% 2px no-repeat,
        linear-gradient(var(--navy), var(--navy)) bottom / 100% 2px no-repeat;
}

.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem 1rem;
}
.primary-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; border-bottom: 1px solid var(--line); }
.nav-item:last-child { border-bottom: 0; }
.nav-link,
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.85rem 0;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.nav-link:hover, .dropdown-toggle:hover { color: var(--blue); }
.nav-link[aria-current="page"] { color: var(--blue); }
.caret {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}
.is-open > .dropdown-toggle .caret { transform: rotate(-135deg); }

.dropdown {
    display: none;
    padding: 0 0 0.75rem 0.9rem;
    border-left: 3px solid var(--gold);
    margin-bottom: 0.5rem;
}
.dropdown-grid { display: grid; gap: 1rem; }
.dropdown-title { font-weight: 700; color: var(--navy); margin: 0.4rem 0 0.2rem; font-size: 0.95rem; }
.dropdown ul { list-style: none; padding: 0; margin: 0; }
.dropdown li + li { margin-top: 0; }
.dropdown a { display: block; padding: 0.35rem 0; color: var(--text); text-decoration: none; }
.dropdown a:hover { color: var(--blue); text-decoration: underline; }
.has-dropdown.is-open .dropdown { display: block; }

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .primary-nav {
        position: static;
        display: block;
        max-height: none;
        overflow: visible;
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
    }
    .nav-list { display: flex; align-items: center; gap: 0.25rem; }
    .nav-item { border-bottom: 0; }
    .nav-link, .dropdown-toggle { width: auto; padding: 0.55rem 0.75rem; }
    .nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
    .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: -0.5rem;
        width: min(760px, 92vw);
        padding: 1.25rem 1.5rem;
        background: var(--white);
        border: 1px solid var(--line);
        border-top: 3px solid var(--gold);
        border-left: 1px solid var(--line);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow);
        margin: 0;
    }
    .dropdown-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .nav-item.has-dropdown:hover .dropdown,
    .nav-item.has-dropdown:focus-within .dropdown,
    .nav-item.has-dropdown.is-open .dropdown { display: block; }
}

/* ---------- Notices and forms ---------- */
.notice {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin: 0 0 var(--space-3);
    font-weight: 600;
}
.notice-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #A9D9B8; }
.notice-error { background: #FDECEA; color: var(--error); border: 1px solid #F3B7B1; }
.notice-info { background: var(--alt); color: var(--navy); border: 1px solid var(--line); }

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 700px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .span-2 { grid-column: 1 / -1; }
}

.field { margin-bottom: 1.25rem; }
.field label,
.field .label {
    display: block;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="number"],
.field input[type="file"],
.field select,
.field textarea {
    display: block;
    width: 100%;
    padding: 0.8rem 0.9rem;
    font: inherit;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
}
.field input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.8rem 0.9rem;
    font: inherit;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
}
.field input[type="file"] { padding: 0.6rem; background: var(--bg); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 3px solid var(--blue);
    outline-offset: 0;
    border-color: var(--blue);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-weight: 700; font-size: var(--fs-small); margin: 0.35rem 0 0; }
.hint { color: var(--muted); font-size: var(--fs-small); margin: 0.35rem 0 0; }

.check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-weight: 400;
}
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--blue); }
.check label { font-weight: 400; color: var(--text); margin: 0; }

.form-note { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(18, 38, 63, 0.94) 0%, rgba(18, 38, 63, 0.84) 55%, rgba(18, 38, 63, 0.55) 100%);
}
.hero-inner { padding: 4rem 0 4.5rem; max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 0.75rem; }
.hero .subhead {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: #E6ECF4;
    font-weight: 400;
    margin-bottom: 1.75rem;
}
.hero .eyebrow { color: var(--gold-light); border-color: var(--gold); }

.page-hero {
    background: var(--alt);
    border-bottom: 1px solid var(--line);
    padding: 2.5rem 0 2.25rem;
}
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin-bottom: 0; }

.breadcrumb { font-size: var(--fs-small); margin-bottom: 1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 0.5rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; gap: 1.25rem; padding: 1.75rem 0; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; gap: 1rem; align-items: center; }
.trust-value {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    min-width: 4.2rem;
}
.trust-label { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(18, 38, 63, 0.05);
    display: flex;
    flex-direction: column;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card-media { margin: -1.5rem -1.5rem 1.25rem; }
.card-media img { width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 800 / 560; object-fit: cover; }
.card .more { margin-top: auto; padding-top: 0.75rem; font-weight: 700; }
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--alt);
    color: var(--navy);
    margin-bottom: 1rem;
    border: 2px solid var(--gold);
}
.card-value { text-align: center; }
.card-value h3 { color: var(--navy); }
.card-value .card-icon { margin: 0 auto 1rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }

.task-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.task-list li { position: relative; padding-left: 1.5rem; margin-top: 0.5rem; }
.task-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.9rem;
    height: 2px;
    background: var(--gold);
}

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.75rem; margin-top: 0.5rem; }
.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--blue-dark);
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { position: relative; padding-left: 3.5rem; margin: 0; }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
}
.steps h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }
.section-dark .steps p { color: #E6ECF4; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table th, .table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.table tbody tr:nth-child(even) { background: var(--bg); }
.table tbody tr:last-child td { border-bottom: 0; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-list details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details[open] summary { margin-bottom: 0.6rem; }
.faq-list details p:last-child { margin-bottom: 0; }

/* ---------- Blog ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-card .post-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card img { width: 100%; height: auto; aspect-ratio: 800 / 500; object-fit: cover; }
.post-meta { font-size: var(--fs-small); color: var(--muted); margin-bottom: 0.4rem; }
.post-card .more { margin-top: auto; font-weight: 700; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 2rem; font-size: 1.6rem; }
.article h3 { margin-top: 1.5rem; }
.article ul { margin-bottom: 1.25rem; }
.article-cover { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; height: auto; }
.takeaways { background: var(--alt); border-left: 4px solid var(--gold); padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); margin: 2rem 0; }

/* ---------- Contact and address blocks ---------- */
.contact-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-block address { font-style: normal; }
.contact-block dt { font-weight: 700; color: var(--navy); margin-top: 0.75rem; }
.contact-block dd { margin: 0; }

.image-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.image-frame img { width: 100%; height: auto; }

/* ---------- Cards for "Related services" ---------- */
.related-card h3 a { color: var(--navy); text-decoration: none; }
.related-card h3 a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--alt);
    border-top: 1px solid var(--line);
    padding-top: 3rem;
    color: var(--text);
    font-size: 0.97rem;
}
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } }
.footer-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.footer-text { color: var(--muted); }
.footer-address { font-style: normal; margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 0.45rem; }
.footer-links a, .footer-col a { color: var(--blue-dark); text-decoration: none; }
.footer-links a:hover, .footer-col a:hover { text-decoration: underline; }
.social-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.social-list li + li { margin-top: 0; }
.newsletter-form .field { margin-bottom: 0.75rem; }
.newsletter-form .field input { display: block; width: 100%; padding: 0.75rem; border: 1px solid var(--input-border); border-radius: var(--radius-sm); font: inherit; background: var(--white); }
.newsletter-form .field label { font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; display: block; }
.newsletter .notice { font-size: var(--fs-small); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1rem 0; font-size: var(--fs-small); color: var(--muted); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer-bottom a { color: var(--blue-dark); }

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 150;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--navy);
    background: var(--white);
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.back-to-top:hover { background: var(--navy); color: #fff; }

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    max-width: 880px;
    margin: 0 auto;
    background: var(--navy);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-size: var(--fs-small);
}
.cookie-banner p { margin: 0; flex: 1 1 360px; }
.cookie-banner a { color: var(--gold-light); }
.cookie-banner .btn-primary { background: var(--gold); color: var(--navy); }
.cookie-banner .btn-primary:hover { background: #D8BC85; color: var(--navy); }

/* ---------- Motion (fade in on scroll) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities and page blocks ---------- */
.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;
}
.container.narrow { max-width: 820px; }
.h3-size { font-size: 1.2rem; }
.mb-0 { margin-bottom: 0; }
blockquote { margin: 0; }
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    text-align: center;
}
.cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(18, 38, 63, 0.9), rgba(18, 38, 63, 0.97));
}
.cta-band h2 { color: #fff; }
.cta-text { color: #E6ECF4; max-width: 640px; margin: 0 auto 1.5rem; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }
.form-actions { margin-top: 1.5rem; }
.form-section-title { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; }
.legal-notice { border-left: 4px solid var(--gold); }

/* ---------- Admin area ---------- */
.admin-body { background: #F3F5F9; color: var(--text); }
.admin-header { background: var(--navy); color: #fff; }
.admin-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 0; }
.admin-brand { color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; list-style: none; margin: 0; padding: 0; }
.admin-nav li + li { margin-top: 0; }
.admin-nav a { color: #fff; text-decoration: none; font-size: 0.95rem; }
.admin-nav a:hover { color: var(--gold-light); text-decoration: underline; }
.admin-main { padding: 2rem 1rem 3rem; }
.admin-main h1 { font-size: 1.8rem; }
.admin-main .page-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.admin-main .card { padding: 1.25rem; }
.admin-main .table { min-width: 0; }
.admin-main .table th, .admin-main .table td { padding: 0.65rem 0.75rem; font-size: 0.95rem; }
.admin-main .table thead th { background: var(--alt); color: var(--navy); }
.admin-main .table tbody tr:nth-child(even) { background: var(--white); }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat-card .stat-num { font-family: var(--font-head); font-size: 2rem; color: var(--navy); font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { color: var(--muted); font-size: var(--fs-small); }
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--alt); color: var(--navy); border: 1px solid var(--line); }
.badge-new { background: #FFF4D6; border-color: #E3C878; color: #5C4300; }
.badge-unread { background: #FDECEA; border-color: #F3B7B1; color: var(--error); }
.admin-main .field input[type="checkbox"] { width: 1.1rem; height: 1.1rem; }
.admin-form .row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin: 0 0 1.25rem; background: var(--white); }
.admin-form legend { font-weight: 700; color: var(--navy); padding: 0 0.4rem; }
.admin-main .field textarea { min-height: 110px; }
.admin-main .field input[type="text"], .admin-main .field input[type="email"], .admin-main .field input[type="date"], .admin-main .field input[type="number"], .admin-main .field select { background: var(--white); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-bottom: 1rem; }
.filter-bar .field { margin: 0; min-width: 160px; }
.detail-list { display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 700px) { .detail-list { grid-template-columns: 180px 1fr; } }
.detail-list dt { font-weight: 700; color: var(--navy); }
.detail-list dd { margin: 0; word-break: break-word; }
.message-body { white-space: pre-wrap; background: var(--bg); padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.login-wrap { max-width: 420px; margin: 3rem auto; }
.small-muted { font-size: var(--fs-small); color: var(--muted); }
.table-actions { white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.btn-danger { background: #FDECEA; color: var(--error); border-color: #F3B7B1; }
.btn-danger:hover { background: var(--error); color: #fff; }
