@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --sotetzold: #0a2823;
  --almazold: #c8e7af;
  --sarga: #d7b770;
  --narancs: #bb9257;
  --terrakotta: #9a2909;
  --vilagostojas: #ffffde;
  --kzold: #92b37e;
}

/* ========================================= */
/* ================ ALAPOK ================= */
/* ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", serif;
  background-color: #ffffff;
  color: var(--sotetzold);
}

img {
  display: block;
  max-width: 100%;
  border: none;
  border-radius: 6px;
}

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

a.email-link,
a[href^="mailto:"] {
  text-decoration: none;
}

a.email-link:hover,
a[href^="mailto:"]:hover {
  color: var(--sarga);
}

.divider {
  max-width: 1200px;
  height: 2px;
  margin: 50px auto 10px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
}

/* ========================================= */
/* ============== FEJLÉC / NAV ============= */
/* ========================================= */

.headline {
  background-color: var(--sotetzold);
  color: #fff;
  padding: 8px 0;
}

.headline-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.logo-container {
  flex: 0 0 auto;
}

.logo-container img {
  width: auto;
  max-height: 72px;
}

.call-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.riasztas-container {
  display: flex;
}

.riasztas-btn {
  display: inline-block;
  background-color: var(--narancs);
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
}

.riasztas-btn:hover {
  background-color: var(--terrakotta);
  color: #fff;
}

.riasztas-btn span {
  display: block;
  font-weight: normal;
  font-size: 14px;
  white-space: nowrap;
}

.navbar {
  margin-left: auto;
  min-width: 0;
}

