/* ============================================================
   TABLE OF CONTENTS
   ============================================================
   1.  CUSTOM PROPERTIES & RESETS
   2.  GLOBAL BASE STYLES
   3.  ACCESSIBILITY (Skip link, focus styles)
   4.  REVEAL ANIMATIONS
   5.  TYPOGRAPHY & LINKS
   6.  UTILITY CLASSES
   7.  ICONS
   8.  SITE GRID LAYOUT
   9.  TOPBAR
   10. HEADER & NAVBAR
   11. NAVIGATION MENU
   12. HERO BANNER
   13. CTA BUTTONS
   14. INTRO SECTION
   15. PILLAR SECTIONS
   16. CAPABILITIES GRID
   17. STATS BAND
   18. LATEST NEWS CARDS (Homepage)
   19. NEWS BLOG — LEADING ITEMS
   20. NEWS BLOG — LIST ITEMS
   21. NEWS ARTICLE (Single)
   22. NEWS SIDEBAR & RELATED ITEMS
   23. CTA BANNER
   24. TEAM GRID
   25. FACILITIES & GALLERY (Homepage strip)
   26. GALLERY PAGE (Full)
   27. CONTACT PAGE
   28. SITEMAP / ITEM-PAGE
   29. 404 ERROR PAGE
   30. FOOTER
   31. BACK TO TOP
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES & RESETS
   ============================================================ */
:root {
    --space-xs: .5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 7rem;
    --body-bg: var(--color-bg);
    --font-body: var(--cassiopeia-font-family-body);
    --font-heading: var(--cassiopeia-font-family-heading);
}


/* ============================================================
   2. GLOBAL BASE STYLES
   ============================================================ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

::selection {
    background: var(--color-accent);
    color: #fff;
}


/* ============================================================
   3. ACCESSIBILITY (Skip link, focus styles)
   ============================================================ */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

a:focus-visible {
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-accent);
    color: #000;
    padding: .5rem 1rem;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 6px 6px;
}

.skip-link:focus {
    top: 45px;
    outline-offset: 3px;
}


/* ============================================================
   4. REVEAL ANIMATIONS
   ============================================================ */
body.site [data-reveal] {
    opacity: 0;
    transform: translateY(10px) scale(.995);
    will-change: transform, opacity;
    transition:
        opacity .7s cubic-bezier(.33, 1, .68, 1),
        transform .6s cubic-bezier(.22, .61, .36, 1) .05s;
}

body.site [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.site [data-reveal]:nth-child(2) { transition-delay: .05s; }
body.site [data-reveal]:nth-child(3) { transition-delay: .1s; }
body.site [data-reveal]:nth-child(4) { transition-delay: .15s; }


/* ============================================================
   5. TYPOGRAPHY & LINKS
   ============================================================ */

/* Default links (light surfaces) */
a:not([class]) {
    color: var(--color-ink);
    text-decoration: none;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: .18em;
}

a:not([class]):hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
    text-decoration: underline;
}


/* ============================================================
   6. UTILITY CLASSES
   ============================================================ */
.fullwidth {
    margin-left: calc(-50vw + 50% + 10px);
    margin-right: calc(-50vw + 50%);
    max-width: calc(100vw - 20px);
    padding-top: 30px;
    padding-bottom: 20px;
}

@media (width >= 1353px) {
    .px-xxl-0 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* ============================================================
   7. ICONS
   ============================================================ */
.icon {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
    vertical-align: -0.125em;
}

#back-top .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.error_site .icon {
    width: 1.2rem;
    height: 1.2rem;
}


/* ============================================================
   8. SITE GRID LAYOUT
   ============================================================ */
@supports (display: grid) {
    .site-grid {
        grid-template-areas:
            ".banner banner banner banner."
            ".top-a  top-a  top-a  top-a."
            ".top-b  top-b  top-b  top-b."
            ".comp   comp   comp   comp."
            ".side-r side-r side-r side-r."
            ".side-l side-l side-l side-l."
            ".bot-a  bot-a  bot-a  bot-a."
            ".stats-band stats-band stats-band stats-band."
            ".bot-b  bot-b  bot-b  bot-b.";
    }

    @media (width >= 992px) {
        .site-grid {
            grid-template-areas:
                ".banner banner banner banner."
                ".top-a  top-a  top-a  top-a."
                ".top-b  top-b  top-b  top-b."
                ".side-l comp   comp   side-r."
                ".bot-a  bot-a  bot-a  bot-a."
                ".stats-band stats-band stats-band stats-band."
                ".bot-b  bot-b  bot-b  bot-b.";
        }
    }
}

.container-stats-band {
    grid-area: stats-band;
}

.container-stats-band .grid-child > * {
    flex: 1;
}


/* ============================================================
   9. TOPBAR
   ============================================================ */
.container-topbar {
    z-index: 999;
    background: var(--color-ink);
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
    letter-spacing: .03em;
    text-align: center;
    padding: var(--space-xs) var(--space-s);
}


