
@import url('./lightbox.css');

/* ── Reset & Variables ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #5198d4;
  --accent: #1698cd;
  --accent-light: #d0e4f5;
  --accent-dark: #2e6da4;
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #737373;
  --surface: #ffffff;
  --surface-alt: #f6f8fa;
  --surface-raised: #ffffff;
  --border: #e2e5e9;
  --border-light: #eef0f3;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --max-width: 900px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

img {
  display: block;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
}

input, textarea, select {
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.25s ease;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* ==========================================================================
   THEME.CSS — Public-facing page styles
   ==========================================================================

   All visual styles for the public site, extracted from Vue component
   <style scoped> blocks. Each section documents its source component.

   Source components:
     views/PublicPage.vue                    — Page layout, loading/error states, article detail
     components/public/SiteHeader.vue        — Sticky header, nav, language selector, mobile menu
     components/public/HeroBanner.vue        — Hero banner with image/texture background
     components/public/ContentBlocks.vue     — Block rendering (headings, text, quotes, lists, images, iframes, dividers)
     components/public/SubPagesGrid.vue      — Sub-page card grid
     components/public/NewsListBlock.vue     — News list wrapper with loading state
     components/public/NewsCard.vue          — Individual news/event card
     components/public/GalleryBlock.vue      — Photo gallery (grid + columns layouts, lightbox)
     components/public/SiteFooter.vue        — Dark footer with contact, nav, legal links

   Shared / consolidated:
     Cards          — .subpage-card / .news-card share base card + cover styles
     Lightbox       — ContentBlocks + GalleryBlock share close button & transitions
     Loading        — Spinner keyframes + .loading-pulse defined once
   ========================================================================== */


/* --------------------------------------------------------------------------
   PublicPage.vue — page layout, loading / error states
   -------------------------------------------------------------------------- */

.page-content {
  min-height: 50vh;
}

.page-content.article-layout {
  max-width: 740px;
}

.page-content > .loading-state {
  padding: 6rem 0;
}

.error-state {
  text-align: center;
  padding: 6rem 0;
}

.error-state h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.error-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.back-link {
  font-weight: 500;
}


/* --------------------------------------------------------------------------
   PublicPage.vue — article detail view
   -------------------------------------------------------------------------- */

.article-content {
  padding: 2.5rem 0 4rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: var(--accent-light);
  color: var(--accent-dark);
}

.article-type.event {
  background: #fdf0e2;
  color: #7a4d0a;
}

.article-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: #f0f0f0;
  color: #444;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.event-banner {
  padding: 0.85rem 1.25rem;
  background: #fdf8f0;
  border: 1px solid #f0dfc0;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: #614a1f;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.article-content .back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.92rem;
}


/* --------------------------------------------------------------------------
   SiteHeader.vue — sticky header, navigation, language selector, mobile menu
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-inner.container {
  max-width: calc(1.3 * var(--max-width));
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-selector {
  position: relative;
  margin-right: 0.5rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-toggle:hover {
  opacity: 0.85;
}

.lang-flag {
  font-size: 0.85em;
}

.lang-code {
}

.lang-name {
}

.lang-toggle .lang-name {
  display: none;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 4px;
  z-index: 100;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-align: left;
}

.lang-option.active {
  background: var(--accent);
  color: #fff;
}

.lang-option:hover:not(.active) {
  background: var(--surface-alt);
  color: var(--accent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-mark {
  line-height: 0;
  position: absolute;
  left: -120px;
}

.logo-mark img {
  width: 100px;
}

@media (max-width: 1300px) {
  .logo-mark {
    display: none;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  position: relative;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.logo-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .nav-link { padding: 0.5rem 0.6rem; }
}

@media (max-width: 900px) {
  .nav-link { padding: 0.5rem 0.3rem; }
}

@media (max-width: 830px) {
  .nav-link { padding: 0.5rem 0.2rem; }
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* Header dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.35rem 0;
  z-index: 200;
}

.nav-item.has-children:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  color: var(--accent);
  background: var(--surface-alt);
}

/* Header mobile menu toggle */
.site-header .menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.site-header .menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 1px;
}

.site-header .menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.site-header .menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.site-header .menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .site-header .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    gap: 0;
    align-items: stretch;
  }

  .main-nav.open {
    top: 72px;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-dropdown {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .nav-dropdown-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}


/* --------------------------------------------------------------------------
   HeroBanner.vue — hero banner with image or texture background
   -------------------------------------------------------------------------- */

.hero-banner {
  position: relative;
  background: #111;
  color: #fff;
  overflow: hidden;
  padding: 5rem 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.hero-banner.has-image {
  padding: 9rem 0;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.banner-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(81, 152, 212, 0.12) 0%, transparent 60%),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.015) 40px,
      rgba(255, 255, 255, 0.015) 41px
    );
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.banner-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.has-image .banner-heading {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.banner-subheading {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-weight: 300;
}

.has-image .banner-subheading {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}


/* --------------------------------------------------------------------------
   ContentBlocks.vue — block rendering (headings, text, quotes, lists,
                       images, iframes, dividers)
   -------------------------------------------------------------------------- */

.content-blocks {
  padding: 2.5rem 0 4rem;
}

.content-blocks > *:first-child {
  margin-top: 0 !important;
}

.block-h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  color: var(--text-primary);
  text-align: center;
}

