/* Bappy.com — Cloudflare Pages (static), optimizovano za mobil */

:root {
  --accent: #65489d;
  --bg0: #0b0712;
  --bg1: #120a1f;
  --card: #140d22cc;
  --stroke: #ffffff14;
  --text: #f4f1ff;
  --muted: #cfc6ffcc;
  --white-06: rgba(255, 255, 255, 0.06);
  --white-55: rgba(255, 255, 255, 0.55);
  --white-74: rgba(255, 255, 255, 0.74);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px var(--stroke), var(--shadow-lg);
  --radius: 18px;
  --touch-min: 44px; /* min touch target (WCAG / Apple) */
  --safe-top: env(safe-area-inset-top, 0);
  --safe-right: env(safe-area-inset-right, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(101, 72, 157, 0.35), transparent 55%),
    radial-gradient(900px 700px at 80% 30%, rgba(168, 92, 255, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height: 100vh;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 60px;
  padding-top: max(28px, var(--safe-top));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 28px;
  line-height: 1;
}

.brand span {
  opacity: 0.9;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Hamburger — sakriven na desktopu */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--white-06);
  border-radius: 12px;
  border: 1px solid var(--stroke);
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Mobilni meni — overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 7, 18, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(var(--safe-top), 20px) 20px max(var(--safe-bottom), 20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: max(var(--safe-top), 16px);
  right: max(var(--safe-right), 16px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.mobile-menu-close span {
  display: block;
  margin-top: -2px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--touch-min);
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  background: var(--white-06);
  border: 1px solid var(--stroke);
  transition: border-color 0.2s, background 0.2s;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
}

.mobile-menu-link.primary {
  background: linear-gradient(180deg, #ffdb8a, #f2b95a);
  border: 0;
  color: #120a1f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-weight: 800;
}

.mobile-menu-link.primary:hover,
.mobile-menu-link.primary:focus-visible {
  border-color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-min);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white-06);
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  font-size: 13px;
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.pill.primary {
  background: linear-gradient(180deg, #ffdb8a, #f2b95a);
  border: 0;
  color: #120a1f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-weight: 800;
}

.pill.primary:hover {
  border-color: transparent;
}

/* HERO */
.hero {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--glow);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 56px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  min-height: 320px;
}

.hero-copy h1 {
  margin: 0 0 10px 0;
  font-size: 56px;
  letter-spacing: -0.8px;
  line-height: 1.02;
}

.hero-title-line {
  white-space: nowrap;
}

.hero-copy p {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 44ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  min-height: var(--touch-min);
  padding: 14px 18px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: #120a1f;
  background: linear-gradient(180deg, #ffdb8a, #f2b95a);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.micro {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.cta-row .micro {
  max-width: 560px;
  text-align: center;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-media img {
  width: 280px;
  height: 240px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Email form */
.form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white-06);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px;
  max-width: 560px;
}

.form input {
  flex: 1;
  min-width: 220px;
  min-height: var(--touch-min);
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}

.form input::placeholder {
  color: var(--white-55);
}

.form .btn {
  padding: 12px 16px;
  font-size: 13px;
}

.alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  max-width: 560px;
}

.alert.ok {
  border-color: rgba(124, 255, 193, 0.25);
}

.alert.err {
  border-color: rgba(255, 124, 124, 0.25);
}

/* Promo */
.promo {
  margin-top: 36px;
  margin-bottom: 8px;
}

.promo-inner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
  background: rgba(0, 0, 0, 0.2);
  min-height: 520px;
}

.promo-inner .promo-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 520px;
  max-height: 580px;
  object-fit: cover;
  object-position: center;
}

.promo-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease;
}

.promo-inner.promo-video-ended .promo-video {
  opacity: 0;
  pointer-events: none;
}

.promo-replay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.promo-replay:hover {
  background: rgba(0, 0, 0, 0.8);
}

.promo-unmute {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.promo-unmute:hover {
  background: rgba(0, 0, 0, 0.8);
}

.promo-inner.promo-video-ended .promo-unmute {
  opacity: 0;
  pointer-events: none;
}

.promo-unmute-icon {
  display: block;
}

.promo-unmute-on {
  display: none;
}

.promo-unmute.is-unmuted .promo-unmute-off {
  display: none;
}

.promo-unmute.is-unmuted .promo-unmute-on {
  display: block;
}

/* WHY US */
.section {
  margin-top: 28px;
  text-align: center;
}

.section h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.4px;
}

.section h2 .subtitle {
  opacity: 0.7;
}

