/* ============================================================
   LUCKY AUTO SALON — Coming Soon
   ============================================================ */

:root {
  --bg-black: #050505;
  --bg-panel: #0a0a0a;
  --red-primary: #e01b24;
  --red-dark: #d61a21;
  --red-button: #b31217;
  --red-glow: rgba(220, 20, 30, 0.35);
  --white: #f5f5f5;
  --gray-text: #b8b8b8;
  --gray-muted: #8a8a8a;
  --input-bg: #141414;
  --input-border: #2a2a2a;
  --divider: #3a1518;
  --font: 'Montserrat', 'Segoe UI', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Stranica / okvir ---------- */

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Pozadina u tonovima hero fotografije (uzorkovano sa slike: rubovi #020202–#140404,
     crveno-crni ambijent) — kontinuiran gradijent bez granice ka slici */
  background: radial-gradient(ellipse 95% 80% at 50% 56%,
    #0d0405 0%,
    #0b0304 28%,
    #080303 50%,
    #060303 70%,
    #040303 88%,
    #030303 100%);
}

/* Ambijent van hero slike — vertikalni crveni snopovi uz ivice */
.page::before,
.page::after {
  content: '';
  position: absolute;
  top: 18%;
  width: 220px;
  height: 60%;
  pointer-events: none;
  z-index: 1;
  filter: blur(60px);
}
.page::before {
  left: -120px;
  background: radial-gradient(ellipse at left center, rgba(220, 20, 30, 0.22), transparent 70%);
}
.page::after {
  right: -120px;
  background: radial-gradient(ellipse at right center, rgba(220, 20, 30, 0.22), transparent 70%);
}

/* ---------- Hero slika (pozadinska) ---------- */

.hero-media {
  position: absolute;
  top: clamp(90px, 12.5%, 160px);
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 125vh);
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}
/* Meko stapanje: dubok, postepen mask fade na samoj slici — slika ostaje oštra i pune
   veličine. Fade počinje duboko unutar slike (solid jezgro ~26–74%) i ide kroz mnogo
   međukoraka (eased krivulja) da ne bude ni vidljivog ruba ni bandinga. */
.hero-media img {
  -webkit-mask-image:
    linear-gradient(90deg,
      transparent 0%, rgba(0,0,0,.05) 4%, rgba(0,0,0,.14) 8%, rgba(0,0,0,.28) 12%,
      rgba(0,0,0,.48) 16%, rgba(0,0,0,.68) 19%, rgba(0,0,0,.88) 22%, #000 26%,
      #000 74%, rgba(0,0,0,.88) 78%, rgba(0,0,0,.68) 81%, rgba(0,0,0,.48) 84%,
      rgba(0,0,0,.28) 88%, rgba(0,0,0,.14) 92%, rgba(0,0,0,.05) 96%, transparent 100%),
    linear-gradient(180deg,
      transparent 0%, rgba(0,0,0,.08) 5%, rgba(0,0,0,.25) 10%, rgba(0,0,0,.5) 14%,
      rgba(0,0,0,.75) 17%, #000 21%,
      #000 78%, rgba(0,0,0,.8) 82%, rgba(0,0,0,.55) 86%, rgba(0,0,0,.32) 90%,
      rgba(0,0,0,.15) 94%, rgba(0,0,0,.05) 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg,
      transparent 0%, rgba(0,0,0,.05) 4%, rgba(0,0,0,.14) 8%, rgba(0,0,0,.28) 12%,
      rgba(0,0,0,.48) 16%, rgba(0,0,0,.68) 19%, rgba(0,0,0,.88) 22%, #000 26%,
      #000 74%, rgba(0,0,0,.88) 78%, rgba(0,0,0,.68) 81%, rgba(0,0,0,.48) 84%,
      rgba(0,0,0,.28) 88%, rgba(0,0,0,.14) 92%, rgba(0,0,0,.05) 96%, transparent 100%),
    linear-gradient(180deg,
      transparent 0%, rgba(0,0,0,.08) 5%, rgba(0,0,0,.25) 10%, rgba(0,0,0,.5) 14%,
      rgba(0,0,0,.75) 17%, #000 21%,
      #000 78%, rgba(0,0,0,.8) 82%, rgba(0,0,0,.55) 86%, rgba(0,0,0,.32) 90%,
      rgba(0,0,0,.15) 94%, rgba(0,0,0,.05) 97%, transparent 100%);
  mask-composite: intersect;
}
/* Suptilan crveni glow oko auta — višestepeni pad do nule, bez vidljive granice.
   (Nema više tamne elipsaste podloge — usklađena .page pozadina je preuzela tu ulogu.) */