.block-h3 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: var(--text-primary);
  text-align: center;
}

.block-h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.block-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.block-text p             { margin: 0 0 0.6em; }
.block-text p:last-child  { margin-bottom: 0; }
.block-text a             { color: var(--accent); text-decoration: underline; }
.block-text ul,
.block-text ol            { padding-left: 1.5rem; margin: 0.5em 0; }
.block-text blockquote    { border-left: 3px solid var(--accent); margin: 0.8em 0; padding-left: 1rem; color: var(--text-muted); }
.block-text hr            { border: none; height: 1px; background: var(--border); margin: 1.5em 0; }
.block-text h3            { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; margin: 1.2em 0 0.5em; }
.block-text h4            { font-size: 1.05rem; font-weight: 600; margin: 1em 0 0.4em; }

.block-quote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.block-quote p {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
}

.block-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--text-muted);
}

.block-list {
  margin: 1.25rem 0;
  padding-left: 0;
  list-style: none;
}

.block-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.block-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.block-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

.block-iframe {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.block-iframe iframe {
  display: block;
  width: 100%;
  border: none;
}

.block-image {
  margin: 2rem 0;
}

.block-image img {
  border-radius: var(--radius);
  width: 100%;
}

.block-image-clickable {
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.block-image-clickable:hover {
  opacity: 0.92;
}

.block-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}


/* --------------------------------------------------------------------------
   SubPagesGrid.vue + NewsCard.vue — shared card styles
   -------------------------------------------------------------------------- */

.subpages-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.subpages-grid {
  margin: 2rem 0;
}

.subpage-card,
.news-card {
  display: block;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
  overflow: hidden;
}

.subpage-card:hover,
.news-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-cover {
  width: calc(100% + 4rem);
  height: 250px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  margin: -2rem 0 1.25rem -2rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.card-tagline,
.card-excerpt {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.card-read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}


/* --------------------------------------------------------------------------
   NewsListBlock.vue — news list wrapper
   -------------------------------------------------------------------------- */

.news-list-block {
  margin: 2rem 0;
}

.news-list-block .loading-state {
  padding: 3rem 0;
}

.news-grid .empty-state {
  color: var(--text-muted);
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
}


/* --------------------------------------------------------------------------
   NewsCard.vue — news/event card extras (meta badges, event date)
   -------------------------------------------------------------------------- */

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  display: none;
}

.card-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: var(--accent-light);
  color: var(--accent-dark);
}

.card-type.event {
  background: #fdf0e2;
  color: #7a4d0a;
}

.card-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: #f0f0f0;
  color: #444;
}

.card-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-event-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}


/* --------------------------------------------------------------------------
   GalleryBlock.vue — grid layout
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}

.gallery-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: #f0f0f0;
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-item-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
}


/* --------------------------------------------------------------------------
   GalleryBlock.vue — columns (masonry) layout
   -------------------------------------------------------------------------- */

.gallery-columns {
  columns: 100px 3;
  column-gap: 0.75rem;
  margin:0 0 2rem 0;
}

.gallery-column-item {
  position: relative;
  break-inside: avoid;
  overflow: hidden;
  cursor: zoom-in;  
}

.gallery-column-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
  margin-bottom: 0.75rem;
}

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

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
  }

  .gallery-columns {
    columns: 2 140px;
    column-gap: 0.5rem;
  }
}


/* --------------------------------------------------------------------------
   SiteFooter.vue — dark footer with contact, nav, legal links
   -------------------------------------------------------------------------- */

.site-footer {
  background: #232323;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact h4,
.footer-links h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

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

.footer-address {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-nav-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav-link:hover {
  color: var(--accent);
}

.footer-nav-child {
  padding-left: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.legal-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--transition);
}

.legal-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.admin-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color var(--transition);
}

.admin-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}




/* --------------------------------------------------------------------------
   Shared — loading spinner
   -------------------------------------------------------------------------- */

.loading-state {
  display: flex;
  justify-content: center;
}

.loading-pulse {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

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


/* --------------------------------------------------------------------------
   Accessibility — skip link, focus styles, reduced motion
   -------------------------------------------------------------------------- */

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  overflow: visible;
}

/* Focus-visible outlines for keyboard navigation */
.gallery-grid-item:focus-visible,
.gallery-column-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.subpage-card:focus-visible,
.news-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Suppress focus outline on main content (only used for programmatic focus) */
#main-content:focus {
  outline: none;
}

/* Reduced motion: disable animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .loading-pulse {
    animation: none;
    border-top-color: var(--accent);
    opacity: 0.6;
  }

  .gallery-grid-item img,
  .gallery-column-item img {
    transition: none;
  }
}