/* ============================================================
   10. HEADER & NAVBAR
   ============================================================ */
header {
    border-bottom: 1px solid var(--c-border);
}

header.container-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.container-header .grid-child {
    display: flex;
    flex-wrap: inherit;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.container-header .mod-list li {
    padding: 0;
}

/* ── Brand (shared header + footer) ── */
.container-footer a.footer-brand,
.container-header a.navbar-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    font-size: unset;
}

.container-footer a.footer-brand > span,
.container-header a.navbar-brand > span {
    display: block;
    width: 100%;
}

.footer-brand > span:first-child,
.navbar-brand > span:first-child {
    font-size: clamp(1.45rem, 0.25vw + 1.35rem, 1.8rem);
    line-height: 1.05;
}

.footer-brand .site-description,
.navbar-brand .site-description {
    font-size: clamp(0.60rem, 0.25vw + 0.55rem, 0.83rem);
}

a.navbar-brand:first-child {
    font-family: var(--cassiopeia-font-family-headings);
    letter-spacing: -.01em;
    color: var(--color-primary);
    white-space: nowrap;
    font-weight: 600;
    line-height: 1.2;
}

a.footer-brand .site-description,
a.navbar-brand .site-description {
    color: rgba(27, 31, 43, .7);
    white-space: normal;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: .18em;
}

/* ── Navbar toggler ── */
.navbar {
    --navbar-toggler-icon-bg: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQgMTdIOE0xMiAxN0gyME00IDEySDIwTTQgN0gxMk0xNiA3SDIwIiBzdHJva2U9IiMwMDYwMkEiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvcGF0aD4NCjwvc3ZnPg==);
    --navbar-toggler-focus-width: .03rem;
    --navbar-toggler-border-radius: var(--radius);
    --navbar-toggler-padding-x: .075rem;
    --navbar-toggler-padding-y: .075rem;
    --navbar-toggler-font-size: 1.4rem;
}


/* ============================================================
   11. NAVIGATION MENU
   ============================================================ */
.container-header .mod-menu {
    color: var(--color-ink);
    justify-content: end;
}

.mod-menu .nav-item a {
    font-size: 1rem;
    font-weight: 500;
    display: block;
    padding: .25rem .8rem;
    letter-spacing: .02em;
    color: var(--color-ink);
    position: relative;
    transition: color .2s;
}

.mod-menu .nav-item.active a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Underline indicator */
.container-header .mod-menu > li::after {
    content: "";
    opacity: 1;
    height: 2px;
    margin: auto;
    display: block;
    position: absolute;
    bottom: 0;
    left: 1.1rem;
    right: 1.1rem;
    transform: scaleX(0);
    transform-origin: left;
    transition: all .2s, transform .3s cubic-bezier(.22, 1, .36, 1);
}

.container-header .mod-menu > li.active::after,
.container-header .mod-menu > li:hover::after {
    background: var(--color-primary);
    left: 18px;
    right: 19px;
    opacity: 1;
    transform: scaleX(1);
}

.container-header .mod-menu > li + li {
    margin-left: 0;
}

@media (width >= 992.64px) {
    .container-header .mod-menu > li + li {
        margin-left: 0;
    }
}

/* ── Mobile menu ── */
@media (width <= 767.89px) {
    .container-header .mod-menu {
        position: absolute;
        top: 62.67px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
        padding: var(--space-s) 0;
        gap: 0;
        align-items: center;
        z-index: 9999999;
        border-top: 1px;
    }

    .container-header .mod-list li {
        padding: 0;
        margin: 0.75rem 0;
    }
}

/* ── Tablet menu ── */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container-header .mod-menu {
        display: flex;
        flex-direction: row;
        flex: 1;
    }
}


/* ============================================================
   12. HERO BANNER
   ============================================================ */
.container-banner .hero-banner {
    max-width: 1320px;
    width: 100%;
}

.container-banner .banner-overlay {
    height: auto;
    background-attachment: unset;
    background-position: 50%;
}

.container-banner .banner-overlay .overlay {
    background-color: transparent;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, .50) 0%,
        rgba(0, 0, 0, .25) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    text-align: start;
    align-items: flex-start;
    justify-content: flex-end;
    padding: var(--space-l) var(--space-m);
}

.site-grid .container-banner.full-width .overlay > .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    z-index: 0;
}

/* ── Hero inner ── */
.hero-banner {
    margin: 0 auto;
    margin-top: var(--space-xl);
}

.hero-banner__inner {
    max-width: 65%;
    background: rgba(0, 20, 10, 0.88);
    padding: var(--space-m) var(--space-m) var(--space-m);
    border-radius: 4px;
}

/* ── Label pill ── */
.hero-banner__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent, #a3c44a);
    border: 1px solid var(--color-accent, #a3c44a);
    padding: 0.35em 1.1em;
}

/* ── Heading ── */
.hero-banner__heading {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    font-weight: 300;
    font-style: normal;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 var(--space-s);
}

/* ── Subtext ── */
.hero-banner__sub {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .7);
    max-width: 520px;
    margin: 0 0 var(--space-s);
}