.hero-media::before {
  content: '';
  position: absolute;
  inset: -16% -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 60%,
    rgba(150, 26, 26, 0.16) 0%,
    rgba(140, 22, 24, 0.10) 35%,
    rgba(120, 18, 20, 0.05) 58%,
    rgba(110, 16, 18, 0.02) 78%,
    transparent 100%);
  filter: blur(50px);
}
/* Blagi odsjaj crvenog platna na podu ispod slike */
.main::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  width: 60%;
  height: 22%;
  z-index: -1;
  background: radial-gradient(ellipse at center top, rgba(140, 12, 18, 0.18), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

/* Sav sadržaj iznad slike */
.header, .main, .footer { position: relative; z-index: 2; }

/* ---------- Header ---------- */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 44px 48px 0;
}

.logo {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--white);
}

.header-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 4px;
}
.header-note .slash {
  display: block;
  width: 2px;
  height: 30px;
  background: var(--red-primary);
  transform: skewX(-18deg);
  margin-top: 2px;
}
.header-note p {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 0;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Main ---------- */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 0 48px;
}

/* ---------- Hero tekst ---------- */

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 34px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: uppercase;
  color: var(--red-primary);
}

.eyebrow-line {
  display: block;
  width: 62px;
  height: 1px;
  margin: 14px auto 18px;
  background: rgba(224, 27, 36, 0.65);
}

.title {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-transform: uppercase;
  line-height: 1.04;
  color: var(--white);
}

.subtitle {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
}
.subtitle-white { color: var(--white); }
.subtitle-red { color: var(--red-primary); }

.lead {
  margin-top: 14px;
  max-width: 560px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--gray-text);
}

/* Mobilna hero slika u toku — skrivena na desktopu */
.hero-inline { display: none; }

/* ---------- Newsletter forma ---------- */

.signup {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 26px;
}

.signup-label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: #d8d8d8;
  margin-bottom: 20px;
}
.signup-label::before,
.signup-label::after {
  content: '';
  width: 52px;
  height: 1px;
  background: var(--divider);
}

.signup-form {
  position: relative;
  width: min(620px, 100%);
}

.signup-input {
  width: 100%;
  height: 58px;
  border-radius: 999px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  padding: 0 200px 0 28px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.signup-input::placeholder { color: var(--gray-muted); }
.signup-input:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 14px var(--red-glow);
}

.signup-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  background: linear-gradient(90deg, var(--red-button), var(--red-dark));
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.3s, background 0.3s;
}
.signup-btn:hover { filter: brightness(1.18); }
.signup-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.icon-arrow { transition: transform 0.3s; }
.signup-btn:hover .icon-arrow { transform: translateX(4px); }

.signup-success {
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 58px;
  color: var(--white);
}
.signup-success span { color: var(--red-primary); }

/* ---------- Footer ---------- */

.footer { padding: 0 48px 22px; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 6px;
}

.contacts {
  display: flex;
  align-items: center;
  gap: 26px;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #d0d0d0;
  transition: color 0.3s;
}
.contact:hover { color: var(--white); }
.contact-icon { color: var(--red-primary); flex: none; }

.contact-divider {
  width: 1px;
  height: 26px;
  background: var(--divider);
}

.socials, .mobile-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mobile-icons { display: none; }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(224, 27, 36, 0.55);
  border-radius: 50%;
  color: var(--red-primary);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.social:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
}
.social:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.copyright {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gray-muted);
}

/* Prelomi redova po prikazu */
.m-br { display: none; }
.d-br { display: inline; }

/* ---------- Fullscreen mobilni meni ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.96);
}
.menu-overlay[hidden] { display: none; }

.menu-close {
  position: absolute;
  top: 26px;
  right: 24px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.menu-nav > a {
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--white);
}
.menu-socials {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* ---------- Ulazna animacija ---------- */

.anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.loaded .anim { opacity: 1; transform: none; }
body.loaded .anim-1 { transition-delay: 0s; }
body.loaded .anim-2 { transition-delay: 0.12s; }
body.loaded .anim-3 { transition-delay: 0.24s; }
body.loaded .anim-4 { transition-delay: 0.36s; }
body.loaded .anim-5 { transition-delay: 0.48s; }
body.loaded .anim-6 { transition-delay: 0.6s; }
body.loaded .anim-7 { transition-delay: 0.72s; }