.menu {
  display: flex;
  gap: clamp(16px, 2vw, 40px);
  list-style: none;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.menu li a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.menu li a:hover {
  background: rgba(195,220,175,0.2);
}

.menu li a.active {
  background: rgba(195,220,175,0.35);
}

/* Hamburger */

.menu-toggle {
  display: none;
  position: relative;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 auto;
  background: rgba(195, 220, 175, 0.15);
  border: 2px solid var(--almazold);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(195, 220, 175, 0.25);
}

.menu-toggle .bar {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 3px;
  background: var(--almazold);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.menu-toggle .bar:nth-child(1) {
  transform: translateX(-50%) translateY(-6px);
}

.menu-toggle .bar:nth-child(2) {
  transform: translateX(-50%) translateY(0);
}

.menu-toggle .bar:nth-child(3) {
  transform: translateX(-50%) translateY(6px);
}

.nav-open .menu-toggle .bar:nth-child(1) {
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

.nav-open .menu-toggle .bar:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle .bar:nth-child(3) {
  transform: translateX(-50%) translateY(0) rotate(-45deg);
}

/* ========================================= */
/* ================= HERO ================== */
/* ========================================= */

.hero {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero img {
  width: 100%;
  margin: 0 auto;
  border: none;
  border-radius: 0px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  text-align: center;
  padding: 0 20px;
}

.hero-text {
  max-width: 600px;
  color: var(--vilagostojas);
}

.hero-text h1 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 30px;
}

.hero-button {
  display: inline-block;
  background-color: var(--terrakotta);
  color: #fff;
  font-family: "Georgia", serif;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
}

.hero-button:hover {
  background-color: var(--narancs);
  color: #fff;
}

/* ========================================= */
/* ============== INFO BLOKKOK ============= */
/* ========================================= */

.info-blocks {
  background-color: var(--almazold);
  padding: 40px 0;
  text-align: center;
}

.blocks {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.info-block {
  flex: 1;
}

.info-block h3 {
  font-size: 25px;
  margin-bottom: 10px;
}

.info-block p {
  font-size: 16px;
  margin-bottom: 10px;
}

.info-block a {
  color: var(--sotetzold);
  font-weight: bold;
  text-decoration: underline;
}

/* ========================================= */
/* ============= RIASZTÁS BLOKK ============ */
/* ========================================= */

.alert-section {
  background-color: var(--almazold);
  padding: 10px 10px 60px;
}

.alert-inner {
  max-width: 800px;
  margin: auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  color: #fff;
  background-color: var(--terrakotta);
  border-radius: 8px;
}

.alert-inner h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.alert-narrow {
  max-width: 800px;
  margin: auto;
}

.alert-button {
  display: inline-block;
  background-color: var(--narancs);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, color 0.3s;
}

.alert-button:hover {
  background-color: var(--sotetzold);
  color: #fff;
}

.alert-button-static,
.alert-button-static:hover,
.alert-button-static:focus,
.alert-button-static:active {
  background-color: var(--narancs);
  color: #fff;
  cursor: default;
}

.alert-contacts {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
  text-align: left;
}

.alert-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.alert-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-family: "Source Sans 3", Arial, sans-serif;
}

.alert-contact img {
  width: 100px;
  height: 100px;
}

.alert-contact p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.alert-contact strong {
  display: block;
}

.alert-divider {
  width: 2px;
  height: 160px;
  align-self: center;
  background-color: #fff;
}

.alert-contact a[href^="tel:"],
.alert-contact a[href^="tel:"]:visited,
.alert-contact a[href^="tel:"]:active,
.alert-contact a[href^="tel:"]:hover {
  color: #fff;
  text-decoration: none;
  font-weight: inherit;
}

.messenger-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background-color: #0084ff;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.messenger-link::before {
  content: url("images/MeW.svg");
  width: 20px;
  height: 20px;
  display: inline-block;
  transition: filter 0.2s;
}

.messenger-link:hover {
  background-color: #fff;
  color: #0084ff;
}

.messenger-link:hover::before {
  filter: brightness(0) saturate(100%) invert(27%) sepia(100%) saturate(5256%) hue-rotate(202deg) brightness(96%) contrast(101%);
}

.email-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.email-link:hover {
  color: var(--narancs);
}

/* ========================================= */
/* ================= FOOTER ================ */
/* ========================================= */

footer {
  background-color: var(--sotetzold);
  color: #fff;
  padding: 20px 0;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-logo img {
  height: 130px;
}

.footer-logo p,
.footer-contact p,
.footer-social p {
  margin: 5px 0 0;
}

.footer-contact a {
  color: #fff;
  text-decoration: underline;
}

.footer-contact a.email-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a.email-link:hover {
  color: var(--sarga);
}

.footer-contact a[href^="tel:"],
.footer-contact a[href^="tel:"]:visited,
.footer-contact a[href^="tel:"]:active,
.footer-contact a[href^="tel:"]:hover {
  color: #fff;
  text-decoration: none;
}

.footer-social .social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.footer-social .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social .social-icons img {
  width: auto;
  height: 36px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social .social-icons a:hover img {
  transform: scale(1.08);
  opacity: 0.9;
}

/* ========================================= */
/* ================ CSAPAT ================= */
/* ========================================= */

.team-section {
  background-color: var(--almazold);
  padding: 50px 0;
  width: 100%;
}

.team-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.team-bevezeto {
  font-size: 20px;
  color: var(--sotetzold);
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.4;
}

.team-member {
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
}

.team-member.reverse {
  grid-template-columns: minmax(0, 1fr) 500px;
}

.team-member img,
.team-member .member-info {
  grid-row: 1;
}

.team-member:not(.reverse) img {
  grid-column: 1;
}

.team-member:not(.reverse) .member-info {
  grid-column: 2;
}

.team-member.reverse .member-info {
  grid-column: 1;
}

.team-member.reverse img {
  grid-column: 2;
}

.team-member img {
  width: 500px;
  height: 650px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
}

.team-section .member-info {
  min-width: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 18px;
  color: var(--sotetzold);
  line-height: 1.4;
}

.team-section h3.member-name {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 10px 20px;
  background-color: var(--sotetzold);
  color: #fff;
  font-family: "Georgia", serif;
  font-size: 20px;
  border-radius: 5px;
}

/* ========================================= */
/* =============== ALAPCSAPAT ============== */
/* ========================================= */

.base-section {
  background-color: var(--almazold);
  padding: 30px 0;
  width: 100%;
}

.base-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.base-bevezeto {
  font-size: 22px;
  color: var(--sotetzold);
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.4;
}

.base-member {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.base-member.reverse {
  flex-direction: row-reverse;
}

.base-member img {
  width: 100%;
  max-width: 500px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
}

.base-member .member-info {
  flex: 1;
  min-width: 280px;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 22px;
  color: #fff;
  line-height: 1.4;
}

.base-section .member-name {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: var(--sotetzold);
  color: #fff;
  font-family: "Georgia", serif;
  font-size: 30px;
  font-weight: bold;
  border-radius: 5px;
}

/* ========================================= */
/* ============== HELP / DONATE ============ */
/* ========================================= */

.help-section {
  background-color: var(--almazold);
  padding: 10px 0;
  width: 100%;
}

.help-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-text {
  width: 100%;
  font-size: 18px;
  color: var(--sotetzold);
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.4;
}

.donate-section {
  background-color: var(--terrakotta);
  padding: 10px 0;
  width: 100%;
}

.donate-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donate-text {
  width: 100%;
  font-size: 18px;
  color: #fff;
  text-align: center;
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.4;
}

/* ========================================= */
/* ================= GALÉRIA =============== */
/* ========================================= */

.gallery {
  background-color: var(--almazold);
  padding: 30px 0;
}

.card-thumbnails-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 86px;
  margin: 0 auto 10px;
  overflow: hidden;
}

.card-thumbnails-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.card-thumb {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 5px #0001;
  flex-shrink: 0;
}

.card-thumb.active {
  border: 2.5px solid #0a2823;
  box-shadow: 0 2px 8px #0a2823;
}

.card-thumb:hover {
  border: 2.5px solid #fff;
}

.carousel-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 54px;
  z-index: 2;
}

.carousel-zone.left {
  left: 0;
  cursor: w-resize;
}

.carousel-zone.right {
  right: 0;
  cursor: e-resize;
}

.card-slideshow-container,
.slide-image-box {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 32px;
}

.slide-image-box {
  position: relative;
}

#slide-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.slide-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 3.5rem;
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  user-select: none;
  transition: background 0.23s, color 0.22s, opacity 0.18s;
}

.slide-image-box:hover .slide-arrow,
.slide-arrow:focus {
  opacity: 1;
}

.slide-arrow.prev {
  left: 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.slide-arrow.next {
  right: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.slide-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--sotetzold);
}

.auto-slideshow-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.auto-slideshow-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

#slideshow {
  width: 100%;
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  object-fit: contain;
}

/* ========================================= */
/* ============== STICKY HEADER ============ */
/* ========================================= */

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
}

