/* ─────────────────────────────────────────────────────────────
   AICHER / LUFTHANSA TYPOGRAPHY SYSTEM
   Palette: #F4F2EE bg · #05164D navy · #E8E0D0 shell-cream accent
   ───────────────────────────────────────────────────────────── */

:root {
  --lh-bg:     #F4F2EE;
  --lh-blue:   #05164D;
  --lh-cream:  #E8E0D0;
  --lh-gray:   rgba(5, 22, 77, 0.45);
  --lh-border: rgba(5, 22, 77, 0.12);
  --lh-muted:  rgba(5, 22, 77, 0.55);
}

/* ── Global ── */

html, body {
  background-color: var(--lh-bg) !important;
  color: var(--lh-blue) !important;
}

body, input, select, textarea {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-weight: 300 !important;
  color: var(--lh-blue) !important;
}

/* ── Headings ── */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  color: var(--lh-blue) !important;
  text-transform: uppercase !important;
}

h1 {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.0 !important;
}

h2 {
  font-size: 2.25rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.14em !important;
}

h3 {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
}

p {
  color: var(--lh-muted) !important;
  font-weight: 300 !important;
  letter-spacing: 0.01em !important;
}

a { color: var(--lh-blue) !important; }
a:hover { color: var(--lh-blue) !important; opacity: 0.6; }

/* ── Top stripe ── */

#wrapper.divided::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--lh-blue);
  width: 100%;
}

/* ── Banner ── */

.banner.style1 {
  background-color: var(--lh-bg) !important;
  border-bottom: 1px solid var(--lh-border) !important;
  overflow: hidden !important;
}

.banner.style1::after,
.banner.style1::before {
  display: none !important;
  content: none !important;
}

.banner.style1 .content {
  padding: 5rem 4rem !important;
}

.banner.style1 .content::before {
  content: 'Δήμος Λάρνακας · Municipality of Larnaca' !important;
  display: block !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: 0.36em !important;
  text-transform: uppercase !important;
  color: var(--lh-gray) !important;
  margin-bottom: 1rem !important;
}

.banner.style1 .content h1::after {
  content: '' !important;
  display: block !important;
  width: 40px !important;
  height: 3px !important;
  background: var(--lh-cream) !important;
  margin-top: 1.4rem !important;
  margin-bottom: 1.2rem !important;
}

.banner-hero-image {
  background-color: var(--lh-bg) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.banner-hero-image img {
  width: 85% !important;
  height: 85% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: auto !important;
}

/* ── Spotlights ── */

.spotlight {
  background-color: var(--lh-bg) !important;
  border-bottom: 1px solid var(--lh-border) !important;
}

.spotlight:nth-child(odd) {
  background-color: #EDEAE3 !important;
}

.spotlight .content {
  padding: 4rem 3rem !important;
}

/* ── Wrappers ── */

.wrapper.style1 {
  background-color: var(--lh-bg) !important;
}

.wrapper.style1.align-center .inner h2 {
  font-weight: 300 !important;
  letter-spacing: 0.16em !important;
}

/* ── Buttons ── */

.button {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: var(--lh-blue) !important;
  background: transparent !important;
  border: 1px solid var(--lh-blue) !important;
  border-radius: 0 !important;
  padding: 0 2.2em !important;
  height: 2.75em !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  transition: background 0.15s, color 0.15s !important;
  text-decoration: none !important;
}

.button:hover {
  background: var(--lh-blue) !important;
  color: var(--lh-bg) !important;
  text-decoration: none !important;
}

.button.big {
  font-size: 10px !important;
  padding: 0 2.8em !important;
  height: 3em !important;
}

.button.small {
  font-size: 8px !important;
  height: 2.5em !important;
  padding: 0 1.6em !important;
}

/* ── Gallery ── */

.gallery.style2 article {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.gallery.style2 article a.image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.gallery.style2 article a.image img {
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  width: 100% !important;
  height: 100% !important;
}

.gallery .caption h3 {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
}

.gallery .caption p {
  font-size: 0.65rem !important;
  letter-spacing: 0.12em !important;
}

/* ── Items / tools ── */

.items h3 {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
}

.items .icon {
  color: var(--lh-blue) !important;
}

/* ── Footer ── */

footer.wrapper {
  background: #EDEAE3 !important;
  border-top: 1px solid var(--lh-border) !important;
}

footer p {
  font-size: 9px !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  color: var(--lh-gray) !important;
}

footer .icons a {
  color: var(--lh-blue) !important;
  opacity: 0.5;
  transition: opacity 0.15s !important;
}

footer .icons a:hover { opacity: 1; }

/* ── Latin / scientific names ── */

.latin-name {
  font-style: italic !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.06em !important;
  color: var(--lh-gray) !important;
  margin-top: -0.6rem !important;
  margin-bottom: 1rem !important;
}

/* ── Section dividers ── */

#wrapper.divided > * + * {
  box-shadow: 0 -1px 0 var(--lh-border) !important;
}

/* ── Gallery section heading accent ── */

.wrapper .inner h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--lh-cream);
  margin: 1rem auto 0;
}

/* ── Mollusc section — right-aligned text (desktop) ── */

.mollusc-section .content {
  text-align: right !important;
}

.mollusc-section .content .actions {
  justify-content: flex-end !important;
}

/* ── Vertebrate section — right-aligned text (desktop) ── */

.vertebrate-section .content {
  text-align: right !important;
}

.vertebrate-section .content .actions {
  justify-content: flex-end !important;
}

/* ── Back to top button ── */

#back-to-top {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  width: 38px !important;
  height: 38px !important;
  background: var(--lh-bg) !important;
  color: var(--lh-blue) !important;
  border: 1px solid var(--lh-blue) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s, background 0.15s !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
}

#back-to-top.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#back-to-top:hover {
  background: var(--lh-blue) !important;
  color: var(--lh-bg) !important;
  opacity: 1 !important;
}

/* ── Spotlight image containers — transparent PNG fix ── */

.spotlight.style1 .image {
  background-color: var(--lh-bg) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.spotlight.style1 .image img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: transparent !important;
}

.spotlight:nth-child(odd) .image {
  background-color: #EDEAE3 !important;
}

.map-section .image {
  background-color: var(--lh-bg) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OVERRIDES
   MUST stay at the very end — when two !important rules have the
   same specificity, the later one in the file wins. Keeping this
   block last guarantees the mobile rules beat the desktop rules
   above when the screen is narrow.
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 736px) {

  h1 { font-size: 2.2rem !important; letter-spacing: -0.015em !important; }
  h2 { font-size: 1.6rem !important; }
  .banner.style1 .content { padding: 3rem 2rem !important; }

  /* Fix 1: banner hero image — strip any framework offsets, centre on mobile */
  .banner.style1 .image.banner-hero-image,
  .banner-hero-image {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 1.5rem 0 !important;
  }

  .banner.style1 .image.banner-hero-image img,
  .banner-hero-image img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 82% !important;
    max-width: 82% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* Fix 2: vertebrate + mollusc — centre text on mobile */
  .vertebrate-section .content,
  .mollusc-section .content {
    text-align: center !important;
  }

  .vertebrate-section .content .actions,
  .mollusc-section .content .actions {
    justify-content: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

}
