/*styles.css*/
:root {
  --primary: #8f0f0f;
  --primary-2: #b71c1c;
  --ink: #0f1115;
  --muted: #6b7280;
  --bg: #ffffff;
  --bgcard: #e1dddd;
  --bgsection-alt: #fafafa;

  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

  --header-height: 55px;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

[id].section {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
}

.section:target {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.donate-intro {
  display: flow-root;
  min-height: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e5e7eb;
    --bg: #0b0d11;
    --bgcard: #141820;
    --bgsection-alt: #0f131a;
    --muted: #94a3b8;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--sticky-offset, 0px) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.section {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
  padding: clamp(60px, 8vw, 100px) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 0;
  position: relative;
  z-index: 30;
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.language-selector {
  position: relative;
  display: inline-block;
}

.language-selector button#language-dropdown-toggle {
  background: none;
  border: none;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.language-selector button#language-dropdown-toggle:hover,
.language-selector button#language-dropdown-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.2);
}
.language-selector button#language-dropdown-toggle .icon {
  font-size: 1.1em;
}

.language-selector ul#language-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bgcard);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 160px;
  z-index: 100;
  margin-top: 8px;
}
.language-selector ul#language-dropdown[hidden] {
  display: none;
}

.language-selector ul#language-dropdown li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.language-selector ul#language-dropdown li:last-child {
  border-bottom: none;
}

.language-selector ul#language-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.language-selector ul#language-dropdown a:hover,
.language-selector ul#language-dropdown a:focus {
  background: var(--primary);
  color: #fff;
}
.language-selector ul#language-dropdown a.active {
  background: var(--primary-2);
  color: #fff;
  font-weight: 600;
}
.language-selector ul#language-dropdown a .flag-icon {
  width: 20px;
  height: auto;
  border-radius: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
}

.header-grid {
  position: relative;
  align-items: center;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand img {
  height: 60px;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.brand .brand-text {
  line-height: 1.2;
}
.brand .brand-text strong {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
}
.brand .brand-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav,
body.nav-open .nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  background: var(--bgcard);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 6px;
  min-width: 220px;
  z-index: 60;
  flex-direction: column;
}

.nav a,
body.nav-open .nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.nav a:last-child,
body.nav-open .nav a:last-child {
  border-bottom: none;
}

.nav a:hover,
.nav a:focus,
body.nav-open .nav a:hover,
body.nav-open .nav a:focus {
  background: var(--primary);
  color: #fff;
}
.nav a.active,
body.nav-open .nav a.active {
  background: var(--primary-2);
  color: #fff;
  font-weight: 600;
}

.language-selector ul#language-dropdown a .flag-icon,
.nav a .flag-icon,
.nav a img.icon,
.nav a svg {
  width: 20px;
  height: auto;
  border-radius: 3px;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}

.nav-toggle {
  display: block;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  margin: 0;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  line-height: 1;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.12s ease;
}
.nav-toggle:hover,
.nav-toggle:focus {
  background: var(--primary);
  color: #fff;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 10px;
}

a,
button {
  outline: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 4px;
  border-radius: 8px;
}

.section.alt {
  background: var(--bgsection-alt);
}
.section h2 {
  margin: 0 0 20px;
  font-size: 2.2rem;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card.donate {
  position: relative;
  overflow: visible;
}
.card.donate ul {
  margin: 0;
  padding-left: 20px;
}
.card.donate li {
  margin-bottom: 8px;
}
.card.donate li:last-child {
  margin-bottom: 0;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 30px;
}

.donate-intro h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 25px;
  margin-bottom: 10px;
}
.donate-intro ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}
.donate-intro ul li {
  margin-bottom: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);

  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn .fa,
.btn i {
  color: inherit;
  font-size: 1em;
  line-height: 1;
  display: inline-block;
}

.form-inline {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 17, 21, 0.95);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
  pointer-events: none;
  z-index: 9999;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15, 17, 21, 0.95);
}

.tooltip-wrapper {
  position: relative !important;
  display: inline-block !important;
  width: auto !important;
  vertical-align: middle;
}

.tooltip-wrapper:hover .tooltip,
.tooltip-wrapper:focus-within .tooltip,
.tooltip-wrapper.tooltip-visible .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.amount-options label {
  display: flex;
  align-items: center;
  background: var(--bgsection-alt);
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.amount-options label:hover {
  background: var(--bgcard);
  border-color: var(--primary-2);
}
.amount-options input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--primary);
}
.amount-options .custom-amount-label input[type="number"] {
  width: 100px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-left: 8px;
  font-size: 0.95rem;
}

.donate-btn {
  margin-top: 20px;
}
.donate-btn input[type="image"] {
  border-radius: 8px;
  transition: transform 0.2s ease;
}
.donate-btn input[type="image"]:hover {
  transform: translateY(-2px);
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}
.time-item {
  background: var(--bgcard);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.time-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--primary-2);
  font-weight: 700;
}
.time-item .val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
}

