/* ==========================================================================
   Dutch Law Institute - Combined Stylesheet
   Base styles + 2026 Redesign
   ==========================================================================

   ARCHITECTURE
   - Approach:        Component sections, mobile-first overrides at 768px/960px
   - Naming:          Semantic + BEM-light (.component, .component-element)
   - Units:           px for borders/fixed UI, rem/em for type where inherited
   - Property order:  positioning → box-model → typography → visual → misc
   - !important:      ONLY for third-party overrides (Pagefind), print, and
                      prefers-reduced-motion. Never for internal cascade fixes.
   - Design tokens:   All repeated values as CSS custom properties in :root

   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-brand:       #154273;
    --color-brand-light: #C7DCF5;
    --color-accent:      #d14011;
    --color-accent-dark: #a8320d;
    --color-text:        #000;
    --color-text-soft:   #424242;
    --color-text-muted:  #595959;
    --color-text-body:   #555;
    --color-heading:     #1f2937;
    --color-heading-alt: #333;
    --color-bg:          #fff;
    --color-bg-light:    #fafafa;
    --color-bg-muted:    #f0f0f0;
    --color-bg-card:     #fafafa;
    --color-border:      #e0e0e0;
    --color-border-light:#e8e8e8;
    --color-border-mid:  #ccc;
    --color-icon:        #999;
    --color-icon-dark:   #555;

    /* Typography */
    --font-heading:      'Oswald', sans-serif;
    --font-body:         'Arial', sans-serif;
    --font-icons:        'DutchLawIcons';
    --line-height-body:  1.8;
    --line-height-heading: 1.3;

    /* Spacing */
    --container-max:     1200px;
    --container-padding: 15px;
    --section-padding-top: 75px;
    --section-padding-bottom: 45px;
    --nav-height:        70px;

    /* Transitions */
    --ease-out-expo:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-standard:     cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast:     300ms;
    --duration-base:     350ms;
    --duration-slow:     500ms;

    /* Shadows */
    --shadow-sm:         0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md:         0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg:         0 4px 16px rgba(0, 0, 0, 0.16);
    --shadow-card:       0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-brand:      0 0 8px rgba(21, 66, 115, 0.15);

    /* Radii */
    --radius-sm:         4px;
    --radius-md:         6px;
    --radius-lg:         8px;
    --radius-full:       50%;
}

/* ==========================================================================
   PART 1: Base styles (formerly 20240807-024-dd.css)
   ========================================================================== */

/* Font faces */
@font-face {
    font-display: optional;
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/oswald/v35/TK3iWkUHHAIjg752GT8G.woff2) format("woff2"),
         url(https://fonts.gstatic.com/s/oswald/v35/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUZiYySShiA.woff) format("woff");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-display: optional;
    font-family: 'DutchLawIcons';
    src: url("../fonts/dutchlawicons.eot") format("embedded-opentype"), url("../fonts/dutchlawicons.woff2") format("woff2"), url("../fonts/dutchlawicons.woff") format("woff"), url("../fonts/dutchlawicons.ttf") format("truetype"), url("../fonts/dutchlawicons.svg#dutchlawicons") format("svg");
    font-weight: normal;
    font-style: normal;
}

/* Icon fonts */
[class^="icon-"]:before, [class*=" icon-"]:before {
    font-family: "DutchLawIcons";
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: 0.2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    margin-left: 0.2em;
}
[class*=" pe-so-"], [class^="pe-so-"] {
    display: inline-block;
    font-family: "DutchLawIcons";
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
}
.fa {
    display: inline-block;
    font: normal normal normal 14px/1 'DutchLawIcons';
    font-size: inherit;
    text-rendering: auto;
}
.navbar-nav .sub-arrow {
    position: static;
    display: inline-block;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px dashed transparent;
    border-bottom: 4px dashed transparent;
    border-left: 4px dashed transparent;
}
.list-group-item:before {
    content: "\e804";
    display: inline-block;
    font-size: 80%;
    font-family: 'DutchLawIcons';
    left: -10px;
    top: -1px;
    position: relative;
}
.fa-user:before { content: '\e803'; }
.fa-calendar:before { content: "\e802"; }
.icon-address-book:before { color: var(--color-brand); content: "\f2b9"; }
.icon-envelope7:before { color: var(--color-brand); content: "\e800"; }
.pe-so-linkedin:before { content: "\f0e1"; }
.pe-so-twitter:before { content: "\f099"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-globe:before { content: "\e801"; }

/* Global resets and base */
#pageloader { display: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: var(--line-height-body);
    font-style: normal;
    font-size: 14px;
    margin: 0;
}
* {
    box-sizing: border-box;
    border-color: var(--color-bg-muted);
    border-width: 0;
    border-style: solid;
}
img {
    max-width: 100%;
    height: auto;
}
.title { font-family: var(--font-heading); }
p { font-weight: 400; }

/* Headings: group rule first, then individual overrides */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: var(--line-height-heading);
    margin: 0 0 22px;
    font-family: var(--font-heading);
    color: inherit;
}
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 28px; text-transform: capitalize; }
h4 { font-size: 24px; line-height: 1.7; text-transform: capitalize; }
h5 { font-size: 24px; line-height: 1.7; text-transform: capitalize; }
h6 { font-size: 16px; line-height: 28px; text-transform: capitalize; }
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
    font-size: 65%;
    color: var(--color-text-soft);
}

/* Tables */
table.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.custom-table th, .custom-table td {
    padding: 8px;
    border: 1px dashed #cccccc;
    text-align: left;
}
.custom-table th {
    background-color: #e0e0e0;
    text-align: center;
    font-weight: bold;
    color: #333333;
}
.custom-table tbody tr:nth-child(odd) { background-color: #ffffff; }
.custom-table tbody tr:nth-child(even) { background-color: #f0f0f0; }
.custom-table tbody tr:hover { background-color: #e8e8e8; }

/* Blockquote, hr, links, lists */
blockquote .small, blockquote footer, blockquote small {
    display: block;
    font-size: 80%;
    line-height: 1.42857143;
    color: #1a1a1a;
}
hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #ccc;
    border-bottom: 0 none;
}
a, button {
    color: inherit;
    transition: color var(--duration-base) ease-in-out, background-color var(--duration-base) ease-in-out, border-color var(--duration-base) ease-in-out, box-shadow var(--duration-base) ease-in-out, opacity var(--duration-base) ease-in-out;
    text-decoration: none;
}
a:hover { color: #000; }
ul { padding: 0; list-style: none; }
blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #757575;
}

/* Page section lists */
section.page-section .pull-right ul {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}
.page-section .pull-right ul li {
    padding-left: 20px;
    position: relative;
}
.page-section .pull-right ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 6px;
    height: 6px;
    background-color: #ccc;
    border-radius: 50%;
    margin-top: -3px;
}

/* Read more links */
.read-more {
    display: block;
    text-align: right;
    color: #595959;
    text-decoration: underline dotted gray;
    font-style: italic;
    font-size: inherit;
    margin-top: -8px;
    margin-bottom: 23px;
}
.read-more:hover {
    color: black;
    text-decoration: underline solid black;
}
#body-content .body-content-hyperlink {
    display: inline;
    color: #595959;
    text-decoration: underline dotted gray;
    font-style: inherit;
    font-size: inherit;
    margin-top: 0;
    margin-bottom: 0;
}