/* Hero slika bez translate animacije (samo fade) */
.hero-media { opacity: 0; transition: opacity 0.8s ease 0.3s; }
body.loaded .hero-media { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .anim, .hero-media {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .icon-arrow { transition: none; }
}

/* ============================================================
   PRELAZNA VERZIJA (481–1023px)
   ============================================================ */

@media (max-width: 1023px) {
  .header { padding: 32px 32px 0; }
  .main { padding: 0 32px; }
  .footer { padding: 0 32px 20px; }

  .footer-row {
    flex-direction: column;
    gap: 20px;
  }
  .contacts { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) and (min-width: 481px) {
  .signup-input { padding-right: 28px; }
  .signup-btn {
    position: static;
    margin-top: 12px;
    width: 100%;
    height: 54px;
    justify-content: center;
  }
}

/* ============================================================
   MOBILNA VERZIJA (≤480px)
   ============================================================ */

@media (max-width: 480px) {
  .m-br { display: inline; }
  .d-br { display: none; }

  .page::before, .page::after { width: 120px; filter: blur(40px); }

  /* Slika ide u tok dokumenta */
  .hero-media { display: none; }
  .hero-inline {
    display: block;
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 78vw;
  }
  /* Suptilan crveni glow oko auta — višestepeni pad, bez vidljive granice */
  .hero-inline::before {
    content: '';
    position: absolute;
    inset: -14% -8%;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 58%,
      rgba(150, 26, 26, 0.18) 0%,
      rgba(140, 22, 24, 0.11) 35%,
      rgba(120, 18, 20, 0.05) 60%,
      rgba(110, 16, 18, 0.02) 80%,
      transparent 100%);
    filter: blur(36px);
  }
  /* Slika sa dubokim, postepenim mask fade-om — oštra, puna veličina */
  .hero-inline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/lucky-auto-covered-suv-mobile.webp') center 58% / cover no-repeat;
    -webkit-mask-image:
      linear-gradient(90deg,
        transparent 0%, rgba(0,0,0,.06) 5%, rgba(0,0,0,.16) 9%, rgba(0,0,0,.3) 13%,
        rgba(0,0,0,.5) 17%, rgba(0,0,0,.72) 20%, rgba(0,0,0,.9) 23%, #000 27%,
        #000 73%, rgba(0,0,0,.9) 77%, rgba(0,0,0,.72) 80%, rgba(0,0,0,.5) 83%,
        rgba(0,0,0,.3) 87%, rgba(0,0,0,.16) 91%, rgba(0,0,0,.06) 95%, transparent 100%),
      linear-gradient(180deg,
        transparent 0%, rgba(0,0,0,.1) 5%, rgba(0,0,0,.3) 10%, rgba(0,0,0,.55) 14%,
        rgba(0,0,0,.8) 17%, #000 21%,
        #000 79%, rgba(0,0,0,.8) 83%, rgba(0,0,0,.55) 87%, rgba(0,0,0,.3) 91%,
        rgba(0,0,0,.12) 95%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg,
        transparent 0%, rgba(0,0,0,.06) 5%, rgba(0,0,0,.16) 9%, rgba(0,0,0,.3) 13%,
        rgba(0,0,0,.5) 17%, rgba(0,0,0,.72) 20%, rgba(0,0,0,.9) 23%, #000 27%,
        #000 73%, rgba(0,0,0,.9) 77%, rgba(0,0,0,.72) 80%, rgba(0,0,0,.5) 83%,
        rgba(0,0,0,.3) 87%, rgba(0,0,0,.16) 91%, rgba(0,0,0,.06) 95%, transparent 100%),
      linear-gradient(180deg,
        transparent 0%, rgba(0,0,0,.1) 5%, rgba(0,0,0,.3) 10%, rgba(0,0,0,.55) 14%,
        rgba(0,0,0,.8) 17%, #000 21%,
        #000 79%, rgba(0,0,0,.8) 83%, rgba(0,0,0,.55) 87%, rgba(0,0,0,.3) 91%,
        rgba(0,0,0,.12) 95%, transparent 100%);
    mask-composite: intersect;
  }

  .header {
    padding: 26px 24px 0;
    align-items: center;
  }
  .logo { font-size: 17px; }
  .header-note { display: none; }
  .hamburger { display: flex; }

  .main { padding: 0 24px; }

  .hero-text { margin-top: 34px; }

  .eyebrow { font-size: 12px; }
  .eyebrow-line { margin: 14px auto 20px; }

  .title {
    font-size: clamp(2.75rem, 12vw, 3.25rem);
    line-height: 1.22;
  }

  .subtitle {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.9;
  }

  .lead {
    margin-top: 16px;
    font-size: 14.5px;
    max-width: 320px;
  }

  .signup { padding-bottom: 10px; margin-top: 18px; }
  .signup-label {
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    white-space: nowrap;
    gap: 12px;
  }
  .signup-label::before, .signup-label::after { width: 26px; }

  .signup-form { width: 100%; }
  .signup-input {
    height: 54px;
    border-radius: 14px;
    padding: 0 20px;
    font-size: 15px;
  }
  .signup-btn {
    position: static;
    margin-top: 14px;
    width: 100%;
    height: 54px;
    border-radius: 999px;
    justify-content: center;
  }
  .signup-success { line-height: 1.6; padding: 16px 0; }

  .footer { padding: 0 24px 20px; }
  .footer-row { gap: 0; padding-top: 14px; }
  .contacts, .socials { display: none; }
  .mobile-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  .copyright {
    margin-top: 18px;
    line-height: 1.6;
  }
}

/* Vrlo male visine ekrana — dozvoli normalan skrol */
@media (max-height: 700px) and (min-width: 1024px) {
  .title { font-size: clamp(2.5rem, 6vh, 4rem); }
}

/* Semantički address element ne smije mijenjati postojeći izgled kontakata. */
address.contacts { font-style: normal; }