/* ── Hero edge accent bar ── */
.hero-edge {
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-secondary));
    z-index: 3;
}

/* ── Hero mobile ── */
@media (max-width: 768px) {
    .container-banner .banner-overlay .overlay {
        padding: var(--space-m) var(--space-s);
    }

    .hero-banner__inner {
        max-width: 100%;
        background: rgba(0, 20, 10, 0.92);
        padding: var(--space-m);
    }
}


/* ============================================================
   13. CTA BUTTONS
   ============================================================ */
.cta:not(.footer__contact-cta__cta-text, .contact-cta) {
    display: inline-flex;
    align-items: center;
    transition: background .25s, transform .2s;
    background: var(--color-accent);
    color: var(--color-ink, #1B1F2B);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    overflow: hidden;
    outline: none;
    border: none;
}

.cta::after {
    content: '➝';
    display: inline-block;
    margin-left: 0.4rem;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta:not(.footer__contact-cta__cta-text, .contact-cta):hover,
.cta:not(.footer__contact-cta__cta-text, .contact-cta):focus-visible {
    background: var(--color-accent-strong);
    color: var(--color-ink, #1B1F2B);
    outline: 2px solid var(--template-bg-dark-50);
    outline-offset: 2px;
    text-decoration: none;
}

.cta:hover::after,
.cta:focus-visible::after {
    transform: translateX(4px);
}

/* ── Footer contact CTA variant ── */
.footer__contact-cta a.footer__contact-cta__cta-text {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 300;
    padding: 0;
    border-radius: 4px;
    background: none;
}

/* ── Sidebar contact CTA variant ── */
.cta.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: color .2s;
    text-decoration: none;
    padding: 0;
    background-color: unset;
    overflow: visible;
}

/* ── Readmore links ── */
p.readmore {
    margin-top: auto;
    margin-bottom: 0;
    text-align: end;
}

.readmore a {
    color: var(--color-primary);
}

.readmore a::after {
    content: '➝';
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1;
}

.readmore a:hover::after {
    transform: translateX(4px);
}


/* ============================================================
   14. INTRO SECTION
   ============================================================ */
.main.no-card {
    padding: var(--space-l) 0;
}

.main.no-card + .main.no-card {
    border-top: 1px solid var(--color-border);
}

.intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    align-items: center;
    padding: 0 0 var(--space-l);
}

.intro__grid p.intro__label {
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 var(--space-s);
}

.intro__grid h2 {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-ink);
    margin: 0 0 var(--space-m);
}

.intro__grid p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(27, 31, 43, .7);
}

.intro__image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .intro__grid {
        grid-template-columns: 1fr;
        gap: var(--space-m);
    }

    .main.no-card {
        padding: var(--space-m) 0;
    }

    .intro__image img {
        height: 240px;
    }
}


/* ============================================================
   15. PILLAR SECTIONS
   ============================================================ */
.pillar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    align-items: center;
}

.pillar .pillar__visual {
    position: relative;
}

.main.no-card:nth-child(odd) .pillar .pillar__visual {
    order: -1;
}

.pillar__num {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: 2.8rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(0, 96, 42, .2);
    line-height: 1;
    margin: 0 0 0.1em;
}

.pillar__text h3 {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-ink);
    margin: 0 0 var(--space-s);
}

.pillar__text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(27, 31, 43, .7);
}

.pillar__visual::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    z-index: 2;
}

.pillar__visual img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .pillar {
        grid-template-columns: 1fr;
        gap: var(--space-m);
    }

    .pillar__visual {
        order: -1;
    }

    .pillar__visual img {
        height: 240px;
    }
}


/* ============================================================
   16. CAPABILITIES GRID
   ============================================================ */
.capabilities {
    padding: 0 0 var(--space-xl);
}

.capabilities__header {
    text-align: center;
    margin-bottom: var(--space-l);
}

.capabilities__header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.capabilities__header p {
    font-size: 1rem;
    color: var(--color-muted);
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.65;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
}

.cap-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-m);
    position: relative;
    transition: box-shadow .3s, transform .25s;
}

.cap-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
    transform: translateY(-2px);
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 4px 4px 0 0;
}

.cap-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 96, 42, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-s);
    color: var(--color-primary);
}

.cap-card__icon i {
    font-size: 1.9rem;
}

.cap-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
}

.cap-card p {
    font-size: .9rem;
    color: var(--color-muted);
    line-height: 1.65;
}

@media (max-width: 52rem) {
    .cap-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 36rem) {
    .cap-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   17. STATS BAND
   ============================================================ */
.stats {
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-l) 0;
}

.stats-band__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--space-m);
    text-align: center;
}

.stats-band__item {
    text-align: center;
}

.stats-band__item strong {
    display: block;
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: .25rem;
}

.stats-band__item span {
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .8;
}

@media (max-width: 42rem) {
    .stats-band__grid {
        grid-template-columns: 1fr;
        gap: var(--space-s);
    }
}