/* Background and layout */
.bg-color { background-color: var(--color-brand); }
.page-header h1 {
    margin: 0;
    font-size: 40px;
    text-transform: capitalize;
}
.container {
    max-width: var(--container-max);
    width: 100%;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
    margin-right: auto;
    margin-left: auto;
}
.row:after {
    content: "";
    display: table;
    clear: both;
}
.col-sm-6 {
    flex-basis: 0;
    flex-grow: 1;
    padding: 0 15px;
}
.col-sm-12 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

/* Top bar */
#top-bar {
    height: 45px;
    margin: 0;
    padding: 0 10px;
    display: flex;
    text-align: left;
    align-items: center;
    background-color: var(--color-brand);
}
#top-bar a { color: var(--color-bg); }
#top-bar a:hover { color: var(--color-brand-light); }
#top-bar a > .fa-envelope { margin: 0 5px 0 0; }

/* ==========================================================================
   Sticky navigation – Nav Redesign (Variant A: Minimal Premium)
   ========================================================================== */
#sticker {
    top: 0;
    left: 0;
    position: sticky;
    z-index: 10;
    background-color: var(--color-bg-muted);
}
.sticky-menu {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border-mid);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    transition: background-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
#sticker.scrolled .sticky-menu {
    background-color: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}
@media only screen and (max-width: 768px) {
    #sticker { z-index: 1002; }
}
#sticker a:hover { color: var(--color-brand); }

/* ---- Logo ---- */
#sticker .logo-li {
    display: inline-block;
    margin-right: auto;
}
/* High enough specificity: #sticker .logo-li > a (0,1,1,1) vs navbar-nav > li > a (0,0,2,1) */
#sticker .logo-li > a {
    padding: 0;
}
@media screen and (max-width: 768px) {
    #sticker .logo-li { display: none; }
}
#sticker .nav-logo {
    display: block;
    max-height: 70px;
    width: auto;
    padding: 0.6em 0;
}
@media screen and (max-width: 768px) {
    #sticker .navbar-header .nav-logo {
        display: block;
        float: left;
        position: relative;
    }
}

/* ---- Mobile header (logo + hamburger) ---- */
#sticker .navbar .navbar-header {
    display: none;
    height: 70px;
    background-color: transparent;
}
@media only screen and (max-width: 768px) {
    #sticker .navbar .navbar-header { display: block; }
}

/* ---- Hamburger button ---- */
#sticker .navbar .navbar-header .navbar-toggle {
    float: right;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    background: 0 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    padding: 8px;
}
#sticker .navbar .navbar-header .navbar-toggle:focus { outline: none; }
#sticker .navbar .navbar-header .navbar-toggle:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    border-radius: 2px;
}
#sticker .navbar .navbar-header .navbar-toggle .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    border: 0;
}

/* Icon bars + hamburger-to-X animation */
#sticker .navbar .navbar-header .navbar-toggle .icon-bar {
    background-color: var(--color-brand);
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    margin-top: 4px;
    transition: transform var(--duration-fast) var(--ease-out-expo),
                opacity var(--duration-fast) var(--ease-out-expo);
}
.navbar-toggle.active .icon-bar:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
}
.navbar-toggle.active .icon-bar:nth-child(3) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-toggle.active .icon-bar:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---- Navbar collapse (desktop: inline / mobile: right-side dropdown) ---- */
#sticker .navbar .navbar-collapse { width: 100%; }
@media only screen and (max-width: 768px) {
    #sticker .navbar .navbar-collapse {
        position: absolute;
        top: 70px;
        left: auto;
        right: -15px;
        width: 85%;
        max-width: 360px;
        max-height: 0;
        overflow: hidden;
        background: #fff;
        transition: max-height 0.3s ease-out;
        z-index: 1000;
        box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.1);
    }
    #sticker .navbar .navbar-collapse.collapse {
        max-height: 0;
    }
    #sticker .navbar .navbar-collapse.nav-open {
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---- Nav backdrop (mobile overlay) ---- */
.nav-backdrop {
    display: none;
}
@media only screen and (max-width: 768px) {
    .nav-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 400ms var(--ease-out-expo);
        z-index: 999;
    }
    .nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }
    body.nav-open {
        overflow: hidden;
    }
}

/* ---- Nav items (flexbox row) ---- */
#sticker .navbar .navbar-collapse .navbar-nav {
    background-color: transparent;
    margin: 0;
    min-height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}
@media only screen and (max-width: 960px) {
    #sticker .navbar .navbar-collapse .navbar-nav { justify-content: center; }
}

/* ---- Nav link styling (desktop) ---- */
#sticker .navbar .navbar-collapse .navbar-nav > li > a {
    padding: 15px clamp(8px, 1.2vw, 20px);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    display: block;
    line-height: 40px;
}

/* Short labels for medium screens */
.nav-short { display: none; }
@media only screen and (min-width: 769px) and (max-width: 1060px) {
    .nav-full { display: none; }
    .nav-short { display: inline; }
}

