/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("png/haikei2.png");
  background-repeat: no-repeat;
  background-size: cover; /* scale to cover full viewport */
  background-position: center; /* center the image */
  background-attachment: fixed; /* <--- keeps it in place */
  color: #fff;
  font-family: "Poppins", Arial, sans-serif !important;
}

.site-wrapper {
  max-width: 75%; /* or whatever max width you prefer */
  margin: 0 auto; /* centers it horizontally */
  padding: 0 1rem; /* side padding so it doesn’t stick to the edges on small screens */
}

/* Navbar Header*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 1rem;
  padding-right: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  /* glass effect */
  background: linear-gradient(
    135deg,
    rgba(99, 99, 103, 0.05),
    rgba(57, 51, 93, 0.25)
  ); /* lighter transparency */
  backdrop-filter: blur(20px) saturate(180%); /* the blur is what makes it glassy */
  -webkit-backdrop-filter: blur(20px) saturate(180%); /* Safari support */
  border-radius: 50px;

  max-width: 90%;
  margin: 1.5rem auto; /* give it some breathing space from top */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
}

/* Header */
#siteHeader {
  --header-offset: 2.5rem; /* set once */
  position: sticky;
  top: var(--header-offset);
  z-index: 1000;
  transition: transform 240ms ease, opacity 180ms ease;
  will-change: transform;
}

/* Hidden state */
#siteHeader.header--hidden {
  transform: translateY(calc(-100% - var(--header-offset)));
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #siteHeader {
    transition: none;
  }
}

/*Logo in Nav*/

.logo img {
  height: 4rem; /* standard website logo size */
  width: auto; /* keep aspect ratio */
  display: block; /* removes any weird spacing */
  margin-left: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  font-size: 1rem;

  padding: 0.24rem 0.5rem; /* match footer links */
  border-radius: 12px; /* rounded pill shape */
  transition: background 0.2s ease, opacity 0.15s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* CTA container spacing in hero */
.hero .cta {
  margin-top: 1.5rem;
}

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 15px; /* pill */
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1;
  transition: transform 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease;
  will-change: transform;
}

/* Primary style (white text on brand color) */
.btn-primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(99, 99, 103, 0.05),
    rgba(57, 51, 93, 0.25)
  );
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
}

/* High-contrast / focus visibility */
.btn:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 85vh;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-text {
  flex: 2;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1;
}

.hero-text p {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.download-links {
  display: flex;
  gap: 1rem; /* adds spacing instead of margin-right */
}

.store-badge {
  height: 55px;
  border: 2px solid #fff; /* white border */
  border-radius: 12px; /* optional rounded corners */
  transition: transform 0.2s, border-color 0.2s;
}

.store-badge:hover {
  transform: scale(1.05);
}

.hero-image {
  flex: 2;
  display: flex;
  justify-content: flex-end; /* push image to the right */
}

.hero-image img {
  display: block; /* not flex */
  margin: 0; /* remove auto-centering */
  width: 80%;
  height: auto;
}

/* put these near the top of your CSS (or above the footer rules) */
:root {
  /* side padding grows more than top/bottom as the viewport widens */
  --footer-inline: clamp(24px, 6vw, 72px); /* left/right */
  --footer-block: clamp(16px, 3vw, 40px); /* top/bottom */
}

/* ===== Glassy footer (matches your header) ===== */
.footer {
  /* the pill container */
  font-size: clamp(0.8rem, 1vw + 0.3rem, 1.1rem);
  max-width: 90%;
  margin: 3rem auto 2rem;
  margin-bottom: 8rem;
  border-radius: 50px;
  background: linear-gradient(
    135deg,
    rgba(99, 99, 103, 0.05),
    rgba(57, 51, 93, 0.25)
  );
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%); /* Safari */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
  overflow: hidden;
}

/* let inner wrappers span the pill, then pad inward fluidly */
.footer-inner {
  max-width: none; /* don't squeeze content with a % cap */
  width: 100%;
  margin: 0 auto;

  /* logical padding = top/bottom vs left/right */
  padding-block: var(--footer-block);
  padding-inline: var(--footer-inline);
}

/* map brand and columns into explicit grid areas */
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  grid-template-areas: "brand cols";
  gap: 2rem 2.4rem;
}

.footer-brand {
  grid-area: brand;
}
.footer-columns {
  grid-area: cols;
}

/* optional: a touch more bottom padding for the copyright row */
.footer-bottom {
  padding-block-end: calc(var(--footer-block) * 1.25);
  color: rgba(255, 255, 255, 0.65); /* instead of opacity */
}

.footer-bottom {
  display: flex;
  justify-content: space-between; /* copyright left, language right */
  align-items: center;
  flex-wrap: wrap;
}

/* brand side */
.footer-logo img {
  height: 5rem;
  width: auto;
  display: block;
}

.footer-blurb {
  color: #fff;
  line-height: 1.6;
  font-weight: 300;
  margin: 0.3rem 2rem 2rem 0rem;
  text-align: justify; /* <-- makes both edges straight */
  text-justify: inter-word; /* better spacing control */
}

.footer-blurb b {
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-social .icon {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}
.footer-social .icon:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.8);
}

/* link columns */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 1.6rem;
}
.footer-columns h4 {
  margin-top: 1rem;
  margin-bottom: 0.7rem;
  padding: 0.24rem 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65); /* instead of opacity */
}

.footer-columns ul {
  list-style: none;
}
.footer-columns a {
  text-decoration: none;
  color: #fff;
  display: inline-block;
  padding: 0.24rem 0.5rem;
  border-radius: 12px;
  transition: background 0.2s ease; /* no opacity transition */
}

