/* ============================================================
   Kvantna Soba Jagodina — Main Stylesheet
   ============================================================
   TABLE OF CONTENTS:
   1. Reset & Variables
   2. Base
   3. Header / Navigation
   4. Buttons
   5. Hero Section
   6. Content Sections (Home)
   7. Image Boxes
   8. CTA Section
   9. Footer
   10. Products Page
   11. Experiences / Videos Page
   12. Responsive
   ============================================================ */


/* ── 1. RESET & VARIABLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --emerald-600:    #059669;
  --emerald-700:    #047857;
  --emerald-50:     #ecfdf5;
  --stone-50:       #fafaf9;
  --stone-100:      #f5f5f4;
  --stone-400:      #a8a29e;
  --stone-500:      #78716c;
  --stone-700:      #44403c;
  --stone-800:      #292524;
  --stone-900:      #1c1917;
  --blue-100:       #dbeafe;
  --white:          #ffffff;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 24px rgba(0,0,0,0.14);
  --shadow-xl:      0 25px 50px rgba(0,0,0,0.15);
  --radius-sm:      0.5rem;
  --radius-lg:      1rem;
  --transition:     0.2s ease;
}

html { scroll-behavior: smooth; }


/* ── 2. BASE ── */
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, var(--stone-50), var(--stone-100));
  min-height: 100vh;
  color: var(--stone-700);
  line-height: 1.6;
}

p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--stone-700);
}

.container    { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 64rem;  margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }


/* ── 3. HEADER / NAVIGATION ── */
header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--emerald-700);
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}


/* ── 4. BUTTONS ── */
/* Filled green button — used in nav + product cards */
.btn-primary {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--emerald-600);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover {
  background: var(--emerald-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.35);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Ghost text-only button — used in nav */
.btn-ghost {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  color: var(--emerald-700);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  color: var(--emerald-700);
  background: rgba(5,150,105,0.07);
}

/* Full-width card button */
.btn-card {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  background: var(--emerald-600);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-card:hover {
  background: var(--emerald-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.35);
}
.btn-card:active {
  transform: translateY(0);
  box-shadow: none;
}


/* ── 5. HERO SECTION ── */
.hero {
  position: relative;
  overflow: hidden;
  height: 50vh;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /*
   * ════════════════════════════════════════════
   * HERO IMAGE — replace URL below with your own
   * Place the file at: images/hero/hero.jpg
   * ════════════════════════════════════════════
   */
  background-image: url('../images/hero/hero.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}
/* Subtle Ken-Burns effect on load */
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}
.hero-bg { animation: heroZoom 1.2s ease forwards; }


/* ── 6. CONTENT SECTIONS (HOME) ── */
.bg-white { background: var(--white); }
.bg-stone  { background: var(--stone-50); }

.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.text-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.title-inline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-900);
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bullet-list li {
  font-size: 1.05rem;
  color: var(--stone-700);
  line-height: 1.75;
}

.usage-block        { display: flex; flex-direction: column; gap: 0.75rem; }
.usage-block .label { font-size: 1.05rem; font-weight: 600; color: var(--stone-800); }

/* Full-width text block (section 3) */
.full-text {
  max-width: 64rem;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Decorative blur blobs */
.relative  { position: relative; }
.blob-br, .blob-tl {
  position: absolute;
  width: 8rem; height: 8rem;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}
.blob-br { bottom: -1.5rem; right:  -1.5rem; background: var(--emerald-50); }
.blob-tl { top:    -1.5rem; left:   -1.5rem; background: var(--blue-100);   }


/* ── 7. IMAGE BOXES ── */
/* Contain (product/panel images) */
.img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--stone-100);
  transition: box-shadow var(--transition), transform var(--transition);
}
.img-box:hover {
  box-shadow: 0 32px 60px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}
.img-box img {
  width: 100%; height: auto;
  display: block;
  object-fit: contain;
}

/* Square crop (biotherapy photo) */
.img-box-square {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 1 / 1;
  transition: box-shadow var(--transition), transform var(--transition);
}
.img-box-square:hover {
  box-shadow: 0 32px 60px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}
.img-box-square img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}


/* ── 8. CTA SECTION ── */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
}
.cta-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.cta-inner .lead {
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.cta-inner .quote {
  font-size: 1.35rem;
  color: var(--emerald-50);
  line-height: 1.8;
  font-style: italic;
  text-decoration: underline;
  font-family: 'Playfair Display', Georgia, serif;
}


/* ── 9. FOOTER ── */
footer {
  background: var(--stone-800);
  color: #d6d3d1;
  padding: 3rem 0;
}
.footer-contact { max-width: 28rem; margin: 0 auto; }
.footer-contact h4   { font-weight: 600; color: var(--white); margin-bottom: 1rem; }
.footer-contact p    { color: var(--stone-400); margin-bottom: 0.5rem; font-size: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--stone-800);
  border-top-color: #44403c;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--stone-500);
  font-size: 0.9rem;
}


/* ── 10. PRODUCTS PAGE ── */
.info-section { padding: 4rem 0; background: var(--white); }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--emerald-700);
  margin-bottom: 2rem;
}

.info-body { display: flex; flex-direction: column; gap: 1rem; }
.semibold   { font-weight: 600; color: var(--stone-900); }

.num-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-left: 1.5rem;
}
.num-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--stone-700);
  line-height: 1.75;
}
.num-list .num { color: var(--emerald-600); font-weight: 700; flex-shrink: 0; }

a.external {
  color: var(--emerald-600);
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition);
}
a.external:hover { color: var(--emerald-700); }

.products-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--stone-900);
  padding-top: 1.5rem;
}

/* Products grid */
.products-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--stone-50), var(--stone-100));
}

.grid-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card:active { transform: translateY(-2px); }

.card-img { background: var(--stone-100); flex: 1; }
.card-img img { width: 100%; height: auto; display: block; object-fit: contain; }

.card-body { padding: 1.25rem 1.5rem 1.5rem; }


/* ── 11. EXPERIENCES / VIDEOS PAGE ── */
.experiences-section { padding: 5rem 0; }

.page-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--stone-900);
  text-align: center;
  margin-bottom: 4rem;
}

.grid-videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.video-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}


/* ── 12. RESPONSIVE ── */
@media (min-width: 640px) {
  .hero { height: 60vh; }
  .hero-bg { background-size: cover; }
}
@media (min-width: 768px) {
  .hero { height: 70vh; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .grid-videos   { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hero           { height: 100vh; }
  .two-col        { grid-template-columns: 1fr 1fr; }
  .grid-videos    { grid-template-columns: repeat(4, 1fr); }
}

/* ── FADE-IN SCROLL ANIMATION (driven by main.js) ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Active nav link */
nav a.active-link {
  background: var(--emerald-700) !important;
  box-shadow: 0 2px 8px rgba(5,150,105,0.3);
}


/* Small phones */
@media (max-width: 480px) {
  .logo        { font-size: 1rem; }
  .btn-primary,
  .btn-ghost   { padding: 0.4rem 1rem; font-size: 0.85rem; }
  .page-title  { font-size: 2rem; }
}