/* ============================================================
   18. LATEST NEWS CARDS (Homepage)
   ============================================================ */

/* ── Section wrapper ── */
.container-bottom-b .bottom-b {
    padding: var(--space-l) 0;
}

.bottom-b__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 var(--space-m);
}

.bottom-b__header h3 {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--color-ink);
    margin: 0;
}

.bottom-b__viewall {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    white-space: nowrap;
}

.bottom-b__viewall:hover {
    text-decoration: underline;
}

/* Fallback h3 rendered by Joomla module wrapper */
.container-bottom-b .bottom-b > h3 {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--color-ink);
    margin: 0 0 var(--space-m);
}

/* ── Card grid ── */
.news-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-m);
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Individual card ── */
.news-card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    background: var(--color-surface);
    border-radius: 4px;
    overflow: hidden;
    min-height: 200px;
    border: 1px solid var(--color-border);
}

/* ── Card image ── */
.news-card__image-link {
    display: block;
    line-height: 0;
}

.news-card__image {
    margin: 0;
    height: 100%;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 2 / 1;
    object-position: 50% 85%;
}

/* ── Card body ── */
.news-card__body {
    display: flex;
    flex-direction: column;
    padding: var(--space-m);
}

/* ── Category label ── */
.news-card__category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 var(--space-xs);
}

.news-card__category a {
    color: inherit;
    text-decoration: none;
}

.news-card__category a:hover {
    text-decoration: underline;
}

/* ── Title ── */
.news-card__title {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-ink);
    margin: 0;
}

.news-card__title-link {
    color: inherit;
    text-decoration: none;
}

.news-card__title-link:hover {
    color: var(--color-primary);
}

/* ── Read more ── */
.news-card__readmore {
    margin-top: auto;
    padding-top: var(--space-s);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.news-card__readmore:hover {
    text-decoration: underline;
}

/* ── News cards responsive ── */
@media (max-width: 768px) {
    .news-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card__image img {
        height: 200px;
    }
}


/* ============================================================
   19. NEWS BLOG — LEADING ITEMS
   ============================================================ */
.com-content-category-blog__items.blog-items.items-leading {
    padding: var(--space-l) 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m);
}

/* Leading card */
.com-content-category-blog__items.blog-items.items-leading
    > .com-content-category-blog__item.blog-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .3s;
    display: flex;
    flex-direction: column;
}

.com-content-category-blog__items.blog-items.items-leading
    > .com-content-category-blog__item.blog-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

/* Image block */
.com-content-category-blog__items.blog-items.items-leading
    > .com-content-category-blog__item.blog-item
    figure.item-image {
    position: relative;
    margin: 0;
    overflow: hidden;
}

/* Kill Joomla alignment floats */
.com-content-category-blog__items.blog-items.items-leading
    > .com-content-category-blog__item.blog-item
    figure.item-image.left,
.com-content-category-blog__items.blog-items.items-leading
    > .com-content-category-blog__item.blog-item
    figure.item-image.center {
    float: none;
}

.com-content-category-blog__items.blog-items.items-leading
    > .com-content-category-blog__item.blog-item
    figure.item-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.com-content-category-blog__items.blog-items.items-leading
    > .com-content-category-blog__item.blog-item:hover
    figure.item-image img {
    transform: scale(1.03);
}

/* Green bar */
.com-content-category-blog__items.blog-items.items-leading
    > .com-content-category-blog__item.blog-item
    figure.item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    z-index: 2;
}

/* Body */
.com-content-category-blog__items.blog-items.items-leading
    > .com-content-category-blog__item.blog-item
    .item-content {
    padding: var(--space-s) var(--space-m) var(--space-m);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

/* Title */
.com-content-category-blog__items.blog-items.items-leading
    .page-header h2 {
    margin: 0 0 var(--space-s);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-ink);
    text-wrap: pretty;
}

.com-content-category-blog__items.blog-items.items-leading
    .page-header h2 a {
    color: inherit;
    transition: color .2s;
    text-decoration: none;
}

.com-content-category-blog__items.blog-items.items-leading
    .page-header h2 a:hover {
    color: var(--color-primary);
}

/* Date */
.com-content-category-blog__items.blog-items.items-leading
    dl.article-info {
    margin: 0 0 var(--space-xs);
}

.com-content-category-blog__items.blog-items.items-leading
    dl.article-info dd.published {
    margin: 0 0 var(--space-xs);
    font-size: .72rem;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-muted);
}

/* Readmore */
.com-content-category-blog__items.blog-items.items-leading
    p.readmore {
    margin: auto 0 0;
}