/* #7 Letter-spacing hover (desktop) */
@media only screen and (min-width: 769px) {
    #sticker .navbar .navbar-collapse .navbar-nav > li > a {
        transition: letter-spacing var(--duration-base) var(--ease-out-expo),
                    color var(--duration-base) var(--ease-out-expo);
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li > a:hover {
        letter-spacing: 0.05em;
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li.logo-li > a:hover {
        letter-spacing: 0.03em;
    }
}

/* Focus-visible on nav links */
#sticker .navbar .navbar-collapse .navbar-nav > li > a:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---- Mobile nav items ---- */
@media only screen and (max-width: 768px) {
    #sticker .navbar .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        min-height: auto;
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li {
        width: 100%;
        line-height: 44px;
        border-bottom: 1px solid #f0f0f0;
    }

    #sticker .navbar .navbar-collapse .navbar-nav > li:last-child {
        border-bottom: none;
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li.mega-menu > a {
        margin: 0;
        background-color: transparent;
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li.mega-menu > a::after {
        color: var(--color-brand);
        content: "\e805";
        font-family: var(--font-icons);
        font-size: 20px;
        position: absolute;
        right: 4px;
        transition: transform 750ms var(--ease-out-expo);
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li.mega-menu > a.contract-expanded::after {
        transform: rotate(90deg);
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li > a {
        display: inline-block;
        padding: 0 4px;
        width: 100%;
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li > a:hover {
        color: var(--color-brand);
    }
}

/* ---- Dropdown menu (desktop: fade+translate / mobile: accordion) ---- */
@media only screen and (min-width: 769px) {
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu {
        position: absolute;
        left: 0;
        width: 100%;
        top: 70px;
        display: block;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        /* Fast exit: disappear quickly when leaving a menu item */
        transition: opacity 120ms ease,
                    transform 0ms 120ms;
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li.mega-menu:hover .dropdown-menu,
    #sticker .navbar .navbar-collapse .navbar-nav > li .dropdown-menu:hover {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        /* Smooth enter */
        transition: opacity var(--duration-base) var(--ease-out-expo),
                    transform var(--duration-base) var(--ease-out-expo);
    }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row {
        margin: auto;
        background-color: #fff;
        display: flex;
        max-width: 1200px;
        border-top: none;
        padding: 20px 15px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
    }

    /* #3 Border-top grow from center */
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--color-brand);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 450ms var(--ease-out-expo) 100ms;
    }
    #sticker .navbar .navbar-collapse .navbar-nav > li.mega-menu:hover .dropdown-menu .row::before,
    #sticker .navbar .navbar-collapse .navbar-nav > li .dropdown-menu:hover .row::before {
        transform: scaleX(1);
    }

    /* #2 Column stagger: hidden state */
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row .col-sm-3 {
        flex: 1;
        padding: 0 15px;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 80ms ease, transform 80ms ease;
    }
    /* Column stagger delays (custom properties) */
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row .col-sm-3:nth-child(1) { --col-delay: 120ms; }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row .col-sm-3:nth-child(2) { --col-delay: 240ms; }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row .col-sm-3:nth-child(3) { --col-delay: 360ms; }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row .col-sm-3:nth-child(4) { --col-delay: 480ms; }

    /* #2 Column stagger: visible state */
    #sticker .navbar .navbar-collapse .navbar-nav > li.mega-menu:hover .dropdown-menu .row .col-sm-3,
    #sticker .navbar .navbar-collapse .navbar-nav > li .dropdown-menu:hover .row .col-sm-3 {
        opacity: 1;
        transform: translateY(0);
        transition: opacity var(--duration-slow) var(--ease-out-expo),
                    transform var(--duration-slow) var(--ease-out-expo);
        transition-delay: var(--col-delay);
    }

    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row .col-sm-3 .title {
        font-size: 15px;
        margin: 0 0 10px;
        text-transform: uppercase;
        font-weight: 500;
        letter-spacing: 0.04em;
        color: var(--color-brand);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        backface-visibility: hidden;
    }

    /* #1 Link stagger: hidden state */
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .page-links > div {
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 60ms ease, transform 60ms ease;
    }
    /* Link stagger delays */
    .page-links > div:nth-child(1) { --link-delay: 0ms; }
    .page-links > div:nth-child(2) { --link-delay: 30ms; }
    .page-links > div:nth-child(3) { --link-delay: 60ms; }
    .page-links > div:nth-child(4) { --link-delay: 90ms; }
    .page-links > div:nth-child(5) { --link-delay: 120ms; }
    .page-links > div:nth-child(6) { --link-delay: 150ms; }
    .page-links > div:nth-child(7) { --link-delay: 180ms; }
    .page-links > div:nth-child(8) { --link-delay: 210ms; }
    .page-links > div:nth-child(9) { --link-delay: 240ms; }

    /* #1 Link stagger: visible state (col-delay + link-delay) */
    #sticker .navbar .navbar-collapse .navbar-nav > li.mega-menu:hover .dropdown-menu .page-links > div,
    #sticker .navbar .navbar-collapse .navbar-nav > li .dropdown-menu:hover .page-links > div {
        opacity: 1;
        transform: translateY(0);
        transition: opacity var(--duration-fast) var(--ease-out-expo),
                    transform var(--duration-fast) var(--ease-out-expo);
        transition-delay: calc(var(--col-delay, 0ms) + var(--link-delay, 0ms));
    }
}
@media only screen and (max-width: 768px) {
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu {
        display: none;
        position: relative;
        line-height: 24px;
        padding: 4px 0 8px 12px;
    }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu.dropdown-menu-open {
        display: block;
    }
    /* -- Mobile submenu accordion: col-sm-3 as full-width blocks -- */
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row .col-sm-3 {
        display: block;
        width: 100%;
        padding: 0;
    }

    /* -- Title as clickable accordion header -- */
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .title {
        display: block;
        padding: 10px 4px;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        color: var(--color-brand);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .title::after {
        content: "\e805";
        font-family: var(--font-icons);
        font-size: 18px;
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        transition: transform 750ms var(--ease-out-expo);
    }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .title.submenu-open::after {
        transform: translateY(-50%) rotate(90deg);
    }

    /* -- Page-links: animated slide-down -- */
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .page-links {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 0 0 8px;
        transition: max-height 750ms var(--ease-out-expo),
                    opacity 600ms var(--ease-out-expo),
                    padding 750ms var(--ease-out-expo);
    }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .page-links.submenu-open {
        max-height: 280px;
        opacity: 1;
        padding: 4px 0 8px 8px;
    }
}

/* Dropdown link styling */
#sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .page-links a {
    padding: 5px 0;
    width: 100%;
    display: inline-block;
    transition: transform var(--duration-base) var(--ease-out-expo),
                color var(--duration-base) var(--ease-out-expo);
}
#sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .page-links a:hover {
    transform: translateX(5px);
    color: var(--color-brand);
}

/* ---- Mobile contact bar (bottom of hamburger menu) ---- */
.mobile-contact-bar { display: none; }
@media only screen and (max-width: 768px) {
    .mobile-contact-bar {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #e8e8e8;
        padding: 18px 20px 22px;
        margin-top: 8px;
    }
    .mobile-contact-bar a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        color: var(--color-text-soft);
        font-size: 14px;
        text-decoration: none;
        line-height: 1.4;
    }
    .mobile-contact-bar a:hover { color: var(--color-brand); }
    .mobile-contact-bar a i,
    .mobile-contact-bar a .mobile-contact-icon {
        width: 20px;
        text-align: center;
        font-size: 16px;
        color: #999;
        flex-shrink: 0;
    }
    .mobile-contact-bar a .mobile-contact-icon {
        height: 16px;
        stroke: #999;
    }
}

/* Main banner (legacy - overridden by hero on index page) */
div.mainBanner {
    position: relative;
    text-align: left;
    color: #fff;
    width: 100%;
}
div.mainBanner img {
    max-width: 100%;
    display: block;
}
div.mainBanner .mainBanner__textBlock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%,-50%);
    max-width: 650px;
    padding: 20px 40px;
    background-color: #86723c;
    color: #fff;
    font-size: 60px;
    font-family: Oswald, sans-serif;
    line-height: 80px;
}
@media only screen and (max-width: 1200px) {
    div.mainBanner .mainBanner__textBlock {
        position: relative;
        top: initial;
        left: initial;
        transform: translate(0%,0%);
        max-width: 1200px;
        padding: 20px 40px;
        background-color: #86723c;
        color: #fff;
        font-size: 34px;
        font-family: Oswald, sans-serif;
        line-height: 50px;
    }
}

/* Column layout */
@media only screen and (min-width: 768px) {
    .page-section .container .row .col-md-6 {
        width: 50%;
        float: left;
    }
}

/* Post previews and sidebar */
.post-preview-row { display: flex; }
@media only screen and (max-width: 768px) {
    .post-preview-row { flex-direction: column; }
}
.post-preview-container { flex: 75%; }
#sidebar { flex: 25%; }
.post-preview-container .row { display: flex; }
.post-preview {
    overflow: auto;
    max-width: 900px;
    margin: auto auto 4em auto;
    padding: 1em 2em 1em 0;
    border-bottom: 1px dashed #ccc;
}
.post-preview img { width: 100%; height: auto; }
.post-preview .title { margin-top: 0; line-height: 0.8; }
.recent-post { display: flex; margin-bottom: 2em; }
.recent-post .post-thumb { flex: 25%; margin-right: 1em; }
.recent-post img { border-radius: 6px; }
.recent-post .post-details { flex: 75%; }

/* Page header and breadcrumb */
.page-header {
    border-bottom: 1px solid var(--color-border-mid);
    padding: 30px 0;
    background-color: var(--color-bg-muted);
    margin: 0;
}
.page-header .container {
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
    margin-right: auto;
    margin-left: auto;
}
.page-header .breadcrumb {
    border-radius: 0;
    background: 0 0;
    color: var(--color-text-soft);
    font-size: 11px;
    line-height: 18px;
    margin: 0;
    padding: 11px 0;
    list-style: none;
}
.page-header .breadcrumb .active { color: var(--color-brand); }
.page-header .breadcrumb > li { display: inline-block; }
.page-header .breadcrumb > li + li:before {
    padding: 0 5px;
    color: var(--color-text-soft);
    content: "/\00a0";
}