.footer-columns a:hover {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff; /* re-declare to lock color */
}

.footer-lang select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
}
.footer-lang select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Stack footer brand above columns on smaller screens */
@media (max-width: 1600px) {
  .footer-inner {
    display: grid; /* keep grid, just switch layout */
    grid-template-columns: 1fr; /* single column */
    grid-template-rows: auto auto; /* two rows */
    grid-template-areas:
      "brand"
      "cols";
    gap: 1.6rem;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-blurb {
    width: 100%;
  }

  .footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1.2rem 1.6rem;
  }
}

/* Optional: stack link columns to 1 per row on very small screens */
@media (max-width: 950px) {
  .sideHeader {
    padding-left: 2%;
    padding-right: 2%;
  }

  .logo img {
    height: 3rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0px;
  }

  nav ul {
    gap: 1.2rem;
  }

  .site-wrapper {
    max-width: 97%;
    padding: 2%;
  }

  .hero {
    flex-direction: column; /* stack vertically */
    justify-content: center; /* center vertically */
    align-items: center; /* center horizontally */
    text-align: center;
    margin: 0%;
    padding: 0%;
  }

  .hero {
    order: -1; /* move image to the top */
    margin-bottom: 1.5rem; /* add spacing below image */
  }

  .hero-text {
    margin-top: 5rem;
    margin-bottom: 5rem;
  }

  .hero-text h1 {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    font-size: 2.4rem;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-image img {
    font-size: clamp(200px, 1vw + 100px, 500px);
    max-width: 400px;
  }

  .footer {
    margin-bottom: 2rem;
  }

  .footer-logo img {
    height: 3rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .mini-newsletter {
    display: flex; /* enable flexbox */
    justify-content: center; /* center vertically (if extra space) */
  }
}

@media (max-width: 350px) {
  .logo img {
    height: 2.5rem;
  }

  nav a {
    font-size: 12px;
    padding: 0px;
  }

  nav ul {
    gap: 0.8rem;
  }

  .footer-logo img {
    height: 2.5rem;
  }
}

/* === Brevo (sibforms) – make it blend with site === */

.sib-form,
#sib-form-container {
  background: transparent !important;
  box-shadow: none !important;
  font-family: "Poppins", Arial, sans-serif !important;
}

#sib-container.sib-container--large {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: none !important; /* remove 540px card */
  width: auto !important;
  border-radius: 24px !important; /* optional: keep your rounded vibe */
}

/* Typography + colors to match your white-on-glass theme */
#sib-container .sib-form-block,
#sib-container .sib-text-form-block,
#sib-container .entry__label {
  color: #fff !important;
}

/* Inputs */
#sib-container .entry__field .input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  border-radius: 15px !important;
  padding: 0.8rem 0.9rem !important;
}

#sib-container .entry__field .input::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* === Make Brevo Subscribe button match .btn-primary === */
#sib-container .sib-form-block__button {
  color: #fff !important;
  background: linear-gradient(
    135deg,
    rgba(255, 132, 98, 0.515),
    rgba(224, 149, 134, 0.269)
  ) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17) !important;
  border: none !important;
  border-radius: 15px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 0.9rem 1.25rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, box-shadow 120ms ease !important;
  will-change: transform;
}

#sib-container .sib-form-block__button:hover,
#sib-container .sib-form-block__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17) !important;
}

#sib-container .sib-form-block__button:active {
  transform: translateY(0);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17) !important;
}

/* Messages (success/error) — glassy, readable */
#sib-form-container .sib-form-message-panel {
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 12px !important;
}

/* Remove extra spacing Brevo injects */
#sib-container [style*="max-width:540px"] {
  max-width: none !important;
}

/* === Brevo email input: black text on light bg === */
#sib-container .entry__field .input,
#sib-container input[type="email"],
#sib-container input#EMAIL {
  color: #888888 !important; /* text color */
  background: #ffffff !important; /* input bg */
}

#sib-container .entry__field {
  border-radius: 15px;
}

#sib-container input[type="email"],
#sib-container input#EMAIL {
  border-radius: 15px; /* consistent rounding */
  height: 17px;
}

#sib-container .entry__field .input::placeholder {
  color: #bcbcbc !important; /* medium gray placeholder */
}

/* Handle Chrome autofill yellow */
#sib-container input:-webkit-autofill {
  -webkit-text-fill-color: #000 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* Optional: nicer focus */
#sib-container .entry__field .input:focus {
  border-color: #d9f2ff !important; /* same light blue Brevo uses */
  background: rgba(255, 255, 255, 0.15);
  outline: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/*mini brevo form*/
/* === Mini Newsletter Form === */
.mini-newsletter {
  margin-top: 1.5rem;
  text-align: left;
  justify-content: center;
}

.mini-newsletter input[type="email"] {
  min-width: 300px;
  padding: 0.8rem 1rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mini-newsletter input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fa7f72;
}

.mini-msg {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #8fffbd; /* success green */
  font-weight: 500;
}

.mini-msg.error {
  color: #ff9a9a; /* error red */
}

/* Placeholder color (all major browsers) */
.mini-newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.85) !important; /* make it brighter */
  opacity: 1; /* Firefox */
  font-size: 15px;
}

.mini-newsletter .entry_block {
  width: 100%;
}
.mini-newsletter input[type="email"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}
.mini-newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.mini-newsletter input[type="email"]:focus {
  border-color: #d9f2ff !important; /* same light blue Brevo uses */
  background: rgba(255, 255, 255, 0.15);
  outline: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.mini-status {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.9;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