.section .sub {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px 16px 14px;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.card .icon {
  margin-left: auto;
  margin-right: auto;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(101, 72, 157, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.95);
}

.icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.icon-loyal {
  color: #f2b95a;
}

.icon-global {
  color: #f2b95a;
}

.icon-fast {
  color: #ffdb8a;
}

.card b {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.card span {
  display: block;
  color: var(--white-74);
  font-size: 13px;
  line-height: 1.35;
}

/* Quote */
.quote {
  margin: 26px auto 0;
  max-width: 780px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.22);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 24px;
}

.quote-text {
  flex: 1;
  min-width: 0;
}

.quote .q {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.quote .by {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.quote-img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}

/* Footer */
footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

footer .tiny {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

footer a {
  color: #e9ddff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(233, 221, 255, 0.35);
}

footer a:hover {
  border-bottom-color: rgba(233, 221, 255, 0.7);
}

.footer-email {
  margin-top: 10px;
}

.footer-note {
  opacity: 0.75;
}

/* Hamburger otvoren — X ikona */
.hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Zatvori scroll kada je meni otvoren */
body.menu-open {
  overflow: hidden;
}

/* ========== RESPONSIVE — tablet */
@media (max-width: 920px) {
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .wrap {
    padding: 20px 16px 48px;
    padding-top: max(20px, var(--safe-top));
    overflow-x: hidden;
  }

  .nav {
    margin-bottom: 16px;
  }

  .hero {
    padding: 40px 24px 36px;
    border-radius: 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-title-line {
    display: inline-block;
    max-width: 100%;
  }

  .cta-row .micro {
    width: 100%;
    text-align: center;
  }

  .hero-media {
    justify-content: center;
    /* redosled: prvo tekst (hero-copy), pa slika ispod — ostaje DOM redosled */
  }

  .hero-media img {
    width: 280px;
    height: 240px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
  }

  .promo {
    margin-top: 28px;
    margin-bottom: 4px;
  }

  .promo-inner {
    border-radius: 18px;
    min-height: 280px;
  }

  .promo-inner .promo-img {
    min-height: 260px;
    max-height: 320px;
  }

  .section {
    margin-top: 24px;
  }

  .section h2 {
    font-size: 28px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  .quote {
    margin-top: 20px;
    padding: 16px;
  }

  .quote .q {
    font-size: 24px;
  }

  .quote-img {
    width: 100px;
    height: 100px;
  }

  footer {
    margin-top: 24px;
    padding-top: 16px;
  }
}

/* ========== RESPONSIVE — mobil (veći) */
@media (max-width: 600px) {
  .wrap {
    padding: 16px 14px 40px;
    padding-top: max(16px, var(--safe-top));
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  .brand {
    font-size: 22px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .pill {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 32px 20px 28px;
    border-radius: 18px;
  }

  .hero-copy h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero-copy p {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .cta-row {
    margin-top: 4px;
    gap: 10px;
  }

  /* Forma: stack na uskom ekranu, 16px font da iOS ne zumira */
  .form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 12px;
    border-radius: 18px;
  }

  .form input {
    min-width: 0;
    font-size: 16px; /* sprečava auto-zoom na iOS */
    padding: 12px 14px;
  }

  .form .btn {
    width: 100%;
    padding: 14px;
  }

  .alert {
    max-width: none;
  }

  .section h2 {
    font-size: 24px;
  }

  .section .sub {
    font-size: 13px;
  }

  .card {
    padding: 14px;
  }

  .quote {
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    gap: 16px;
  }

  .quote-img {
    width: 90px;
    height: 90px;
  }

  .quote .q {
    font-size: 20px;
  }

  .quote .by {
    font-size: 14px;
  }

  footer .tiny {
    font-size: 11px;
  }
}

/* ========== RESPONSIVE — mobil (mali) */
@media (max-width: 480px) {
  .wrap {
    padding: 14px 12px 36px;
    padding-top: max(14px, var(--safe-top));
  }

  .brand {
    font-size: 20px;
  }

  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .promo-inner {
    min-height: 240px;
  }

  .promo-inner .promo-img {
    min-height: 220px;
    max-height: 280px;
  }

  .section h2 {
    font-size: 22px;
  }

  .quote .q {
    font-size: 18px;
  }
}

/* ========== RESPONSIVE — vrlo mali ekran */
@media (max-width: 360px) {
  .wrap {
    padding: 12px 10px 32px;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .pill {
    flex: 1;
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-title-line {
    font-size: 0.95em;
  }

  .hero {
    padding: 28px 16px 24px;
  }

  .promo-inner {
    min-height: 220px;
  }

  .promo-inner .promo-img {
    min-height: 200px;
    max-height: 260px;
  }

  .section h2 {
    font-size: 20px;
  }
}