/* Page section */
.page-section {
    padding: var(--section-padding-top) 0 var(--section-padding-bottom);
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.page-section .container { padding: 0 var(--container-padding); }
.page-section .container .pull-right { float: right; }

/* Sidebar menu */
#sidebar .widget {
    padding: 0 8px 0 12px;
    margin-bottom: 35px;
}
#sidebar .widget .widget-title {
    border-bottom: none;
    margin: 0 0 12px;
}
#sidebar .widget .widget-title .title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin: 0 0 4px;
}
#sidebar #MainMenu .widget-title {
    margin-top: 28px;
}
#sidebar #MainMenu a {
    padding: 6px 0;
    color: #4a4a4a;
    display: block;
    transition: color var(--duration-fast) var(--ease-out-expo);
}
#sidebar #MainMenu .list-group-item {
    display: block;
    font-size: 13px;
    position: relative;
}
#sidebar #MainMenu .list-group-item:before {
    color: var(--color-brand);
    font-size: 70%;
    opacity: 1;
    transition: opacity var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
}
#sidebar #MainMenu .collapse > a.list-group-item {
    font-weight: 500;
    color: #333;
    padding: 8px 0 7px;
    border-bottom: 1px solid #f0f0f0;
}
#sidebar #MainMenu .collapse > a.list-group-item:hover:before {
    opacity: 1;
    transform: rotate(90deg);
}
#sidebar #MainMenu .list-group-submenu a.list-group-item {
    transition: color var(--duration-fast) var(--ease-out-expo),
                padding-left var(--duration-fast) var(--ease-out-expo);
}
#sidebar #MainMenu .list-group-submenu a.list-group-item:hover {
    color: var(--color-brand);
    padding-left: 6px;
}
#sidebar #MainMenu .list-group-submenu a.list-group-item:hover:before {
    opacity: 1;
}
#sidebar #MainMenu .collapse > a.list-group-item .fa-caret-down {
    color: var(--color-brand);
    opacity: 0.7;
    font-size: 11px;
    transition: opacity var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
}
#sidebar #MainMenu .collapse > a.list-group-item:hover .fa-caret-down {
    opacity: 1;
    transform: rotate(90deg);
}
#sidebar #MainMenu .list-group-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1100ms var(--ease-out-expo);
    margin-left: 14px;
}
#sidebar #MainMenu .list-group-submenu-open { max-height: 20rem; }
#sidebar #MainMenu .list-group-submenu .list-group-item {
    font-size: 12.5px;
    padding: 4px 0;
    border-bottom: none;
}
#sidebar #MainMenu .list-group-submenu .list-group-item:before {
    font-size: 60%;
}

/* Author widget */
.author-widget {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
    padding: 24px 20px;
    margin-bottom: 10px;
    transition: background-color var(--duration-base) var(--ease-out-expo);
}
.author-widget:hover {
    background-color: #efefef;
}
.author-widget .title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin: 0 0 16px;
}
.author-widget hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 20px 0;
}
.author-widget img {
    width: 100px;
    clip-path: circle(50px at center);
    transition: transform var(--duration-slow) var(--ease-out-expo),
                filter var(--duration-slow) var(--ease-out-expo);
}
.author-widget a:hover img {
    transform: scale(1.06);
    filter: brightness(1.08);
}
.author-widget .icons {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
}
.author-widget .icons > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    color: var(--color-brand);
    border: 1px solid #d0d0d0;
    border-radius: var(--radius-full);
    transition: background-color var(--duration-base) var(--ease-out-expo),
                color var(--duration-base) var(--ease-out-expo),
                border-color var(--duration-base) var(--ease-out-expo),
                transform var(--duration-base) var(--ease-out-expo);
}
.author-widget .icons > a:hover {
    background-color: var(--color-brand);
    color: var(--color-bg);
    border-color: var(--color-brand);
    transform: translateY(-2px);
}

/* Post meta */
.post-meta {
    font-size: 11px;
    font-style: italic;
    color: var(--color-text-soft);
    background-color: var(--color-bg-card);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 52px 12px 16px;
    position: relative;
    margin-top: 24px;
    transition: background-color 0.35s ease;
}
.post-meta .fa { color: var(--color-brand); margin: 5px 5px 0 0; }
.post-meta span { font-size: 12px; margin-right: 8px; }
.post-content { margin-bottom: 15px; }

/* Responsive columns */
@media only screen and (max-width: 768px) {
    .page-section .row { flex-direction: column; }
}
@media only screen and (max-width: 960px) {
    #sidebar { clear: both; }
}
@media only screen and (min-width: 960px) {
    .col-md-9 { width: 75%; }
    .col-md-3 { width: 25%; }
    .col-sm-6 { float: left; }
}

/* Who we are section */
#who-we-are { padding: 0; background-color: #f0f0f0; }
#who-we-are .pad-60 { padding: 60px 0; }
#who-we-are .pad-60 > * { padding: 0 60px; }
#who-we-are .row { display: flex; flex-wrap: wrap; }
#who-we-are .row > div { flex-grow: 1; flex-basis: 496px; }

/* Entry/post titles */
.entry-title, .post-title {
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 17px;
}

/* Social icons */
.icons-border-black { margin-left: 15px; }
.icons-border-black a { display: block; float: left; margin-right: 5px; }
.icons-border-black a span {
    display: block;
    width: 30px;
    height: 30px;
    border: black solid 1px;
    text-align: center;
    line-height: 30px;
}
.icons-border-black a span:hover { background-color: var(--color-brand); color: var(--color-bg); }

/* Sitemap */
.sitemap li { position: relative; padding-left: 15px; }
.sitemap li a:hover { color: var(--color-brand); }
.sitemap li a::before {
    content: "\e804";
    display: inline-block;
    font-size: 0.7em;
    font-family: 'DutchLawIcons';
    left: -10px;
    top: -1px;
    position: relative;
}

/* Get quote bar */
#get-quote {
    padding: 30px 0;
    font-size: 34px;
    font-weight: 400;
    font-family: Oswald, sans-serif;
    color: #fff;
    text-align: center;
}
#get-quote a {
    color: var(--color-bg);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-out-expo);
}
#get-quote a:hover { color: var(--color-brand-light); }
#get-quote .cta-envelope {
    width: 38px;
    height: 38px;
    margin-left: 28px;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: var(--color-bg);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--duration-base) var(--ease-out-expo),
                stroke var(--duration-base) var(--ease-out-expo);
}
#get-quote a:hover .cta-envelope {
    transform: scale(1.15) translateY(-2px);
    stroke: var(--color-brand-light);
}
@media only screen and (max-width: 768px) {
    #get-quote { font-size: 22px; padding: 24px 0; }
    #get-quote .cta-envelope { margin-left: 10px; }
}