.com-content-category-blog__items.blog-items.items-leading
    p.readmore a::after {
    content: '➝';
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.com-content-category-blog__items.blog-items.items-leading
    p.readmore a:hover::after {
    transform: translateX(4px);
}

@media (max-width: 42rem) {
    .com-content-category-blog__items.blog-items.items-leading {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   20. NEWS BLOG — LIST ITEMS
   ============================================================ */
.blog-items:not(.items-leading) {
    padding: var(--space-l) 0 var(--space-xl);
    max-width: 1100px;
    border-top: 1px solid var(--color-border);
    margin: var(--space-l) auto;
}

.blog-items:not(.items-leading) .blog-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-m);
    align-items: start;
    padding: var(--space-m) 0;
    border-bottom: 1px solid var(--color-border);
    overflow: visible;
}

.blog-items:not(.items-leading) .blog-item:first-child {
    padding-top: 0;
}

.blog-items:not(.items-leading) .blog-item:last-child {
    border-bottom: none;
}

/* Neutralise Joomla's float on the figure */
.blog-items:not(.items-leading) .item-image {
    float: none;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin: 0;
}

.blog-items:not(.items-leading) .item-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.blog-items:not(.items-leading) .blog-item:hover .item-image img {
    transform: scale(1.03);
}

.blog-items:not(.items-leading) .item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    z-index: 2;
}

.blog-items:not(.items-leading) .item-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-items:not(.items-leading) .article-info {
    font-size: .72rem;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-muted);
    margin-bottom: var(--space-xs);
    list-style: none;
    padding: 0;
}

.blog-items:not(.items-leading) .page-header h2 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-ink);
    margin-bottom: var(--space-xs);
}

.blog-items:not(.items-leading) .page-header h2 a {
    color: inherit;
    transition: color .2s;
}

@media (max-width: 36rem) {
    .blog-items:not(.items-leading) .blog-item {
        grid-template-columns: 1fr;
        gap: var(--space-s);
    }

    .blog-items:not(.items-leading) .item-image img {
        aspect-ratio: 16 / 9;
    }
}


/* ============================================================
   21. NEWS ARTICLE (Single)
   ============================================================ */
.news-article {
    padding: var(--space-l) var(--space-l) var(--space-l) 0;
    margin-top: 0;
}

@media (width <= 991.64px) {
    .news-article {
        padding-right: 0;
    }
}

/* ── Reorder header elements ── */
.news-article .com-content-article {
    display: flex;
    flex-direction: column;
}

.news-article .article-info {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: baseline;
    margin: 0;
    padding: 0;
    border: none;
}

.news-article .article-header {
    order: 2;
    margin-bottom: var(--space-xs);
}

.news-article .article-layout {
    order: 3;
    padding-top: var(--space-m);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-s);
}

/* ── Title ── */
.news-article .article-header__title {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-ink);
    margin: 0;
    text-wrap: pretty;
}

/* ── Meta info ── */
.news-article .article-info .article-info-term {
    display: none;
}

.news-article .article-info .icon-folder-open,
.news-article .article-info .icon-calendar {
    display: none;
}

.news-article .article-info .category-name {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--color-primary);
}

.news-article .article-info .category-name a {
    color: inherit;
    text-decoration: none;
}

.news-article .article-info .category-name a:hover {
    color: var(--color-accent);
}

.news-article .article-info .published {
    font-size: .75rem;
    font-weight: 400;
    color: var(--color-muted);
    letter-spacing: .04em;
}

/* ── Article image ── */
.article-layout__body-image {
    float: none !important;
    margin: 0 0 var(--space-m) 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.article-layout__body-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.article-layout__body-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    pointer-events: none;
}

.article-layout__body-image figcaption {
    padding: .6rem var(--space-s);
    color: var(--color-muted);
    font-style: italic;
    background: var(--color-surface);
}

/* Float variants */
.article-layout__body-image.left {
    float: left !important;
    width: 430px;
    margin: 0 var(--space-m) var(--space-m) 0;
}

.article-layout__body-image.left img {
    width: 100%;
    max-height: none;
    object-fit: cover;
}

.article-layout__body-image.right {
    float: right !important;
    width: 430px;
    margin: 0 0 var(--space-m) var(--space-m);
}

.article-layout__body-image.right img {
    width: 100%;
    max-height: none;
    object-fit: cover;
}

@media (max-width: 36rem) {
    .article-layout__body-image.left,
    .article-layout__body-image.right {
        float: none !important;
        width: 100%;
        margin: 0 0 var(--space-m) 0;
    }
}

/* ── Body text ── */
.article-layout__body_intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-m);
}

.article-layout__body_full p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-s);
}

.article-layout__body_intro a,
.article-layout__body_full a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 96, 42, .3);
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    transition: color .2s, text-decoration-color .2s;
}

.article-layout__body_intro a:hover,
.article-layout__body_full a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

