/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

:root {
    --accent: #86d0d2; /* BRAND ACCENT COLOR */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER (center logo + menu right) === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75rem 0;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-center {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.logo {
  height: 150px;
  width: auto;
}

@media (max-width: 768px) {
  .logo {
    height: 80px !important;
    width: auto;
  }
}


/* Mobile: vse v eni koloni, centrirano */
@media (max-width:900px){
  .header-content{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto; /* logo, slogan, meni */
    gap:.5rem;
  }
  .header-center{ grid-column:1; grid-row:1; }
  .header-left{   grid-column:1; grid-row:2; }
  .header-right{  grid-column:1; grid-row:3; justify-self:center; }
  .main-nav{ justify-content:center; gap:1.25rem; }
}
@media (max-width: 768px) {
  .product-text {
    text-align: left !important;
  }

  .product-text .product-details {
    text-align: left !important;
    margin-left: auto;
    margin-right: auto;
  }
}




/* NAVIGATION */
.main-nav {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
}

/* HOVER + ACTIVE */
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    position: relative;
}

.main-nav a:hover {
    color: var(--accent);
}

/* ACTIVE (will be applied via JS scroll spy) */
.main-nav a.active {
    color: var(--accent);
    font-weight: 600;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 4px;
}


/* About Section */
.about {
    padding: 6rem 0 4rem;
    background-color: #fff;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-block {
    text-align: center;
    margin-bottom: 3rem;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-block h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-block p {
    font-size: 1.1rem;
    color: rgba(51, 51, 51, 0.8);
    line-height: 1.8;
}

/* =======================================
   ✅ NEW HERO SECTION — clean reset
======================================= */

.hero {
    width: 100%;
    text-align: center;
    background: linear-gradient(to bottom, #fff, rgba(179, 224, 225, 0.15));
    padding: 2rem 0 3rem;   /* minimal, da se lepo stisne */
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin: 0 auto 0.1rem !important;   /* logo → small spacing */
    display: block;
}

.slogan {
    font-size: 1.35rem;
    font-weight: 300;
    color: #555;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.45;
    max-width: 600px;
    margin: 0 auto !important;  /* centres tightly */
    opacity: 0.85;
}

/* MOBILE */
@media (max-width: 768px){
    .hero {
        padding: 1.5rem 0 2.5rem;
    }

    .hero-logo {
        height: 85px;
        margin-bottom: 0.3rem !important;
    }

    .slogan {
        font-size: 1rem;
        max-width: 90%;
    }
}


/* Products Section */
.products {
    padding: 6rem 0;
    background-color: rgba(179, 224, 225, 0.15);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #333;
}

/* PRODUCT ITEMS — desktop */
.product-item {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-reverse {
    grid-template-columns: 1fr 500px;
}

.product-reverse .product-image {
    order: 2;
}

.product-reverse .product-text {
    order: 1;
}

/* PRODUCT IMAGE */
.product-image {
    border: 4px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.product-item:hover .product-image {
    border-color: var(--accent);
}

/* PRODUCT TEXT */
.product-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-text p {
    font-size: 1.1rem;
    color: rgba(51, 51, 51, 0.8);
    line-height: 1.45;
}

/* JOIN */
.join {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.social-link .icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.social-link:hover .icon {
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: rgba(179, 224, 225, 0.15);
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.contact-link .icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.contact-link:hover .icon {
    transform: scale(1.1);
}

/* FOOTER */

.footer {
    padding: 2rem 0;
    background-color: #333;
    color: #fff;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
}


/* ✅ MOBILE FIX – image first, text below */
@media (max-width: 768px) {

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        justify-content: center;
        gap: 1.5rem;
    }

    .product-item,
    .product-reverse {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .product-image {
        order: 1 !important;
        width: 100%;
        height: 300px;
    }

    .product-text {
        order: 2 !important;
        text-align: center;
    }
}


/* Cursor on product images */
.zoom-img {
    cursor: zoom-in;
}
.product-text .product-details {
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
    margin-top: 1rem !important;
    padding: 0 !important;
    max-width: 420px !important;
}

.product-text .product-details p {
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
    margin: 0.05rem 0 !important;
    padding: 0 !important;
}

.product-details strong {
    color: #555 !important;
}
header.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}
html, body { overflow: visible !important; }
.container { overflow: visible !important; }

/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 900px){

  /* Glavna mreža → ena kolona */
  .header-content{
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important; /* logo, slogan, menu */
    gap: .25rem !important;
    text-align: center;
  }

  /* LOGO + slogan skupaj na sredini */
  .header-center{
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: center;
  }

  .slogan{
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin-top: .35rem !important;
    font-size: .85rem !important;
    padding: 0 .5rem;
  }

  /* MENI – na sredino pod slogan */
  .header-right{
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: center !important;
  }

  .main-nav{
    justify-content: center !important;
    gap: 1.25rem !important;
  }
}
/* ABOUT COLLAPSE */
.about-main-toggle {
  font-size: 3rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1.5rem;
  position: relative;
  color: #333;
}

/* + znak */
.about-main-toggle {
  position: relative;
  padding-right: 1.8rem;
}

.about-main-toggle::after {
  content: "⌄";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: #666;
  transition: transform .25s ease;
}

.about-main-toggle.active::after {
  content: "⌃";
}


.about-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.about-collapse.open {
  max-height: 2000px; /* dovolj za vse */
}

/* Notranji bloki */
.about-block {
  text-align: center;
  margin-bottom: 3rem;
}

.about-block h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.about-block p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(51, 51, 51, 0.8);
  max-width: 800px;
  margin: 0 auto;
}
/* Fix scroll offset for sticky header */
section[id] {
  scroll-margin-top: 100px; /* višina tvojega headerja */
}
.scarf-gallery-trigger {
  margin-top: 1rem;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: underline;
  color: #555;
  transition: 0.3s;
}

.scarf-gallery-trigger:hover {
  color: var(--accent);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightboxImage {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

/* Close button */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  padding: 10px;
}

.arrow-left {
  left: 25px;
}

.arrow-right {
  right: 25px;
}

.arrow:hover,
.close:hover {
  opacity: 0.7;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.product-lightbox.active {
  display: flex;
}

.product-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
}

.close-product {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 42px;
  color: white;
  cursor: pointer;
}