/* Footer */
#footer :focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
#footer .footer-blog > li {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}
#footer .footer-blog > li:nth-child(3) { border-bottom: none; }
#footer a {
    display: inline-block;
    transition: color var(--duration-base) ease, transform var(--duration-base) ease;
}
#footer a:hover {
    color: #000;
    transform: translateX(2px);
}
#footer .footer-widget {
    background: #f0f0f0;
    line-height: 21px;
    padding: 30px 0 13px;
    color: #4F4F4F;
    font-size: 13px;
}
#footer .footer-widget .row { display: flex; flex-wrap: wrap; }
#footer .footer-widget .row > div { flex-grow: 1; flex-basis: 25%; }
@media only screen and (max-width: 960px) {
    #footer .footer-widget .row > div { flex-basis: 50%; }
}
@media only screen and (max-width: 768px) {
    #footer .footer-widget .row > div { flex-basis: 100%; }
    #footer .footer-widget .row > div + div { margin-top: 24px; }
    #footer .footer-widget .widget .widget-title ~ .widget-title { margin-top: 24px; }
}
#footer .footer-widget .widget .widget-title {
    border-bottom: 1px solid #ccc;
    margin: 0 0 12px;
    position: relative;
}
#footer .footer-widget .widget .widget-title .title {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
    margin: 0 0 12px;
}
#footer .footer-widget address {
    margin-bottom: 20px;
    font-style: normal;
    line-height: 1.42857143;
}
#footer .footer-widget .form-group { width: 100%; position: relative; }
#footer .footer-widget .form-group .form-control {
    display: block;
    background: 0 0;
    border: var(--color-brand) solid 1px;
    border-radius: 3px;
    font-size: 12px;
    min-height: 40px;
    width: 100%;
    height: 40px;
    line-height: 22px;
    padding: 8px 12px;
    box-shadow: 0 1px 1px rgb(0, 0, 0, 0.075) inset;
    margin: 0;
}
#footer .footer-widget .form-group .form-control:focus {
    border-color: var(--color-brand);
    box-shadow: 0 1px 1px rgb(0, 0, 0, 0.075) inset, 0 0 6px #ce8483;
}
#footer .footer-widget .form-group .form-control-feedback {
    position: absolute;
    top: 0;
    right: 38px;
    z-index: 2;
    display: block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    pointer-events: none;
}
#footer .footer-widget .form-group .submit {
    color: #fff;
    height: 38px;
    outline: 0;
    padding: 0;
    position: absolute;
    right: 1px;
    top: 1px;
    width: 38px;
    border-radius: 0 3px 3px 0;
    border: 0;
}
#footer .footer-widget .form-group .submit.bg-color:hover { background-color: #000; }
#footer .copyright {
    background: #f0f0f0;
    color: var(--color-text-soft);
    border-top: 1px solid #ccc;
    font-size: 11px;
    line-height: 17px;
    padding: 21px 0 20px;
}
@media only screen and (max-width: 768px) {
    #footer .copyright { padding-right: 60px; }
}

/* Custom dropdown */
.custom-dropdown {
    background-color: var(--color-bg);
    border: 1px solid var(--color-brand);
    color: var(--color-brand);
    padding: 10px;
    font-family: Arial, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("https://dutch-law.com/img/dropdown.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    background-size: 30%;
}
.custom-dropdown:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    box-shadow: 0 0 5px rgba(21, 66, 115, 0.5);
}

/* ==========================================================================
   PART 2: 2026 Redesign additions and overrides
   ========================================================================== */

/* z-index for #sticker already defined in Part 1 (lines 276, 288) */

/* --------------------------------------------------------------------------
   Skip navigation (accessibility)
   -------------------------------------------------------------------------- */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--color-brand);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    transition: top 0.3s ease;
}
.skip-nav:focus { top: 0; }

/* --------------------------------------------------------------------------
   Scroll animations (Intersection Observer driven)
   -------------------------------------------------------------------------- */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }

/* Slower scroll animations on content pages */
#body-content .scroll-animate,
#sidebar .scroll-animate,
#get-quote.scroll-animate {
    transition-duration: 1.2s;
}

/* --------------------------------------------------------------------------
   Content margins for mobile/tablet
   -------------------------------------------------------------------------- */
/* #main-content (ID) already wins over .page-section .container — no !important needed */
@media (max-width: 960px) {
    #main-content .container { padding-right: 28px; padding-left: 28px; }
}
@media (max-width: 768px) {
    #main-content .container { padding-right: 24px; padding-left: 24px; }
}

/* --------------------------------------------------------------------------
   Section styling
   -------------------------------------------------------------------------- */
.redesign-section {
    padding: 60px 0;
    border-bottom: 1px solid #e9ecef;
}
.redesign-section:last-of-type { border-bottom: none; }
.redesign-section.bg-light { background-color: var(--color-bg-light); }
.redesign-section.bg-white { background-color: #ffffff; }

/* --------------------------------------------------------------------------
   Column layouts
   -------------------------------------------------------------------------- */
.redesign-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.redesign-col-2 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}
.redesign-col-3 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}
@media (max-width: 768px) {
    .redesign-col-2,
    .redesign-col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

/* --------------------------------------------------------------------------
   Card styling
   -------------------------------------------------------------------------- */
.redesign-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: transform 1s var(--ease-out-expo),
                box-shadow 1s var(--ease-out-expo);
}
.redesign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-out-expo);
}
.redesign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(21, 66, 115, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.redesign-card:hover::before { transform: scaleX(1); }
.bg-light .redesign-card { background: #ffffff; }

/* --------------------------------------------------------------------------
   Typography - matching site fonts
   -------------------------------------------------------------------------- */
.redesign-section h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-heading-alt);
}
.redesign-section h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--color-heading-alt);
}
.redesign-section h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 14px;
    color: var(--color-heading-alt);
}
.redesign-section p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-body);
    margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Accordion styling
   -------------------------------------------------------------------------- */
.accordion-group {
    margin-top: 24px;
}
.accordion-item {
    background-color: var(--color-bg-card);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
    transition: background-color 0.35s ease;
}
.accordion-item:last-child { margin-bottom: 0; }
.accordion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-brand);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1s var(--ease-out-expo);
}
.accordion-item.active::before { transform: scaleY(1); }
.accordion-item:hover { background-color: #f0f0f0; }
.accordion-item.active { background-color: var(--color-bg-card); }
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: transparent;
    transition: padding 0.8s var(--ease-out-expo);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.accordion-item.active .accordion-header {
    padding-bottom: 10px;
}
.accordion-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    color: var(--color-heading);
    transition: color 0.8s var(--ease-out-expo);
    letter-spacing: 0.01em;
}
.accordion-item.active .accordion-header h3 { color: var(--color-brand); }

/* Chevron icon - animated plus-to-minus */
.accordion-chevron {
    width: 28px;
    height: 28px;
    position: relative;
    flex-shrink: 0;
    margin-left: 16px;
    border-radius: var(--radius-full);
    background: var(--color-border-light);
    transition: background-color 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo),
                box-shadow 0.8s var(--ease-out-expo);
}
.accordion-header:hover .accordion-chevron {
    background: #d4d4d4;
    transform: scale(1.1);
}
.accordion-item.active .accordion-chevron {
    background: rgba(21, 66, 115, 0.1);
    box-shadow: 0 0 0 4px rgba(21, 66, 115, 0.06);
    transform: rotate(180deg);
}
.accordion-chevron::before,
.accordion-chevron::after {
    content: '';
    position: absolute;
    background-color: #6b7280;
    border-radius: 2px;
    transition: transform 1s var(--ease-out-expo),
                opacity 0.7s var(--ease-out-expo),
                background-color 0.8s var(--ease-out-expo);
}
.accordion-chevron::before {
    top: 50%;
    left: 7px;
    width: 14px;
    height: 2px;
    transform: translateY(-50%);
}
.accordion-chevron::after {
    top: 7px;
    left: 50%;
    width: 2px;
    height: 14px;
    transform: translateX(-50%);
}
.accordion-item.active .accordion-chevron::before { background-color: var(--color-brand); }
.accordion-item.active .accordion-chevron::after {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
    background-color: var(--color-brand);
}