/* Inline images within article body */
.article-layout__body_full .item-image,
.article-layout__body_intro .item-image {
    margin: var(--space-m) 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.article-layout__body_full .item-image img,
.article-layout__body_intro .item-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.article-layout__body_full .item-image figcaption,
.article-layout__body_intro .item-image figcaption {
    padding: .5rem var(--space-s);
    font-size: .78rem;
    color: var(--color-muted);
    font-style: italic;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

/* Headings within body */
.article-layout__body_full h2,
.article-layout__body_intro h2 {
    margin: var(--space-m) 0 var(--space-s);
}

.article-layout__body_full h3,
.article-layout__body_intro h3 {
    margin: var(--space-s) 0;
}


/* ============================================================
   22. NEWS SIDEBAR & RELATED ITEMS
   ============================================================ */

/* ── Sticky sidebar ── */
.sticky-sidebar {
    position: sticky;
    top: calc(52px + var(--space-m));
    padding-top: 271px;
    padding-bottom: var(--space-l);
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

/* ── Sidebar card ── */
.news-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.news-sidebar h3 {
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--color-muted);
    padding: .75rem var(--space-s);
    border-bottom: 1px solid var(--color-border);
    background: rgba(27, 31, 43, .025);
    margin: 0;
}

.news-sidebar p {
    font-size: .875rem;
    line-height: 1.65;
    color: rgba(27, 31, 43, .7);
    margin-bottom: var(--space-s);
}

.news-sidebar.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.news-sidebar .card-header {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: var(--space-s);
    margin: 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
}

.news-sidebar .card-body {
    padding: var(--space-s);
}

.news-sidebar .card-body p {
    font-size: .88rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: var(--space-s);
}

/* ── Related items list ── */
.news-sidebar .relateditems {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar .relateditems li {
    border-bottom: 1px solid var(--color-border);
}

.news-sidebar .relateditems li:last-child {
    border-bottom: none;
}

.news-sidebar .relateditems li a {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-xs);
    align-items: center;
    padding: 5px;
    text-decoration: none;
    transition: background .2s;
}

.news-sidebar .relateditems li a:hover {
    background: rgba(0, 96, 42, .03);
}

.news-sidebar .relateditems li a img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.news-sidebar .relateditems__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.news-sidebar .relateditems__text time {
    font-size: .68rem;
    font-weight: 500;
    color: var(--color-muted);
    letter-spacing: .04em;
}

.news-sidebar .relateditems__text span {
    font-size: .82rem;
    color: var(--color-ink);
    line-height: 1.35;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-sidebar .relateditems li a:hover .relateditems__text span {
    color: var(--color-primary);
}


/* ============================================================
   23. CTA BANNER
   ============================================================ */
.cta-banner {
    padding: var(--space-m) 0;
    text-align: center;
}

.cta-banner p {
    font-size: 1.05rem;
    color: var(--color-muted);
    max-width: 520px;
    margin-inline: auto;
    margin-bottom: var(--space-m);
    line-height: 1.65;
}

.container-bottom-a.full-width {
    border-top: 1px solid var(--color-border);
}


/* ============================================================
   24. TEAM GRID
   ============================================================ */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    max-width: 1200px;
    margin-inline: auto;
}

.team-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .3s;
}

.team-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

.team-card__image {
    position: relative;
    overflow: hidden;
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    z-index: 2;
}

.team-card__body {
    padding: var(--space-s) var(--space-m) var(--space-s) var(--space-s);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.team-card__name {
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-ink);
    margin-bottom: .15rem;
}

.team-card__role {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-primary);
    line-height: 1.35;
    margin-bottom: var(--space-s);
}

.team-card__bio {
    font-size: .9rem;
    color: rgba(27, 31, 43, .7);
    line-height: 1.65;
    flex: 1;
}

.team-card__email {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: 1rem;
    font-weight: 450;
    color: var(--color-primary);
    margin-top: var(--space-s);
    transition: color .2s;
    flex-grow: 0;
}

.team-card__email:hover {
    color: var(--color-primary);
}

.team-card__email i {
    font-size: 1.3rem;
}

@media (max-width: 36rem) {
    .team-card {
        grid-template-columns: 1fr;
    }

    .team-card__image {
        aspect-ratio: 4 / 3;
    }

    .team-card__image::after {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 3px;
    }

    .team-card__body {
        padding: var(--space-s);
    }
}


/* ============================================================
   25. FACILITIES & GALLERY (Homepage strip)
   ============================================================ */
.facilities-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    padding-top: var(--space-l);
}

.facilities-gallery > :nth-child(3) {
    flex-basis: 100%;
}

.facilities-gallery h2 {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    margin: 0;
}

.facilities-gallery > a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: color .2s;
}

.facilities-gallery > a:hover {
    color: var(--color-accent);
}

.facilities-gallery .mod-custom {
    width: 100%;
}

/* ── Mosaic grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-s);
    margin: var(--space-l) 0;
    height: 550px;
}

.gallery-grid__item {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.gallery-grid__item:hover img {
    transform: scale(1.03);
}

/* Focus ring for gallery items */
.gallery-grid__item:focus-within::after {
    content: "";
    position: absolute;
    inset: 0;
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    pointer-events: none;
    box-sizing: border-box;
}

/* First image: large, spanning both rows */
.gallery-grid__item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Second image: top right */
.gallery-grid__item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Third image: next to second */
.gallery-grid__item:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

/* Fourth image: spans below second and third */
.gallery-grid__item:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
}

