/* =========================================================
   Roka-Tekk Lokal — PRODUCT PAGE
   Glass-morphism dark palette + responsive layout
   ========================================================= */

/* ---------- GLOBAL ELEMENT BEHAVIOUR ---------- */
html {
  scroll-behavior: smooth;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- GENERIC GLASS CARD ---------- */
.glass-card {
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 8px 24px rgb(0 0 0 /45%);
}

/* ---------- HERO ---------- */
.lokal-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("../img/code.gif") center/cover fixed no-repeat;
  overflow: hidden;
}

.lokal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 0;
}

.lokal-hero > * {
  position: relative;
  z-index: 1;
}

.hero-card--lokal {
  max-width: 820px;
}

/* ---------- SECTION HEADERS & UTILS ---------- */
.section-title {
  margin: 0;
  font-size: 2rem;
}

.subtitle {
  margin-top: .5rem;
  color: var(--text-300);
}

.back-top {
  width: fit-content;
  margin-inline: auto;
  margin-top: 1rem;
}

/* ---------- FEATURE GRID ---------- */
.feature-section {
  padding-block: 6rem 5rem;
}

.feature-card {
  max-width: 1100px;
  margin-inline: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-item h3 {
  margin: 1rem 0 .5rem 2.5rem;
  font-size: 1.25rem;
}

.feature-item ul {
  padding-left: 1.2rem;
  margin-left: 2.6rem;
  color: var(--text-300);
  line-height: 1.45;
}

/* IMAGE PREVIEW + HOVER */
.feature-img {
  position: relative;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgb(0 0 0 /40%);
}

.feature-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .4s ease;
}

.feature-img:hover img,
.feature-img:focus-within img {
  transform: scale(1.08);
}

/* ---------- QUALITY / SECURITY SECTION ---------- */
.quality-section {
  padding-block: 5.5rem;
}

.oath-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.oath-img.glass-frame,
.spotlight-img.glass-frame {
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 0 0 /45%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background: var(--glass-bg);
}

.oath-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------  S H O W C A S E  ---------- */
.spotlight-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: url("../img/code.gif") center/cover fixed no-repeat;
  overflow: hidden;
}

.spotlight-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 0;
}

.spotlight-section > * {
  position: relative;
  z-index: 1;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.spotlight-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* ---------- REFUND ---------- */
.refund-section {
  padding-block: 5rem;
}

.refund-card {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

/* ---------- INTERESTED / WAIT-LIST FORM ---------- */
.interested-section {
  padding-block: 6rem 7rem;
}

.interested-card {
  max-width: 720px;
  margin-inline: auto;
}

.interest-form {
  margin-top: 2.5rem;
}

.form-grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem 2rem;*/
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  row-gap: 0.5rem;
  margin: 0 auto;
  max-width: 600px;
}

.form-grid label {
  width: 100%;
}

label span {
  display: block;
  font-size: .85rem;
  margin-bottom: .4rem;
  opacity: .8;
}

input {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: .5rem;
  border: 1px solid var(--glass-border);
  background: var(--bg-600);
  color: var(--text-100);
}

input::placeholder {
  opacity: .6;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.form-msg {
  margin-top: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  transition: opacity .25s ease;
}

.interest-form .btn-primary {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 1.4rem auto 1.4rem;
}

.interested-card .btn-secondary {
  display: block;
  width: max-content;
  margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: .9rem 1.6rem;
  font-weight: 600;
  border-radius: .5rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-900);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-100);
}

.btn-secondary:hover {
  background: var(--hover-bg);
}

/* ---------- LIGHT-BOX ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  border-radius: .75rem;
  box-shadow: 0 12px 40px rgb(0 0 0 /60%);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.75rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text-100);
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: var(--hover-bg);
}

/* ---------- SMALL-SCREEN TWEAKS ---------- */
@media (max-width: 900px) {
  .oath-layout,
  .spotlight-layout {
    grid-template-columns: 1fr;
  }

  .spotlight-img img {
    height: auto;
  }
}

@media (max-width: 600px) {
  .hero-card--lokal {
    padding: 1.75rem 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .feature-img img {
    height: 150px;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }

  .lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .spotlight-section {
    min-height: 60vh;
  }
}