/* Content panel - uses JS-driven height for smooth animation */
.accordion-content {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 1.1s var(--ease-out-expo),
                opacity 1s var(--ease-out-expo) 0.08s;
    padding: 0 20px;
}
.accordion-item.active .accordion-content { opacity: 1; }
.accordion-content-inner {
    padding-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 1.4s var(--ease-out-expo) 0.2s,
                opacity 1.3s var(--ease-out-expo) 0.15s;
}
.accordion-item.active .accordion-content-inner {
    transform: translateY(0);
    opacity: 1;
}

/* Closing animation */
.accordion-item.closing .accordion-content-inner {
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 1, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 1, 1);
}
.accordion-item.closing .accordion-content {
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Mobile performance: simplify transitions and disable hover effects
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .redesign-card { transition: none; }
    .redesign-card::before { transition: none; }
    .redesign-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 10px rgba(0,0,0,0.04);
    }
    .redesign-card:hover::before { transform: scaleX(0); }
    .accordion-chevron { transition: background-color 0.3s ease, transform 0.3s ease; }
    .accordion-chevron::before,
    .accordion-chevron::after { transition: transform 0.3s ease, opacity 0.3s ease; }
    .accordion-header h3 { font-size: 16px; transition: color 0.3s ease; }
    .accordion-item { transition: background-color 0.2s ease; }
    .accordion-header { transition: padding 0.3s ease; }
    .accordion-item::before { transition: transform 0.3s ease; }
    .accordion-content { transition: height 0.5s ease, opacity 0.4s ease 0.05s; }
    .accordion-content-inner { transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s; }
    .accordion-item.closing .accordion-content-inner { transition: transform 0.25s ease, opacity 0.2s ease; }
    .accordion-item.closing .accordion-content { transition: height 0.4s ease 0.1s, opacity 0.3s ease; }
}

/* --------------------------------------------------------------------------
   Floating action buttons — shared base (was triplicated)
   -------------------------------------------------------------------------- */
.back-to-top,
.float-mail,
.float-phone {
    position: fixed;
    right: 32px;
    z-index: 50;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(24px) scale(0.85);
    pointer-events: none;
    text-decoration: none;
    transition: opacity 1.4s var(--ease-out-expo),
                transform 1.6s var(--ease-out-expo),
                background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}
.back-to-top.visible,
.float-mail.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.back-to-top:hover,
.float-mail:hover {
    background: var(--color-bg);
    border-color: #888;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px) scale(1.08);
}
.back-to-top:active,
.float-mail:active { transform: translateY(0) scale(0.95); }
.back-to-top svg,
.float-mail svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--color-icon-dark);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Individual positions */
.back-to-top { bottom: 32px; }
.float-mail  { bottom: 126px; }
.float-phone { display: none; }

@media (max-width: 768px) {
    .back-to-top,
    .float-mail {
        right: 24px;
        width: 44px;
        height: 44px;
    }
    .back-to-top { bottom: 24px; }
    .float-mail  { bottom: 106px; }

    /* Phone button — mobile only, template pages only */
    body.template-page .float-phone {
        display: flex;
        bottom: 188px;
        right: 24px;
        width: 44px;
        height: 44px;
    }
    body.template-page .float-phone.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    body.template-page .float-phone:hover {
        background: var(--color-bg);
        border-color: #888;
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px) scale(1.08);
    }
    body.template-page .float-phone:active { transform: translateY(0) scale(0.95); }
    body.template-page .float-phone svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: var(--color-icon-dark);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    .back-to-top,
    .float-mail,
    .float-phone {
        transition: opacity 0.1s, background-color 0.1s;
    }
    /* Nav redesign – disable motion */
    #sticker .navbar .navbar-collapse,
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu,
    #sticker .navbar .navbar-collapse .navbar-nav > li > a,
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .page-links a,
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .page-links > div,
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row .col-sm-3,
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row::before,
    #sticker .navbar .navbar-collapse .navbar-nav > li,
    .navbar-toggle .icon-bar,
    .nav-backdrop {
        transition: none !important;
    }
    .nav-backdrop.active {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .page-links > div,
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .row .col-sm-3,
    #sticker .navbar .navbar-collapse .navbar-nav > li {
        opacity: 1 !important;
        transform: none !important;
    }
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .title::after,
    #sticker .navbar .navbar-collapse .navbar-nav .dropdown-menu .page-links {
        transition: none !important;
    }
    .author-widget img,
    .author-widget .icons > a,
    #sidebar #MainMenu a,
    #sidebar #MainMenu .list-group-item:before,
    #sidebar #MainMenu .collapse > a.list-group-item .fa-caret-down,
    #sidebar #MainMenu .list-group-submenu {
        transition: none !important;
    }
    /* Global transitions */
    a, button {
        transition: none !important;
    }
    /* Accordion */
    .accordion-item::before,
    .accordion-header,
    .accordion-header h3,
    .accordion-chevron,
    .accordion-chevron::before,
    .accordion-chevron::after,
    .accordion-content,
    .accordion-content-inner {
        transition: none !important;
    }
    .accordion-content-inner {
        opacity: 1;
        transform: none;
    }
    /* Collapsible sections */
    .collapsible,
    .collapsible::before {
        transition: none !important;
    }
    /* CTA bar */
    #get-quote a,
    #get-quote .cta-envelope {
        transition: none !important;
    }
    /* Skip nav */
    .skip-nav {
        transition: none !important;
    }
    /* Share elements */
    .share-icon-btn,
    .share-option {
        transition: none !important;
    }
    /* File upload */
    .file-upload {
        transition: none !important;
    }
    /* Search */
    .nav-search-toggle,
    .search-bar,
    .search-bar form,
    .search-bar button[type="submit"],
    .mobile-search form,
    .mobile-search button[type="submit"],
    .search-results-container .pagefind-ui__result,
    .search-results-container .pagefind-ui__result-link,
    .search-results-container .pagefind-ui__button {
        transition: none !important;
    }
}

/* ==========================================================================
   Tooltip styles (lawyer directory pages, contact page)
   ========================================================================== */
td a {
    position: relative;
    text-decoration: none;
    display: inline-block;
}
/* Shared tooltip base — was triplicated across .email/.name/.lawfirm-tooltip */
.email-tooltip,
.name-tooltip,
.lawfirm-tooltip {
    display: none;
    position: absolute;
    white-space: nowrap;
    background: white;
    border: 1px solid black;
    z-index: 10;
    font-size: 1em;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 5px;
}
.name-link, .lawfirm-link {
    text-decoration: none;
    position: relative;
    display: inline-block;
}
td a:hover + .email-tooltip,
td .name-link:hover > .name-tooltip,
td .lawfirm-link:hover > .lawfirm-tooltip {
    display: inline-block;
    white-space: nowrap;
}

/* ==========================================================================
   Grey block with decorative corners
   ========================================================================== */
