:root {
  /* brand + basic colors */
  --z-green: #3f9f66;
  --z-green-soft: rgba(63, 159, 102, 0.75);
  --z-green-strong: rgba(63, 159, 102, 1);
  --z-green-light: #76d8a8;

  --z-blue: #3f789f;

  --z-white: #ffffff;
  --z-black: #000000;

  --z-text: #111827;
  --z-text-muted: #e5e7eb;

  /* panels / overlays */
  --z-panel-bg-soft: rgba(255, 255, 255, 0.25);
  --z-panel-bg: rgba(255, 255, 255, 0.7);
  --z-panel-bg-strong: rgba(255, 255, 255, 0.85);
  --z-popup-bg: rgba(255, 255, 255, 0.95);
  --z-popup-inner-bg: rgba(255, 255, 255, 0.75);
  --z-overlay-dark: rgba(0, 0, 0, 0.7);

  /* accents */
  --z-accent-green: #16a34a;
  --z-accent-teal: #0f766e;

  /* quotes / contact / labels */
  --z-quote-bg: rgba(0, 0, 0, 0.55);
  --z-contact-bg: rgba(0, 0, 0, 0.5);
  --z-contact-blink-bg: rgba(0, 0, 0, 0.85);
  --z-gallery-label-bg: rgba(0, 0, 0, 0.8);
  --z-thumb-label-bg: rgba(0, 0, 0, 0.75);

  /* misc */
  --z-ripple-border: rgba(255, 255, 255, 0.3);
}

/* MAIN BASE */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Fira Sans", sans-serif;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-size: 16px;
  color: var(--z-text);
  background-color: var(--z-black);
}

/* BACKGROUND PAGE FLEX */
.zhero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
  background-image: url("/img/zwave3.jpg");
  background-size: cover;
  background-position: center;
  padding-bottom: 70px;
  box-sizing: border-box;
}

/* TOP BAR */
.ztopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2vh 5vw 0 5vw;
}

.zlogo img {
  width: 25vw;
  max-width: 300px;
  height: auto;
  cursor: pointer;
}

#zlang {
  display: flex;
  gap: 0.5rem;

}

#zlang .zlang-btn {
  padding: 0.4rem 0.8rem;
  margin: 0;
  text-shadow: none;
  font-size: 1rem;
  border-radius: 0.5rem;
}

#zlang .zlang-btn:hover {
  color: var(--z-black);
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--z-black);
}

/* MAIN LAYOUT */
.zcontent {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2.5rem;
  padding: 2vh 5vw;
  min-height: 0;
}

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

.zright {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
  display: none;
}

/* SECTOR BUTTON ROW */
.zsectors {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: .75rem;
  margin: 0 0 0 5vw;
}

/* MAIN INFO CARD */
.zinfo {
  width: 60vw;
  max-width: 60vw;
  padding: 1.6rem 2rem;
  background-color: var(--z-panel-bg);
  border-radius: 1.25rem;
  max-height: 55vh;
  overflow-y: auto;
  margin: 2.5rem 0 0 0;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  line-height: 1.6;
  position: relative;
}