@media (max-width: 42rem) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-grid__item:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gallery-grid__item:nth-child(2),
    .gallery-grid__item:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-grid__item:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}


/* ============================================================
   26. GALLERY PAGE (Full)
   ============================================================ */
.gallery-page__header {
    margin: var(--space-l) 0;
}

.gallery-page__kicker {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.gallery-page__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-ink);
    margin-bottom: var(--space-xs);
}

.gallery-page__sub {
    font-size: 1rem;
    color: var(--color-muted);
    max-width: 520px;
    line-height: 1.65;
}

/* ── Full gallery grid (masonry-style) ── */
.gallery-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: var(--space-s);
}

.gallery-full__item {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.gallery-full__item a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.gallery-full__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.gallery-full__item:hover img {
    transform: scale(1.04);
}

.gallery-full__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 16, 0);
    transition: background .3s;
    pointer-events: none;
}

.gallery-full__item:hover::after {
    background: rgba(0, 38, 16, .12);
}

/* Varied sizes using nth-child pattern */
.gallery-full__item:nth-child(6n+1) {
    grid-row: span 2;
}

.gallery-full__item:nth-child(6n+4) {
    grid-column: span 2;
}

.gallery-full__item:nth-child(12n+7) {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 52rem) {
    .gallery-full {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
}

@media (max-width: 36rem) {
    .gallery-full {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .gallery-full__item:nth-child(12n+7) {
        grid-column: span 1;
        grid-row: span 2;
    }
}


/* ============================================================
   27. CONTACT PAGE
   ============================================================ */

/* ── Hidden captcha label ── */
#jform_captcha-lbl {
    display: none;
}

/* ── Two-column grid ── */
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--space-l);
    align-items: start;
}

@media (max-width: 52rem) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Contact info (left column) ── */
.contact-info {
    position: sticky;
    top: calc(72px + var(--space-m));
}

.contact-info__label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.contact-info h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-ink);
    margin-bottom: var(--space-m);
}

.contact-info__item {
    display: flex;
    gap: var(--space-s);
    align-items: flex-start;
    padding: var(--space-s) 0;
    border-top: 1px solid var(--color-border);
}

.contact-info__item:last-of-type {
    border-bottom: 1px solid var(--color-border);
}

.contact-info__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 96, 42, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-info__icon i {
    font-size: 1.2rem;
}

.contact-info__detail h3 {
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-muted);
    margin-bottom: .3rem;
}

.contact-info__detail p {
    font-size: .95rem;
    line-height: 1.55;
    color: var(--color-ink);
    margin: 0;
}

.contact-info__detail a {
    color: var(--color-primary);
    transition: color .2s;
}

.contact-info__detail a:hover {
    color: var(--color-accent);
}

/* ── Contact form wrapper (right column) ── */
.contact-form-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-m);
    position: relative;
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 4px 4px 0 0;
}

.contact-form-wrap h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.contact-form-wrap > p {
    font-size: .9rem;
    color: var(--color-muted);
    margin-bottom: var(--space-m);
    line-height: 1.6;
}

/* ── Form field grid ── */
.contact-form__fields {
    border: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-s);
}

.contact-form__fields legend,
.contact-form__fields .field-spacer {
    display: none;
}

.contact-form__fields .control-group:nth-child(n+4) {
    grid-column: 1 / -1;
}

.contact-form .control-group {
    margin-bottom: var(--space-s);
}

@media (max-width: 36rem) {
    .contact-form__fields {
        grid-template-columns: 1fr;
    }

    .contact-form__fields .control-group:nth-child(n+4) {
        grid-column: auto;
    }
}

/* ── Labels ── */
.contact-form .control-label label {
    display: block;
    font-size: .8rem;
    font-weight: 550;
    letter-spacing: .02em;
    color: var(--color-ink);
    margin-bottom: .35rem;
}

/* ── Inputs and textarea ── */
.contact-form .form-control {
    width: 100%;
    padding: .7rem .9rem;
    font-size: .9rem;
    font-weight: 350;
    color: var(--color-ink);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color .2s, box-shadow .2s;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 96, 42, .12);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 160px;
}

/* ── Validation error state ── */
.contact-form .form-control.invalid,
.contact-form .form-control-danger {
    border-color: #c0392b;
}

.contact-form .form-control.invalid:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}

.contact-form .form-control-feedback {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: #c0392b;
    margin-top: .25rem;
}

/* ── Submit button ── */
.contact-form__submit {
    margin-top: var(--space-xs);
}

/* ── Directions section ── */
.directions {
    padding: var(--space-l) 0 var(--space-xl);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-l);
}

.directions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    align-items: center;
}

@media (max-width: 52rem) {
    .directions__grid {
        grid-template-columns: 1fr;
    }
}

.directions__map {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-border);
}

.directions__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.directions__map::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 4px;
    pointer-events: none;
}

.directions__text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: var(--space-s);
}

.directions__text p {
    font-size: .975rem;
    color: rgba(27, 31, 43, .7);
    line-height: 1.75;
}