@media (min-width: 1200px) {
  .header-sticky {
    transition:
      background-color 0.25s ease,
      box-shadow 0.25s ease,
      height 0.25s ease,
      padding 0.25s ease;
  }

  .header-sticky.shrink {
    height: 120px;
    background-color: rgba(10, 40, 35, 0.96);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
  }

  .header-sticky .logo-container img,
  .header-sticky .riasztas-btn,
  .header-sticky .menu li a {
    transition:
      max-height 0.25s ease,
      font-size 0.25s ease,
      padding 0.25s ease,
      transform 0.25s ease;
  }

  .header-sticky.shrink .logo-container img {
    max-height: 92px;
  }

  .header-sticky.shrink .riasztas-btn {
    font-size: 16px;
    padding: 8px 16px;
  }

  .header-sticky.shrink .riasztas-btn span {
    font-size: 11px;
  }

  .header-sticky.shrink .menu li a {
    padding: 5px 8px;
    font-size: 0.95rem;
  }
}

/* ========================================= */
/* =========== MOBIL + TABLET ============== */
/* ========================================= */

@media (max-width: 1199px) {
  .headline {
    padding: 12px 0;
    min-height: 86px;
  }

  .headline-flex {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 12px;
  }

  .logo-container img {
    max-height: 56px;
  }

  .call-controls {
    margin-left: auto;
    gap: 8px;
  }

  .riasztas-btn {
    font-size: 18px;
    padding: 9px 16px;
  }

  .riasztas-btn span {
    font-size: 12px;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar {
    width: 100%;
    margin-left: 0;
  }

  .navbar .menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    gap: 0;
    list-style: none;
    background-color: var(--almazold);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-open .navbar .menu {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar .menu li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
  }

  .navbar .menu li:first-child {
    border-top: none;
  }

  .navbar .menu li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--sotetzold);
    text-decoration: none;
    letter-spacing: 1px;
    transition: background-color 0.2s ease;
  }

  .navbar .menu li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .hero img {
    height: 260px;
    object-fit: cover;
  }

  .hero-overlay {
    justify-content: flex-start;
    padding: 20px 16px 0;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.05;
    margin: 18px 0 20px;
  }

  .hero-button {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .blocks {
    flex-direction: column;
    gap: 24px;
  }

  .alert-inner {
    max-width: 100%;
    border-radius: 0;
  }

  .alert-divider {
    display: none;
  }

  .alert-contact img {
    width: 72px;
    height: 72px;
  }

  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-member,
  .team-member.reverse {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .team-member img,
  .team-member.reverse img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    order: 1;
  }

  .team-member .member-info,
  .team-member.reverse .member-info {
    width: 100%;
    order: 2;
  }

  .card-thumbnails-carousel-wrapper {
    height: 60px;
  }

  .card-thumbnails-carousel {
    gap: 4px;
  }

  .card-thumb {
    width: 54px;
    height: 40px;
  }

  .carousel-zone {
    display: none;
  }

  .card-slideshow-container,
  .slide-image-box {
    width: 100%;
    max-width: 100%;
  }

  #slide-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* ========================================= */
/* ================= DESKTOP =============== */
/* ========================================= */

@media (min-width: 1200px) {
  .headline {
    display: flex;
    align-items: center;
    height: 250px;
    padding: 0;
  }

  .headline-flex {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 0;
  }

  .logo-container {
    flex: 0 0 auto;
  }

  .logo-container img {
    max-height: 180px;
  }

  .call-controls {
    flex: 0 0 auto;
    margin-left: 36px;
    margin-right: 28px;
    gap: 10px;
  }

  .navbar {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
  }

  .navbar .menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .menu li {
    flex: 0 1 auto;
  }

  .menu li a {
    white-space: nowrap;
  }

  .menu-toggle {
    display: none;
  }
}
