/* ===== Xarol Collection — redisseny 2026 ===== */

:root{
  --pink-600: #E8557A;
  --pink-500: #FF6A88;
  --pink-400: #FF99AC;
  --pink-200: #FFC9D4;
  --pink-100: #FFE4EA;
  --pink-50:  #FFF6F8;
  --cream:    #FFFAF6;
  --ink-900:  #211A22;
  --ink-700:  #4A424C;
  --ink-500:  #837A87;
  --white:    #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 30px 60px -30px rgba(33, 26, 34, 0.25);
  --shadow-card: 0 16px 40px -20px rgba(33, 26, 34, 0.18);
  --header-h: 84px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wrap{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- progress bar ---------- */
.progress-bar{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink-500), var(--pink-400));
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(120deg, var(--pink-500), var(--pink-400));
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(255, 106, 136, 0.65);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(255, 106, 136, 0.75); }
.btn-outline{
  background: transparent;
  border-color: var(--ink-900);
  color: var(--ink-900);
}
.btn-outline:hover{ background: var(--ink-900); color: var(--white); transform: translateY(-2px); }
.btn-small{ padding: 10px 20px; font-size: 0.85rem; }
.btn[disabled]{ opacity: 0.55; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 250, 246, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(33,26,34,0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled{
  background: rgba(255, 250, 246, 0.92);
  box-shadow: 0 10px 30px -20px rgba(33,26,34,0.35);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink-900);
}
.brand img{ height: 34px; width: auto; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a{
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--pink-500);
  transition: width 0.25s ease;
}
.main-nav a:hover{ color: var(--ink-900); }
.main-nav a:hover::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: 16px; }
.social-icon{
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-700);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icon svg{ width: 17px; height: 17px; }
.social-icon:hover{ background: var(--pink-100); color: var(--pink-600); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span{
  width: 20px; height: 2px;
  background: var(--ink-900);
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  overflow: hidden;
}
.hero-blob{
  position: absolute;
  top: -20%;
  right: -18%;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  opacity: 0.16;
  filter: blur(10px);
  z-index: 0;
}
.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.eyebrow{
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-600);
  margin: 0 0 16px;
}
.eyebrow-light{ color: var(--pink-100); }
.hero-copy h1{
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom: 22px;
}
.text-gradient{
  background: linear-gradient(120deg, var(--pink-600), var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-text{
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 480px;
  margin: 0 0 34px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats{
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats div{ display: flex; flex-direction: column; }
.hero-stats strong{
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink-900);
}
.hero-stats span{ font-size: 0.85rem; color: var(--ink-500); }

.hero-media{ position: relative; }
.hero-watermark{
  position: absolute;
  top: -60px;
  right: -30px;
  width: 130%;
  max-width: none;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero-photo{
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- generic section ---------- */
.section{ padding: 110px 0; position: relative; }
.section-alt{ background: var(--white); }
.section-head{ max-width: 640px; margin: 0 0 52px; }
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 8px; }
.section-text{
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-500);
  margin: 16px 0 0;
}

/* ---------- gallery ---------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item{
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  box-shadow: var(--shadow-card);
}
.gallery-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.gallery-item::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(33,26,34,0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item:hover::after{ opacity: 1; }
.gallery-item:nth-child(4n+1){ grid-row: span 2; }

/* ---------- brands ---------- */
.brand-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.brand-item{
  background: var(--pink-50);
  border-radius: var(--radius-sm);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.brand-item img{
  max-height: 42px;
  width: auto;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.brand-item:hover{ background: var(--pink-100); transform: translateY(-3px); }
.brand-item:hover img{ filter: grayscale(0); opacity: 1; }

/* ---------- split section ---------- */
.split-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split-media img{
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.split-copy h2{ font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 8px; }

/* ---------- store card ---------- */
.store-card{
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--pink-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.store-media{ height: 100%; min-height: 380px; }
.store-media img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.store-info{ padding: 48px; display: flex; flex-direction: column; gap: 26px; }
.store-facts{ display: flex; flex-direction: column; gap: 18px; }
.store-facts li{ display: flex; gap: 14px; align-items: flex-start; }
.store-facts svg{ width: 22px; height: 22px; flex-shrink: 0; color: var(--pink-500); margin-top: 2px; }
.store-facts span{ font-size: 0.98rem; line-height: 1.55; color: var(--ink-700); }
.store-facts a{ color: var(--ink-900); font-weight: 600; }
.store-facts a:hover{ color: var(--pink-600); }
.store-sizes{ margin: 0; font-size: 0.95rem; color: var(--ink-500); }
.store-info .btn{ align-self: flex-start; }

/* ---------- quote / nosaltres ---------- */
.quote-section{
  background: linear-gradient(120deg, var(--pink-600), var(--pink-500) 55%, var(--pink-400));
  text-align: center;
  padding: 130px 0;
}
.quote{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 30px;
  line-height: 1.45;
}
.quote-highlight{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--white);
  font-weight: 600;
  margin: 0;
}
.quote-highlight span{
  display: inline-block;
  border-bottom: 3px solid rgba(255,255,255,0.6);
  padding-bottom: 4px;
}

/* ---------- contact ---------- */
.contact-inner{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.contact-info h2{ font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 8px; }
.contact-list{ margin: 34px 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list li{ display: flex; flex-direction: column; gap: 4px; }
.contact-list strong{ font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pink-600); }
.contact-list span a:hover{ color: var(--pink-600); }
.contact-socials{ display: flex; gap: 14px; }
.contact-socials a{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--pink-100);
  color: var(--pink-600);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.contact-socials svg{ width: 18px; height: 18px; }
.contact-socials a:hover{ background: var(--pink-500); color: var(--white); }

.contact-form-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-soft);
}
.form-note{
  font-size: 0.85rem;
  color: var(--ink-500);
  margin: 0 0 4px;
  min-height: 1.2em;
}
.form-note-ok{ color: #1a7a4c; font-weight: 600; }
.form-note-error{ color: var(--pink-600); font-weight: 600; }
.demo-form{ display: flex; flex-direction: column; gap: 18px; }
.demo-form label{
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-700);
}
.demo-form input, .demo-form textarea{
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--pink-100);
  background: var(--pink-50);
  color: var(--ink-900);
  resize: vertical;
}
.demo-form .btn{ margin-top: 8px; align-self: flex-start; }

/* ---------- footer ---------- */
.site-footer{ background: var(--ink-900); color: rgba(255,255,255,0.72); padding: 70px 0 0; }
.footer-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand{
  display: flex; align-items: center; gap: 10px;
}
.footer-brand img{
  filter: invert(1) brightness(2);
}
.footer-col h3{ color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-col p{ margin: 0 0 8px; font-size: 0.92rem; }
.footer-col a:hover{ color: var(--pink-300, var(--pink-400)); }
.footer-socials{ display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-bottom{ padding: 22px 0; font-size: 0.82rem; text-align: center; color: rgba(255,255,255,0.45); }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(33,26,34,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 3000;
  padding: 40px;
}
.lightbox.open{ display: flex; }
.lightbox img{ max-width: 90vw; max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox-close{
  position: absolute; top: 26px; right: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover{ background: rgba(255,255,255,0.22); }

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px){
  .gallery{ grid-template-columns: repeat(3, 1fr); }
  .brand-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 940px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .header-actions .btn-small{ display: none; }

  .main-nav.open{
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 20px 28px 30px;
    gap: 4px;
    box-shadow: 0 20px 30px -20px rgba(33,26,34,0.3);
  }
  .main-nav.open a{ padding: 12px 0; border-bottom: 1px solid var(--pink-50); }

  .hero-inner{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; max-width: 420px; margin: 0 auto; }
  .hero-copy{ text-align: center; }
  .hero-text{ margin-left: auto; margin-right: auto; }
  .hero-actions{ justify-content: center; }
  .hero-stats{ justify-content: center; }

  .split-inner{ grid-template-columns: 1fr; gap: 40px; }
  .split-media{ order: -1; }

  .store-card{ grid-template-columns: 1fr; }
  .store-media{ min-height: 260px; }

  .contact-inner{ grid-template-columns: 1fr; }
  .contact-form-card{ padding: 32px; }
}

@media (max-width: 680px){
  .wrap{ padding: 0 20px; }
  .section{ padding: 76px 0; }
  .hero{ padding: calc(var(--header-h) + 40px) 0 60px; }
  .gallery{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item:nth-child(4n+1){ grid-row: span 1; }
  .brand-grid{ grid-template-columns: repeat(2, 1fr); }
  .store-info{ padding: 30px; }
  .quote-section{ padding: 90px 0; }
  .footer-inner{ grid-template-columns: 1fr; }
}