.grey-block {
    position: relative !important;
    background-color: var(--color-bg-light) !important;
    border: 1px dotted #ccc !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding: 20px !important;
    z-index: 0 !important;
}
.grey-block::before,
.grey-block::after {
    content: "" !important;
    position: absolute !important;
    width: 32px !important;
    height: 32px !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    z-index: 2 !important;
}
.grey-block::before {
    top: -1px !important;
    left: -1px !important;
    background-image: url("https://dutch-law.com/img/corner-left.svg") !important;
    background-position: top left !important;
}
.grey-block::after {
    bottom: -1px !important;
    right: -1px !important;
    background-image: url("https://dutch-law.com/img/corner-right.svg") !important;
    background-position: bottom right !important;
}
.grey-block-title {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-weight: normal !important;
    color: #4a4a4a !important;
}
.grey-block a {
    display: inline-block;
    transition: color var(--duration-base) ease, transform var(--duration-base) ease;
}
.grey-block a:hover {
    color: var(--color-brand);
    transform: translateX(3px);
}
.grey-column {
    position: relative !important;
    padding: 10px !important;
    margin: 0 !important;
}
.grey-column ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style-position: inside !important;
}
.with-vertical-line::before {
    content: "" !important;
    position: absolute !important;
    top: 10px !important;
    bottom: 10px !important;
    left: 0 !important;
    width: 1px !important;
    background-color: #ccc !important;
}
@media (max-width: 768px) {
    .with-vertical-line::before {
        content: none !important;
    }
    .grey-column:not(.with-vertical-line) {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .grey-column.with-vertical-line {
        margin-top: -10px !important;
    }
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.file-upload {
    position: relative;
    border: 2px dashed #e8e8e8;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease;
}
.file-upload:hover { border-color: #d14011; }
.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.file-preview-item {
    background: var(--color-bg-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.file-preview-item button {
    background: none;
    border: none;
    color: #d14011;
    cursor: pointer;
    padding: 0;
}
.contact-section {
    max-width: 848px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(209, 64, 17, 0.1);
    border: 1px solid #f0f0f0;
}
.contact-section h2.title {
    font-family: Oswald, sans-serif;
    font-size: 32px;
    color: #4a4a4a;
    margin-bottom: 2rem;
    border-bottom: 2px solid #d14011;
    padding-bottom: 0.5rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.form-group label {
    font-weight: 500;
    color: #6b6b6b;
    font-size: 0.95rem;
}
.form-input {
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--color-bg-light);
}
.form-input:focus {
    border-color: #d14011;
    background: #fff;
    box-shadow: 0 0 8px rgba(209, 64, 17, 0.2);
}
.form-input::placeholder { color: #a0a0a0; }
.privacy-notice {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}
.privacy-notice label { font-size: 0.9rem; color: #666; }
.error-message {
    color: #c00;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}
.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    display: none;
}
.submit-btn {
    background: #d14011;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.submit-btn:hover {
    background: #a8320d;
    transform: translateY(-1px);
}
.loading-dots {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.loading-dots::after {
    content: " .";
    animation: dots 1.4s infinite;
}
@keyframes dots {
    0%, 20% { content: " ."; }
    40% { content: " .."; }
    60% { content: " ..."; }
    80%, 100% { content: " "; }
}
@media (max-width: 768px) {
    .contact-section {
        margin: 1.5rem;
        padding: 1.8rem;
    }
    .form-input { padding: 12px 15px; }
    .submit-btn { width: 100%; padding: 14px; }
}

/* ==========================================================================
   Google Maps embed
   ========================================================================== */
.google-maps {
    display: block;
    line-height: 0;
    overflow: hidden;
}
.google-maps iframe {
    display: block;
    width: 100% !important;
    height: 450px !important;
    margin: 0;
    padding: 0;
    border: 0;
}

/* ==========================================================================
   Collapsible sections
   ========================================================================== */
.collapsible {
    background-color: #f0f0f0;
    color: var(--color-text-soft);
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    transition: background-color 0.3s ease;
    position: relative;
    font-family: Oswald, sans-serif;
    line-height: 1.3;
    margin: 0 0 22px;
    font-weight: 500;
    text-transform: capitalize;
    font-size: 32px;
}
.collapsible small {
    font-size: 65%;
    color: var(--color-text-soft);
    display: inline-block;
}
.collapsible:hover { background-color: #e0e0e0; }
.collapsible:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.collapsible.active { background-color: #ccc; }
.collapsible::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('https://dutch-law.com/img/plus.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}
.collapsible.active::before {
    background-image: url('https://dutch-law.com/img/minus.svg');
    transform: translateY(-50%) rotate(180deg);
}
.content {
    display: none;
    padding: 10px;
    background-color: var(--color-bg-light);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.content.show { display: block; }
.content h3.title {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 1.3;
    font-family: Oswald, sans-serif;
    margin: 0 0 22px;
}
.content h3.title small {
    display: block;
    font-size: 65%;
    color: var(--color-text-soft);
    margin-top: 5px;
}

/* ==========================================================================
   Post-meta mobile/desktop + Share-knop + Modal
   Merged from test3.css
   ========================================================================== */

/* Desktop: verberg de mobiele kopie */
.post-meta-mobile {
    display: none;
}

/* Mobiel: toon kopie, verberg origineel */
@media only screen and (max-width: 768px) {
    .post-meta-mobile {
        display: block;
        margin-top: 5px;
        margin-bottom: 15px;
    }
    .pull-right:has(.post-meta-mobile) .post-meta:not(.post-meta-mobile) {
        display: none;
    }
    .pull-right:has(.post-meta-mobile) #body-content + hr {
        display: none;
    }
    #sidebar {
        margin-top: 20px;
    }
}

/* Post-meta box styling */
.post-meta:hover {
    background-color: #f0f0f0;
}
@media only screen and (min-width: 769px) {
    .post-meta {
        padding-right: 60px;
    }
}

/* Share icon button (inside post-meta box) - styled like back-to-top */
.share-icon-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #aaa;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.share-icon-btn:hover {
    background: #fff;
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.share-icon-btn:active {
    transform: translateY(-50%) scale(0.93);
}
.share-icon-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #555;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media only screen and (min-width: 769px) {
    .share-icon-btn {
        right: 14px;
        width: 38px;
        height: 38px;
    }
    .share-icon-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Share modal overlay + dialog */
.share-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    justify-content: center;
    align-items: center;
}
.share-overlay.active {
    display: flex;
}

.share-modal {
    background: #fff;
    border-radius: 6px;
    width: 340px;
    max-width: 92vw;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    position: relative;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e0e0e0;
}
.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-family: var(--font-heading);
    color: var(--color-brand);
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 0 0 12px;
}
.share-modal-close:hover {
    color: var(--color-brand);
}

.share-modal-body {
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.15s;
}
.share-option:last-child {
    border-bottom: none;
}
.share-option:hover {
    background-color: #f5f7fa;
}
.share-option svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

.share-copied {
    display: none;
    color: #2e7d32;
    font-size: 13px;
    margin-left: 8px;
}
.share-copied.visible {
    display: inline;
}

/* padding-bottom: 45px is now consolidated into .page-section above */

/* ==========================================================================
   Search
   ========================================================================== */

/* Desktop search icon in navbar */
.nav-search-li {
    display: flex;
    align-items: center;
    margin-left: 4px;
}
.nav-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-icon);
    transition: color var(--duration-base) var(--ease-out-expo),
                transform var(--duration-base) var(--ease-out-expo);
}
.nav-search-toggle:hover {
    color: var(--color-brand);
    transform: translateY(-1px);
}
.nav-search-toggle:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    border-radius: 3px;
}
.nav-search-toggle svg {
    display: block;
}

/* Desktop search bar (slide down under navbar) */
.search-bar {
    display: block;
    max-height: 0;
    overflow: clip;
    background-color: var(--color-bg-muted);
    transition: max-height 700ms var(--ease-out-expo);
}
.search-bar[hidden] {
    display: block;
    max-height: 0;
}
.search-bar.search-bar-open {
    max-height: 80px;
}
.search-bar .container {
    opacity: 0;
    transition: opacity 400ms var(--ease-out-expo);
    padding: 14px 15px;
}
.search-bar.search-bar-open .container {
    opacity: 1;
}
.search-bar form {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration-base) var(--ease-out-expo),
                box-shadow var(--duration-base) var(--ease-out-expo);
}
.search-bar form:focus-within {
    border-color: #aaa;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.search-bar input[type="search"] {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 16px;
    font-family: var(--font-body);
    outline: none;
    background: transparent;
    color: #333;
}
.search-bar input[type="search"]::placeholder {
    color: #aaa;
}
.search-bar input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}
.search-bar button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 14px 16px;
    cursor: pointer;
    color: #aaa;
    transition: color var(--duration-base) var(--ease-out-expo);
}
.search-bar button[type="submit"]:hover {
    color: #666;
}

/* Mobile search (inside hamburger menu) */
.mobile-search {
    display: none;
}
.mobile-search form {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration-base) var(--ease-out-expo),
                box-shadow var(--duration-base) var(--ease-out-expo);
}
.mobile-search form:focus-within {
    border-color: var(--color-brand);
    box-shadow: var(--shadow-brand);
}
.mobile-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 16px;
    font-family: var(--font-body);
    outline: none;
    background: transparent;
    color: #000;
}
.mobile-search input[type="search"]::placeholder {
    color: #a0a0a0;
}
.mobile-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}
.mobile-search button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 14px 16px;
    cursor: pointer;
    color: var(--color-icon);
    transition: color var(--duration-base) var(--ease-out-expo);
}
.mobile-search button[type="submit"]:hover {
    color: var(--color-brand);
}