/* ============================================================
   28. SITEMAP / ITEM-PAGE
   ============================================================ */
.item-page .page-header h1 {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-ink);
    margin-bottom: var(--space-m);
}

.item-page .com-content-article__body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 480px;
    padding-bottom: var(--space-l);
}

.item-page .com-content-article__body ul li {
    border-bottom: 1px solid var(--color-border);
}

.item-page .com-content-article__body ul li a {
    display: block;
    padding: var(--space-s) 0;
    font-size: .95rem;
    font-weight: 450;
    color: var(--color-ink);
    transition: color .2s;
    text-decoration: none;
}

.item-page .com-content-article__body ul li a:hover {
    color: var(--color-primary);
}


/* ============================================================
   29. 404 ERROR PAGE
   ============================================================ */
body.error_site .error-page__code {
    font-family: var(--cassiopeia-font-family-headings);
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: var(--color-primary);
    opacity: .12;
    margin-bottom: -.5em;
    display: block;
    user-select: none;
}

body.error_site main {
    padding: var(--space-l) 0 var(--space-xl);
    max-width: 640px;
}

body.error_site main p {
    font-size: .95rem;
    color: rgba(27, 31, 43, .65);
    line-height: 1.7;
    margin-bottom: var(--space-s);
}

body.error_site .error-page__reasons {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-m);
}

body.error_site .error-page__reasons li {
    font-size: .875rem;
    color: rgba(27, 31, 43, .6);
    padding: .35rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: .6rem;
}

body.error_site .error-page__reasons li:last-child {
    border-bottom: none;
}

body.error_site .error-page__reasons li::before {
    content: '—';
    color: var(--color-accent);
    font-weight: 600;
    flex-shrink: 0;
}

body.error_site blockquote {
    padding: var(--space-s) var(--space-m);
    background: var(--color-surface);
    border-left: 3px solid var(--color-border);
    border-radius: 0 4px 4px 0;
    font-size: .925rem;
    font-family: 'Courier New', monospace;
    color: rgba(27, 31, 43, .65);
    margin-top: var(--space-s);
}


/* ============================================================
   30. FOOTER
   ============================================================ */
footer.footer {
    color: rgba(255, 255, 255, .7);
    background-color: var(--color-ink);
    background-image: linear-gradient(135deg, var(--color-ink) 0%, color-mix(in srgb, var(--color-ink), white 15%) 100%);
    margin-top: 1em;
}

.footer .grid-child {
    align-items: flex-start;
    gap: var(--space-s);
    padding: 2.5rem 0 .8rem 0;
}

/* ── Footer brand ── */
a.footer-brand:first-child {
    font-family: var(--cassiopeia-font-family-headings);
    letter-spacing: -.01em;
    color: #fff;
    white-space: nowrap;
    font-weight: 600;
    line-height: 1.2;
}

footer .footer-brand {
    text-decoration: none;
}

.container-footer p.footer-brand-text {
    font-size: .9rem;
    line-height: 1.6;
    max-width: 310px;
    margin-top: var(--space-s);
}

a.footer-brand .site-description {
    color: rgba(27, 31, 43, .7);
    white-space: normal;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: .18em;
}

/* ── Footer titles ── */
footer.footer .footer-title {
    color: #fff;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: var(--space-s);
}

/* ── Footer navigation ── */
footer.footer ul li {
    /*margin-bottom: 0.6rem;*/
}

footer.footer .nav-item a {
    font-weight: 400;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .7);
    position: relative;
    transition: color .2s;
}

footer.footer #quicklinks-menu .nav-item a {
    padding: .25rem .8rem .25rem 0;
    font-size: .9rem;
}

footer.footer .mod-menu .nav-item.active a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

footer.footer .nav-item a:hover {
    color: #fff;
    text-decoration: none;
}

footer.footer #user-menu .mod-menu__separator {
    font-size: 1.8rem;
    line-height: 0.75;
}

footer .mod-footer .footer1 {
    font-size: .78rem;
}

/* ── Footer contact block ── */
.footer__contact-title {
    font-weight: 600;
    margin-bottom: .4rem;
}

.footer__contact-address {
    font-style: normal;
    line-height: 1.5;
    margin: 0 0 .6rem;
}

.footer__contact-cta a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 300;
}

/* ── Footer bottom bar ── */
.container-footer.footer .footer-bottom-border {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: var(--space-s);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: .78rem;
}

.footer-bottom .mod-menu {
    flex-direction: row;
}

footer.footer .footer-bottom .nav-item a {
    padding: 0;
    margin-bottom: 0;
    font-size: .78rem;
}

/* ── Footer responsive ── */
@media (width <= 991.98px) {
    .footer .grid-child {
        flex-direction: row;
    }
}

@media (width <= 799.98px) {
    .footer .grid-child {
        flex-direction: column;
    }
}


/* ============================================================
   31. BACK TO TOP
   ============================================================ */
#back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    text-decoration: none;
    border: none;
}

#back-top:hover {
    transform: translateY(-3px);
    border: none;
}