.date-row {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 3vw, 24px);
}
.card-title {
  font-weight: 800;
  color: var(--primary-2);
  margin: 0 0 10px;
  font-size: 1.3rem;
}
.card small {
  display: block;
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.85rem;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.nav-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
  background: var(--primary);
  color: #fff;
}
.nav-btn:active {
  transform: scale(0.95);
}

.gallery-card .controls {
  grid-column: 1 / -1;
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery-card .controls button {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  margin: 4px 6px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.gallery-card .controls button:hover {
  background: linear-gradient(90deg, var(--primary-2) 0%, var(--primary) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.gallery-card .controls button:active {
  transform: scale(0.98);
}

.email-link {
  color: var(--primary, #077b3f);
  text-decoration: none;
}
.email-link:hover,
.email-link:focus {
  text-decoration: none;
}

.map-wrap {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.site-footer {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #d1d5db;
  padding: 30px 0;
  margin-top: 50px;
  font-size: 0.9rem;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: #f0f0f0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  gap: 16px;
}
.footer-left {
  text-align: left;
}
.footer-center {
  text-align: center;
  flex: 1;
}
.footer-right {
  text-align: right;
}

#consentBanner {
  background: var(--bgcard) !important;
  color: var(--ink) !important;
  padding: 20px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}
#consentBanner button {
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#consentBanner button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
#acceptConsent {
  background: #28a745 !important;
  color: #fff !important;
}
#declineConsent {
  background: #dc3545 !important;
  color: #fff !important;
}

@media (min-width: 841px) {
  body.nav-open .nav {
    display: flex !important;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav {
    margin-right: 80px;
  }
}

@media (max-width: 840px) {
  .header-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .header-grid > .brand,
  .header-grid > a.brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav {
    position: static;
    display: none;
    padding: 0;
    min-width: auto;
    box-shadow: none;
    background: var(--bg);
    border-radius: var(--radius);
    order: 3;
    width: 100%;
    flex-basis: 100%;
    margin-top: 8px;
    flex-direction: column;
  }
  .nav.show {
    display: flex;
  }
  .nav a {
    display: block;
    padding: 10px 14px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    white-space: normal;
  }

  .nav-toggle {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin-left: 8px;
    order: 2;
    z-index: 90;
    flex: 0 0 auto;
  }

  .header-grid > a.brand {
    padding-right: 56px;
  }

  .topbar .container {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .language-selector {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
  }
  .language-selector button#language-dropdown-toggle {
    padding: 6px 8px;
    margin: 0;
  }
  .topbar .container > div:first-child {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .language-selector ul#language-dropdown {
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    right: auto;
  }

  .donate-intro h3 {
    font-size: 1.25rem;
  }
  .amount-options {
    flex-direction: column;
  }
  .amount-options label {
    width: 100%;
    justify-content: space-between;
  }
  .amount-options .custom-amount-label {
    flex-direction: row;
  }
  .amount-options .custom-amount-label input[type="number"] {
    width: 80px;
  }
}

.mySwiper {
  width: 100%;
  max-width: 800px;
  height: 65vh;
  margin: auto;
  border-radius: 12px;
}
.mySwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}
.mySwiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
  color: var(--primary);
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.mySwiper .swiper-button-next {
  right: 10px;
}
.mySwiper .swiper-button-prev {
  left: 10px;
}
.mySwiper .swiper-button-next:hover,
.mySwiper .swiper-button-prev:hover {
  color: var(--primary-2);
}
.swiper-pagination {
  bottom: 10px;
  z-index: 10;
  position: absolute;
}
.swiper-pagination-bullet-active {
  color: var(--primary);
  background: var(--primary);
}

@media (max-width: 640px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  .footer-left,
  .footer-right {
    text-align: center;
  }
  .map-wrap iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .section h2 {
    font-size: 1.8rem;
  }
  .brand .brand-text strong {
    font-size: 1.1rem;
  }
  .brand img {
    height: 50px;
  }
}

.time-item {
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.time-item h3 {
  margin: 0 0 8px;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.1;
  white-space: normal;
}

.time-item .val {
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  font-weight: 800;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .times-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (min-width: 641px) and (max-width: 840px) {
  .times-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  box-shadow: var(--shadow-md);
  z-index: 1200;
  transition: opacity 500ms ease, transform 500ms ease,
    visibility 0s linear 500ms, box-shadow 0.5s ease;
}

.back-to-top:hover,
.back-to-top:focus {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 50%;
}

.back-to-top.visible {
  opacity: 0.85;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 500ms ease, transform 500ms ease, visibility 0s;
}

.back-to-top svg {
  display: block;
  width: 26px;
  height: 26px;
}

body.consent-open .back-to-top {
  bottom: 90px;
}

@media (max-width: 480px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .back-to-top svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}