@media only screen and (max-width: 768px) {
    .nav-search-li {
        display: none;
    }
    .mobile-search {
        display: block;
        padding: 16px 20px 8px;
        border-bottom: 1px solid #e8e8e8;
    }
}

/* Search results page — Pagefind UI overrides
   !important required: Pagefind generates Svelte-scoped selectors (.svelte-e9gkc3)
   that have higher specificity than our class selectors. */
.search-results-container {
    --pagefind-ui-scale: 1;
    --pagefind-ui-primary: var(--color-brand);
    --pagefind-ui-text: var(--color-heading);
    --pagefind-ui-background: #fff;
    --pagefind-ui-border: #e0e0e0;
    --pagefind-ui-tag: #f5f7fa;
    --pagefind-ui-border-width: 2px;
    --pagefind-ui-border-radius: 6px;
    --pagefind-ui-image-border-radius: 4px;
    --pagefind-ui-image-box-ratio: 3 / 2;
    --pagefind-ui-font: 'Arial', sans-serif;
    min-height: 400px;
    font-size: 14px;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Pagefind search input on results page — styled to match contact form inputs */
.search-results-container .pagefind-ui__form {
    position: relative;
    margin-bottom: 8px !important;
    max-width: 100%;
}
.search-results-container .pagefind-ui__form::before {
    display: none !important;
}
.search-results-container .pagefind-ui__search-input {
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    padding: 12px 50px 12px 16px !important;
    border: 2px solid var(--color-border-light) !important;
    border-radius: var(--radius-md) !important;
    background: var(--color-bg-light) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    transition: border-color var(--duration-base) var(--ease-out-expo),
                background-color var(--duration-base) var(--ease-out-expo),
                box-shadow var(--duration-base) var(--ease-out-expo);
}
.search-results-container .pagefind-ui__search-input:focus {
    border-color: var(--color-brand) !important;
    background: var(--color-bg) !important;
    box-shadow: var(--shadow-brand);
    outline: none;
}
/* Clear button - circle icon like share-icon-btn / back-to-top */
.search-results-container .pagefind-ui__search-clear {
    position: absolute !important;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 2px solid #aaa !important;
    padding: 0 !important;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-size: 0 !important;
    color: transparent !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-results-container .pagefind-ui__search-clear::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    position: relative;
    background: linear-gradient(45deg, transparent 42%, #555 42%, #555 58%, transparent 58%),
                linear-gradient(-45deg, transparent 42%, #555 42%, #555 58%, transparent 58%);
}
.search-results-container .pagefind-ui__search-clear:hover {
    background: #fff !important;
    border-color: #999 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.search-results-container .pagefind-ui__search-clear:active {
    transform: translateY(-50%) scale(0.93);
}

/* Status message - styled as H2 */
.search-results-container .pagefind-ui__message {
    font-family: var(--font-heading) !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: inherit !important;
    font-style: normal !important;
    margin: 0 0 22px !important;
    height: auto !important;
    padding: 0 !important;
}

/* Result cards */
.search-results-container .pagefind-ui__result {
    background: var(--color-bg-card);
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px;
    padding: 20px !important;
    margin-bottom: 12px;
    transition: background-color 0.35s ease,
                box-shadow var(--duration-base) var(--ease-out-expo);
}
.search-results-container .pagefind-ui__result:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Result titles */
.search-results-container .pagefind-ui__result-link {
    font-family: var(--font-heading) !important;
    font-size: 20px;
    font-weight: 400;
    color: var(--color-heading);
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-out-expo);
}
.search-results-container .pagefind-ui__result-link:hover {
    color: var(--color-brand);
}

/* Result excerpts - matches body text (14px) */
.search-results-container .pagefind-ui__result-excerpt {
    font-family: var(--font-body);
    font-size: 14px !important;
    line-height: 1.8;
    color: var(--color-text-soft);
    min-width: 0 !important;
}

/* Highlighted search terms */
.search-results-container mark {
    background-color: rgba(21, 66, 115, 0.08);
    color: var(--color-brand);
    font-weight: 600;
    padding: 1px 3px;
    border-radius: 2px;
}

/* Sub-results / nested results */
.search-results-container .pagefind-ui__result-nested {
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
    margin-top: 8px;
}

/* Load more button - circle with down-arrow icon, like back-to-top */
.search-results-container .pagefind-ui__button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 2px solid #aaa !important;
    color: transparent !important;
    font-size: 0 !important;
    padding: 0 !important;
    margin: 24px auto 0 !important;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.search-results-container .pagefind-ui__button::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2.5px solid #555;
    border-bottom: 2.5px solid #555;
    transform: rotate(45deg);
    margin-top: -3px;
}
.search-results-container .pagefind-ui__button:hover {
    background: #fff !important;
    border-color: #888 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    transform: translateY(-4px) scale(1.08);
}
.search-results-container .pagefind-ui__button:active {
    transform: translateY(0) scale(0.95);
}

/* Reduced motion for search: merged into the main prefers-reduced-motion block above */

/* ==========================================================================
   Print styles
   ========================================================================== */
@media print {
    /* Hide non-content elements */
    #top-bar,
    #sticker,
    .navbar,
    .nav-backdrop,
    .back-to-top,
    .float-mail,
    .float-phone,
    .share-icon-btn,
    .share-overlay,
    .search-bar,
    .mobile-search,
    .nav-search-li,
    #get-quote,
    #footer,
    #sidebar,
    .post-meta-mobile,
    .breadcrumb,
    .skip-nav,
    .google-maps {
        display: none !important;
    }

    /* Full-width content */
    .col-md-9 {
        width: 100% !important;
        float: none !important;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Clean backgrounds and shadows */
    body {
        color: #000;
        background: #fff;
    }
    .page-header {
        background: none !important;
        box-shadow: none !important;
        color: #000 !important;
    }
    .page-header h1,
    .page-header .breadcrumb {
        color: #000 !important;
    }
    .post-meta {
        border: 1px solid #ccc;
        background: none;
    }
    .page-section {
        padding: 20px 0;
    }

    /* Show link URLs */
    #body-content a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555;
        word-break: break-all;
    }

    /* Avoid page breaks inside key elements */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    img, blockquote, table {
        page-break-inside: avoid;
    }
}
