.bulk-bar {
  position: sticky;
  bottom: 12px;
  margin-top: 12px;
  background: #0A2342;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  display: none; /* shown when any selected */
  align-items: center; justify-content: space-between;
  box-shadow: 0 8px 24px rgba(10,35,66,0.25);
}

@media (min-width: 992px) {
  .hero h1 { font-size: 3.25rem; }
  .hero p { font-size: 1.15rem; }
  header nav a { font-size: 1.05rem; }
}

/* Mobile: homepage features as a vertical list for easier reading */
@media (max-width: 600px) {
  .features { display: flex; flex-direction: column; gap: 1.25rem; }
  .feature { flex: 1 1 auto; }
}

/* Mobile: hide the Select All header in Library list at smaller widths */
@media (max-width: 840px) {
  .lib-header { display: none !important; }
}
.bulk-bar.is-visible { display: flex; }
.bulk-bar .count { opacity: 0.9; }
.bulk-bar .actions { display: flex; gap: 10px; align-items: center; }
.bulk-bar .actions .btn-inline { background: #ffffff; color: #0A2342; }
.bulk-bar .actions .btn-inline:hover { background: #e9eef5; }

.download-links { margin-top: 1rem; margin-bottom: 0; }
.download-links a { display: inline-block; margin-right: 10px; margin-bottom: 8px; }
/* Base styles for Trust Well Solutions website */

/* Import a Google font via @import to improve typography.  Roboto Serif is free to use and pairs well with professional themes */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:wght@400;700&display=swap');

/* Use border-box sizing to keep padding inside declared widths */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Serif', serif;
    line-height: 1.65;
    color: #0A2342; /* navy text by default */
    background-color: #ffffff;
    min-height: 100vh;
}

/* Base font size */
body { font-size: 18px; }

/* Sticky footer: push footer to bottom when content is short */
body { display: flex; flex-direction: column; }
footer { margin-top: auto; }

/* Download Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 1300;
    backdrop-filter: blur(4px);
}
.modal-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1310;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}
.modal.is-visible { opacity: 1; pointer-events: auto; }

.modal-content {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(10,35,66,0.08);
    box-shadow: 0 10px 30px rgba(10,35,66,0.18);
    overflow: hidden;
    transform: translateY(12px);
}
.modal.is-visible .modal-content { transform: translateY(0); }

.modal-header {
    background: #ffffff;
    color: #0A2342;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eaeef3;
}
.modal-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.modal-close {
    background: transparent;
    border: none;
    color: #0A2342;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    width: 36px; height: 36px; border-radius: 9999px;
}
.modal-close:hover {
    background: rgba(10,35,66,0.06);
}

.modal-body { padding: 1.25rem; }
.modal-body form { width: 100%; max-width: none; margin: 0; }
.modal-body form label { display: block; margin: 0.5rem 0 0.35rem; font-weight: 600; color: #0A2342; }
.modal-body form label:first-of-type { margin-top: 0; }
.modal-body form input[type="text"],
.modal-body form input[type="email"],
.modal-body form input[type="tel"] {
    width: 100%;
    box-sizing: border-box; /* ensure equal left/right spacing */
    padding: 0.7rem 0.75rem;
    border: 1px solid #cfd6df;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.modal-body form input:focus {
    outline: none;
    border-color: #8fbbe1;
    box-shadow: 0 0 0 3px rgba(143,187,225,0.35);
}
.modal-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; }
.btn-secondary { background: #e9eef5; color: #0A2342; }
.btn-secondary:hover { background: #dde6f0; }

@media (max-width: 420px) {
    .modal-content { border-radius: 10px; }
    .modal-header { padding: 0.85rem 1rem; }
    .modal-body { padding: 1rem 1rem 1rem; }
    .modal-actions { flex-wrap: wrap; justify-content: center; }
    .modal-actions .btn, .modal-actions .btn-secondary { flex: 1 1 48%; text-align: center; }
}

/* Toast notification */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #0A2342;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(10,35,66,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 1400;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(-4px); pointer-events: auto; }
/* Utility classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    background-color: #0A2342;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 700;
    font-size: 1rem;
}

.btn:hover {
    background-color: #14532D; /* green on hover */
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Header & Navigation */
header {
    background: linear-gradient(90deg, #0A2342 0%, #0E2F52 50%, #14532D 100%);
    color: #ffffff;
    padding: 0.5rem 0;
    box-shadow: none; /* will appear only when scrolling */
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Divider/shadow only when scrolled */
header.scrolled { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); }

/* Second section reverted to plain background with subtle bottom border */
#features {
    position: relative;
    border-bottom: 1px solid #eaeef3;
    background: #ffffff;
}
#features::before { display: none; }

/* Remove glass effect panel */
#features > .container { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: none; border-radius: 0; box-shadow: none; padding: 0; }

header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    overflow: hidden;
}

header .logo a {
    display: inline-block;
    line-height: 0;
}

header .logo img {
    /* Increase the logo size for better visibility */
    height: 80px;
    /* Make dark logo appear white by inverting brightness and colors */
    filter: brightness(0) invert(1);
    /* Smooth transform when hovering */
    transition: transform 0.3s ease;
    /* Ensure no inline-gap and crop potential stray edge pixels */
    display: block;
    clip-path: inset(0 1px 1px 0);
}

/* Slightly enlarge the logo on hover to add a modern interactive feel */
header .logo img:hover {
    transform: scale(1.05);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    /* Smooth color and underline transitions */
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

/* Hidden by default; enabled in mobile media query */
.nav-toggle { display: none; }
.nav-close { display: none; }
/* Ensure drawer close is hidden on desktop and by default */
#primary-nav .drawer-close { display: none; }

/* Lock scroll when menu is open */
body.no-scroll { overflow: hidden; }

header nav a:hover {
    color: #8fbbe1;
    /* add a simple underline effect on hover */
    border-bottom: 2px solid #8fbbe1;
}

/* Hero Section */

/* Hero section uses a subtle gradient to reinforce the brand colours instead of an image. */
.hero {
    /* Static blue/green gradient similar to screenshot */
    background:
      radial-gradient(900px at 100% 0%, rgba(28, 156, 196, 0.45), rgba(28, 156, 196, 0) 60%),
      radial-gradient(900px at 0% 100%, rgba(24, 164, 96, 0.45), rgba(24, 164, 96, 0) 60%),
      linear-gradient(180deg, #0A2342 0%, #0E2F52 100%);
    color: #ffffff;
    text-align: center;
    padding: 4rem 1rem;
}

.hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    /* Fade-in animation when the page loads */
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2px;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Sections */
section {
    padding: 3rem 0;
}

/* Remove extra white space before footer */
section:last-of-type { padding-bottom: 0.5rem; }

section h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: #14532D;
    font-weight: 700;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.feature {
    flex: 1 1 45%;
    background: #f5f8fa;
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    border: 1px solid #eaeef3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    /* Add subtle transition for hover effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Lift and add shadow on hover to give depth */
.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Scroll-reveal utility for cards and sections */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature h3 {
    color: #0A2342;
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature p { font-size: 1.05rem; }

/* Library list view (Drive-like) */
.lib-list {
    margin-top: 1.5rem;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.lib-header, .lib-row {
    display: grid;
    grid-template-columns: 28px 40px 1fr 56px; /* checkbox, icon, title, actions */
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
}
.lib-header {
    background: #f7f9fc;
    color: #41556e;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid #e5eaf0;
}
.lib-row { border-bottom: 1px solid #eef2f6; }
.lib-row:last-child { border-bottom: none; }
.lib-row:hover { background: #f9fbff; }

.file-icon {
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    color: #0A2342;
}
.file-check { display: flex; align-items: center; justify-content: center; }
.file-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.select-all { display: inline-flex; align-items: center; gap: 8px; color: #41556e; }
.select-all input[type="checkbox"] { width: 16px; height: 16px; margin: 0; vertical-align: middle; transform: translateY(1px); }
.select-all label { margin: 0; line-height: 1; display: inline-flex; align-items: center; }
.file-title { font-weight: 600; color: #0A2342; }
.file-meta { color: #5a6b82; font-size: 0.9rem; }
/* Prevent long titles from pushing actions on desktop */
.file-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.file-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-kebab {
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid #e5eaf0; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: #41556e;
    cursor: pointer; transition: background 160ms ease, transform 120ms ease;
}
.icon-kebab:hover { background: #f1f5fb; }
.icon-kebab:active { transform: scale(0.98); }
.icon-kebab svg { width: 18px; height: 18px; fill: currentColor; display: block; }

.btn-inline {
    padding: 0.5rem 0.75rem; border-radius: 8px; background: #0A2342; color: #fff; border: none;
    font-weight: 700; cursor: pointer; transition: background 160ms ease, transform 120ms ease;
}
.btn-inline:hover { background: #14532D; }
.btn-inline:active { transform: translateY(1px); }

@media (max-width: 720px) {
  .lib-header { display: none; }
  /* Stack actions below title to avoid overlap */
  .lib-row {
    grid-template-columns: 24px 28px 1fr;
    grid-template-areas:
      "check icon title"
      ". . actions";
    row-gap: 8px;
  }
  .lib-row .file-check { grid-area: check; }
  .lib-row .file-icon { grid-area: icon; }
  .lib-row .file-title { grid-area: title; white-space: normal; }
  .lib-row .file-actions { grid-area: actions; justify-content: flex-start; }
  .icon-kebab { width: 32px; height: 32px; }
  .btn-inline { padding: 0.45rem 0.6rem; font-size: 0.95rem; }
  .file-meta { display: none; }
}

/* Library page */
.library-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.library-item {
    border: 1px solid #e0e7ef;
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    /* subtle transition for interactive hover effects */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Lift resource cards slightly and intensify shadow on hover */
.library-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.library-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.library-item form {
    display: none;
    margin-top: 1rem;
    text-align: left;
}

.library-item form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.library-item form input[type="text"],
.library-item form input[type="email"],
.library-item form input[type="tel"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.8rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.library-item .download-link {
    display: none;
    margin-top: 1rem;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    background-color: #14532D;
    color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 700;
}

.contact-form button:hover {
    background-color: #0A2342;
}

/* Footer */
footer {
    background-color: #0A2342;
    color: #ffffff;
    padding: 2rem 0;
}

/* Footer layout grid */
.footer-inner { display: contents; }
footer .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "brand"
        "contact"
        "social"
        "bottom";
    row-gap: 1rem;
}

.footer-brand { grid-area: brand; justify-self: center; text-align: center; }
.footer-contact { grid-area: contact; }
.footer-social { grid-area: social; }
.footer-bottom { grid-area: bottom; justify-self: center; }

/* At wider viewports, split contact and social into two columns */
@media (min-width: 520px) {
    footer .container {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        grid-template-areas:
            "brand brand"
            "contact social"
            "bottom bottom";
    }
    .footer-contact { justify-self: center; }
    .footer-social { justify-self: center; }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand img {
    height: 96px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
    clip-path: inset(0 1px 1px 0);
}
@media (max-width: 360px) {
    footer .footer-brand img { height: 80px; }
}

/* Hide footer brand text lines; show only the logo */
.footer-brand > div { display: none; }

.footer-contact {
    line-height: 1.4;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Footer social icons layout */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .footer-social { gap: 14px; }
    .footer-social .icon-btn { width: 44px; height: 44px; }
    .footer-social .icon-btn svg { width: 22px; height: 22px; }
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer-social {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.footer-social a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    font-weight: 600;
}

.footer-social a:hover { opacity: 1; }

/* Reusable icon button for social links */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    color: #ffffff; /* plain white glyphs */
    border: none;
    text-decoration: none;
    transition: transform 150ms ease, opacity 160ms ease;
}
.icon-btn:hover { opacity: 1; transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0); }
.icon-btn svg { width: 24px; height: 24px; display: block; fill: currentColor; }

/* Responsive tweaks */
@media (max-width: 768px) {
    /* Mobile logo sizing */
    header .logo img {
        height: 72px;
    }

    /* Hamburger button */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        width: 44px;
        border: none;
        border-radius: 10px;
        background: transparent;
        color: #fff;
        cursor: pointer;
        transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
        position: relative; /* needed for precise bar positioning */
    }
    .nav-toggle:hover { background-color: transparent; }
    .nav-toggle:active { transform: scale(0.98); }

    /* Single morphing hamburger-to-X button (precise alignment) */
    .nav-toggle .bar {
        position: absolute;
        left: 50%;
        width: 26px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
        transform: translateX(-50%);
        transition: transform 240ms ease, opacity 200ms ease;
    }
    .nav-toggle .bar:nth-child(1) { top: 12px; }
    .nav-toggle .bar:nth-child(2) { top: 21px; }
    .nav-toggle .bar:nth-child(3) { top: 30px; }

    /* Morph to centered X */
    header.nav-open .nav-toggle .bar:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
    header.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
    header.nav-open .nav-toggle .bar:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

    /* Mobile right-side drawer */
    header nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(88vw, 420px);
        background: linear-gradient(180deg, #0A2342 0%, #0E2F52 100%);
        /* reduce top gap under header on mobile */
        padding-top: calc(64px + env(safe-area-inset-top, 0px));
        padding-bottom: 24px;
        padding-right: calc(16px + env(safe-area-inset-right, 0px));
        padding-left: 12px;
        transform: translateX(100%);
        transition: transform 280ms ease, box-shadow 280ms ease, border-radius 280ms ease;
        z-index: 1201;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        border-left: 1px solid rgba(255,255,255,0.08);
        box-shadow: -18px 0 40px rgba(0,0,0,0.28);
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
    }
    header.nav-open nav { transform: translateX(0); }

    /* Backdrop for drawer */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 280ms ease;
        z-index: 900; /* behind sticky header (1000) and drawer */
        backdrop-filter: blur(2px);
    }
    header.nav-open + .nav-backdrop,
    header.nav-open .nav-backdrop,
    .nav-backdrop.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }
    header nav li {
        border-top: 1px solid rgba(255,255,255,0.08);
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 300ms ease, transform 300ms ease;
    }
    header nav li:first-child { border-top: none; }
    header nav a {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1.35rem;
        letter-spacing: 0.2px;
        border-radius: 10px;
        transition: background-color 200ms ease, transform 160ms ease;
    }
    header nav a:active { transform: scale(0.98); }
    header nav a:hover { background-color: rgba(255,255,255,0.06); }

    /* Staggered reveal for menu items */
    header.nav-open nav li { opacity: 1; transform: translateY(0); }
    header nav li:nth-child(1) { --delay: 40ms; }
    header nav li:nth-child(2) { --delay: 80ms; }
    header nav li:nth-child(3) { --delay: 120ms; }
    header nav li:nth-child(4) { --delay: 160ms; }
    header nav li:nth-child(5) { --delay: 200ms; }
    header nav li:nth-child(6) { --delay: 240ms; }
    header nav li:nth-child(7) { --delay: 280ms; }
    header nav li:nth-child(8) { --delay: 320ms; }
    header nav li { transition-delay: var(--delay, 0ms); }

    /* Layout container tweak for absolute menu */
    header .nav { position: relative; gap: 0.5rem; }

    /* Separate drawer close button (X) */
    #primary-nav .drawer-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        cursor: pointer;
        display: none;
    }
    #primary-nav .drawer-close::before,
    #primary-nav .drawer-close::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 22px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
        transform-origin: center;
    }
    #primary-nav .drawer-close::before { transform: translate(-50%, -50%) rotate(45deg); }
    #primary-nav .drawer-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
    header.nav-open #primary-nav .drawer-close { display: inline-flex; }

    /* Ultra-small device tweaks */
    @media (max-width: 360px) {
        .nav-toggle { height: 40px; width: 40px; }
        .nav-toggle .bar { width: 24px; }
        .nav-toggle .bar:nth-child(1) { top: 10px; }
        .nav-toggle .bar:nth-child(2) { top: 19px; }
        .nav-toggle .bar:nth-child(3) { top: 28px; }
        header.nav-open .nav-toggle .bar:nth-child(1),
        header.nav-open .nav-toggle .bar:nth-child(3) { top: 19px; }
    }

    /* Social links inside mobile menu */
    .nav-social {
        margin-top: auto;
        padding: 1rem 1.25rem 0.5rem;
        display: flex;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    .nav-social a { color: #fff; text-decoration: none; font-weight: 600; opacity: 0.9; }
    .nav-social a:hover { opacity: 1; }

    /* Variant: place socials at top of overlay */
    .nav-social-top {
        margin-top: 0;
        margin-bottom: 0.5rem;
        border-top: none;
        padding-top: 0.5rem;
        justify-content: flex-start;
        gap: 0.75rem;
        padding-left: 1rem;
    }
}


/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}