/* section title */
.zinfo h1 {
  font-size: clamp(1.4rem, 1.1rem + 0.5vw, 1.7rem);
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

.zinfo h2 {
  font-size: clamp(1.4rem, 1.1rem + 0.5vw, 1.7rem);
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  text-align: center;
}

.zinfo h3 {
  font-size: clamp(1rem, 0.9rem + 0.2vw, 1.1rem);
  margin: 0.5rem 0 0.4rem 0;
  font-weight: 600;
  color: var(--z-accent-teal);
}

/* paragraphs & lists */
.zinfo p {
  font-size: 1em;
  line-height: 1.2;
  margin: 0.2rem 0;
}

.zinfo li {
  font-size: 1em;
  line-height: 1.1;
  margin: 0.2rem 0;
}

.zinfo ul {
  padding-left: 1.2em;
  margin: 0.4rem 0 0.6rem 0;
}

.zinfo p strong {
  font-weight: 900;
  color: var(--z-black);
}

/* fade-in on content change */
.zinfo-fade {
  animation: zinfo-fadein 220ms ease-out;
}

@keyframes zinfo-fadein {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SLOGAN + THUMB BOX */
.zneon-box {
  margin-top: 0.8rem;
  width: 30vw;
  max-width: 30vw;
  color: var(--z-white);
  line-height: 1;
  text-shadow: 1px 1px 2px var(--z-black);
  background-color: var(--z-panel-bg-soft);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0;
  transform: translateX(15px);
  animation: zneon-slide 0.9s ease-out 0.2s forwards;
  position: relative;
  z-index: 100;
}

.zneon-text {
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 700;
  font-style: italic;
}

.zneon-thumb {
  position: relative;
  display: inline-block;
}

.zneon-thumb.is-active {
  display: block;
}

.zneon-img {
  display: block;
  width: 200px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* GALLERY */
.zneon-thumb-label {
  position: relative;
  left: 0.6rem;
  bottom: 0.6rem;
  transform: none;
  padding: 0.25rem 0.7rem;
  background: var(--z-thumb-label-bg);
  color: var(--z-white);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@keyframes zneon-slide {
  0% {
    opacity: 0;
    transform: translateX(15px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.zneon-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* QUOTE */
.zquote {
  margin-top: 4rem;
  max-width: 240px;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--z-quote-bg);
  color: var(--z-text-muted);
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.zquote-text {
  margin: 0;
  font-style: italic;
}

.zquote-author {
  margin: 0.35rem 0 0 0;
  text-align: right;
  font-size: 0.75rem;
  opacity: 0.9;
}

.zquote-inline {
  margin: 0;
  max-width: 220px;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  color: #e5e7eb;
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* MORE INFO */
.zmore-wrapper {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  z-index: 100;
}

/* GENERIC BUTTON */
.zbutton {
  color: var(--z-white);
  background-color: var(--z-green-soft);
  padding: 0.8rem 1.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--z-green-soft);
  text-decoration: none;
  text-shadow: 1px 1px 2px var(--z-black);
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: all 300ms;
  border-radius: 1rem;
  cursor: pointer;
}

.zindiv {
  font-weight: bold;
}

/* SECTOR BUTTONS */
.zsectors .zbutton {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(
    120deg,
    var(--z-green),
    var(--z-green-light),
    var(--z-green)
  );
  background-size: 200% 200%;
  background-position: 0% 50%;
  border-color: transparent;
  color: var(--z-black);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  text-shadow: 0 0 0;
  font-weight: 600;
  animation: zsector-gradient 6s ease-in-out infinite;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  padding-right: 2rem;
}

.zsectors .zbutton:hover,
.zsectors .zbutton:focus-visible {
  animation-duration: 3s;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.zsectors .zbutton--active {
  animation: none;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px var(--z-white),
    0 10px 22px rgba(0, 0, 0, 0.4);
  color: var(--z-white);
  background-image: linear-gradient(
    120deg,
    var(--z-green),
    #2a8b55,
    var(--z-green)
  );
}

@keyframes zsector-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.zpulse-dot {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--z-white);
  opacity: 0.9;
  animation: zdot-pulse 2.4s ease-in-out infinite;
}

@keyframes zdot-pulse {
  0% {
    transform: translateY(-50%) scale(0.9);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-50%) scale(1.4);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(0.9);
    opacity: 0.4;
  }
}

/* MORE INFOS BUTTON */
.zmore-wrapper .zbutton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--z-green-strong);
  color: var(--z-green-strong);
  text-shadow: none;
  padding: 0.7rem 2.2rem;
  border-radius: 999px;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.zmore-wrapper .zbutton::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    120deg,
    var(--z-green),
    var(--z-green-light),
    var(--z-green)
  );
  background-size: 200% 200%;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.zmore-wrapper .zbutton:hover,
.zmore-wrapper .zbutton:focus-visible {
  color: var(--z-white);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.zmore-wrapper .zbutton:hover::before,
.zmore-wrapper .zbutton:focus-visible::before {
  transform: translateX(0);
}

/* BOTTOM BAR */
.zbottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: 0.4rem 5vw 0.6rem 5vw;
  display: flex;
  justify-content: flex-end !important;
  align-items: center;
  gap: 0.75rem;
  z-index: 50;
  box-sizing: border-box;
  background: transparent;
}

.zprivacy-link {
  font-size: 0.8rem;
  color: var(--z-white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin: 0;
  padding: 0;
  padding-right: 0.75rem;
  padding-bottom: 1rem;
  align-self: flex-end;
}

.zprivacy-link:hover,
.zprivacy-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: underline;
}

.zcontact-trigger {
  display: none;
}

.zcontact-trigger:hover {
  animation-play-state: paused;
}

@keyframes zcontact-blink {
  0% {
    background-color: var(--z-contact-blink-bg);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    background-color: var(--z-black);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
  }
  100% {
    background-color: var(--z-contact-blink-bg);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* CONTACT */
.zcontact {
  display: flex;
  align-items: center;
  border-radius: 1rem;
  background: var(--z-contact-bg);
  padding: 0.8rem 1rem;
  color: var(--z-white);
  gap: 1rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.zcontact:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.zcontact p {
  color: var(--z-white);
  margin: 0;
  padding: 0 1rem 0 0;
  line-height: 1.25;
  text-align: right;
  font-size: 0.9rem;
}

.zcontact a {
  color: var(--z-white);
  text-decoration: none;
}

.zcontact a:hover {
  color: var(--z-green-soft);
  text-decoration: none;
}

.zcontact-main {
  max-height: none;
  opacity: 1;
  overflow: visible;
  transform: none;
}

.zcontact-main p {
  margin: 0;
  padding: 0;
  line-height: 1.25;
  text-align: right;
  font-size: 0.9rem;
}

.zcontact1 {
  display: block;
  margin-top: 0.5rem;
}

.zcontact2 {
  display: block;
  margin-top: 0.5rem;
  color: var(--z-green-strong);
}

.zcontact-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.zcontact-label {
  background: var(--z-green-strong);
  color: var(--z-white);
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.zmap iframe {
  width: 180px;
  height: 180px;
  border-radius: 1rem;
}

/* POPUP OVERLAY */
.zoverlay {
  position: fixed;
  inset: 0;
  background: var(--z-overlay-dark);
  visibility: hidden;
  opacity: 0;
  transition: opacity 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.zoverlay:target {
  visibility: visible;
  opacity: 1;
}

/* clickable background behind popup */
.zoverlay-bg {
  position: absolute;
  inset: 0;
  display: block;
}

/* POPUP BOX */
.zpopup {
  position: relative;
  background: var(--z-popup-bg);
  background-image: url("/img/wave.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  width: min(800px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.zpopup-body {
  background: var(--z-popup-inner-bg);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.zpopup h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  background: var(--z-green-soft);
  color: var(--z-white);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
}

.zpopup p,
.zpopup li {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* close button in popup */
.zpopup .zclose {
  position: absolute;
  top: 0.3em;
  right: 0.7em;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--z-black);
  line-height: 1;
}

.zpopup .zclose:hover {
  color: var(--z-green-strong);
}

.zpopup-body .ztext {
  flex: 1 1 220px;
}

.zpopup-map iframe {
  width: 260px;
  height: 200px;
  border-radius: 0.75rem;
}

/* FULLSCREEN RIPPLE BG */
.zripple-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: transparent;
  overflow: hidden;
  z-index: 0;
}

.zripple {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 3px solid var(--z-ripple-border);
  transform: translate(-50%, -50%);
  animation: zripple-wave 9s linear infinite;
}

.zripple:nth-child(2) {
  animation-delay: 3.3s;
}

.zripple:nth-child(3) {
  animation-delay: 6.6s;
}

@keyframes zripple-wave {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  100% {
    width: 200vmax;
    height: 200vmax;
    opacity: 0;
  }
}

/* FULLSCREEN HORIZONTAL DRIFT */
.zdrift-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  background-size: 200% 100%;
  background-position: 100% 50%;
  mix-blend-mode: soft-light;
  opacity: 0.6;
  animation: zdrift-move 20s linear infinite;
}

@keyframes zdrift-move {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
  100% {
    background-position: -100% 50%;
  }
}

/* MOBILE & SMALL SCREENS */
@media screen and (max-width: 900px) {
  .zlogo img {
    width: 60vw;
    max-width: 250px;
  }

  .zhero {
    padding-bottom: 70px;
    box-sizing: border-box;
  }

  .zcontact {
    display: none;
  }

  .zcontact-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--z-contact-blink-bg);
    border-color: var(--z-contact-blink-bg);
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    animation: zcontact-blink 2.8s ease-in-out infinite;
    margin-left: auto;
  }

  .zcontact-trigger:hover {
    animation-play-state: paused;
  }

  .zcontent {
    flex-direction: column;
    align-items: center;
    padding: 2vh 4vw;
  }

  .zinfo {
    width: 90vw;
    max-width: 90vw;
    max-height: 35vh;
    padding: 1rem 1rem;
    margin: 0 1rem 0.5rem 1rem;
    padding-bottom: 2.2rem;
  }

  /* arrow */
  .zinfo::after {
    content: "⌄";
    position: absolute;
    top: 1rem;
    right: 0;
    transform: translateX(-50%);
    font-size: 3rem;
    line-height: 0;
    color: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    animation: zscroll-hint 1.4s ease-in-out infinite;
    z-index: 99;
  }

  @keyframes zscroll-hint {
    0%   { transform: translate(-50%, 0);     opacity: 0.2; }
    50%  { transform: translate(-50%, 4px);   opacity: 0.8; }
    100% { transform: translate(-50%, 0);     opacity: 0.2; }
  }

  .zinfo p {
    text-align: justify;
    hyphens: auto;
  }

  .zinfo ul {
    list-style-type: disc;
  }

  .zleft,
  .zright {
    width: 100%;
    align-items: center;
  }

  .zneon-box {
    width: 90vw;
    max-width: 90vw;
    margin-top: 0.75rem;
    flex-direction: row;
    align-items: center;
    text-align: center;
    padding: 0.5rem 1rem;
    margin: 0;
  }

  .zneon-img {
    width: 40vw;
    max-width: 200px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .zneon-thumb-label {
    left: 0.6rem;
    bottom: 0.6rem;
  }

  .zquote {
    display: none;
  }

  .zquote-author {
    text-align: center;
  }

  .zquote-inline-text {
    margin: 0;
    font-style: italic;
    font-size: 0.9rem;
  }

  .zquote-inline-author {
    margin: 0.35rem 0 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
    text-align: right !important;
  }

  .zsectors {
    justify-content: center;
    margin: 0 auto;
  }

  .zbutton {
    font-size: 0.9rem;
  }

  .zmore-wrapper {
    justify-content: center;
    flex-direction: row;
    width: 100%;
  }

  .zbottom {
    padding: 0 4vw 0.6rem 4vw;
    justify-content: center;
    text-align: center;
  }

  .zprivacy-link {
    font-size: 0.8rem;
  }
  
  .zmap iframe {
    width: 110px;
    height: 90px;
    border-radius: 0.75rem;
  }

  .zpopup-body {
    flex-direction: column;
  }

  .zpopup-map iframe {
    width: 100%;
    height: 220px;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .zsectors .zbutton,
  .zpulse-dot,
  .zneon-box,
  .zcontact,
  .zinfo,
  .zinfo-fade,
  .zcontact-trigger {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
}
