/* styles.css - FULL replacement */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #222;
  line-height: 1.5;
  background: linear-gradient(135deg,#f6d9ff 0%, #d7f0ff 50%, #f1e6ff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{ max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo{ display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo img{ border-radius: 999px; box-shadow: 0 12px 30px rgba(25,12,70,0.12); }
.brand strong{ letter-spacing: .08em; }
.byline{ display: block; font-size: .8rem; color: #6e6e77; }

/* nav */
.site-nav{ display: flex; gap: 22px; align-items: center; }
.site-nav .nav-link{
  position: relative;
  text-decoration: none;
  color: rgba(15,15,27,0.7);
  font-weight: 600;
  padding: 8px 4px;
}
.site-nav .nav-link::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,#ffe1f2,#b9d8ff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus::after{ transform: scaleX(1); }

/* CTA */
.cta{
  background: linear-gradient(90deg,#ffd0e6,#c7dfff);
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(138,33,123,0.12);
  text-decoration: none;
  color: #2b1b3a;
  font-weight: 700;
}

/* Hero */
.hero{ padding: 48px 0 28px; }
.hero-inner{
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.hero-left{ flex: 1; }

.kicker{ color: #9b8fa8; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }

.title{ font-size: 44px; margin: 6px 0 12px; color: #222; }
.title .accent{
  background: linear-gradient(90deg,#ffc3de,#bfe8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead{ color: #5c5662; max-width: 760px; margin-bottom: 18px; }

/* fade-in helper (other pages) */
.fade-in{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .15s ease-out, transform .15s ease-out;
}
.fade-in.inview{ opacity: 1; transform: none; }

/* Gallery: compact hero */
.hero-compact{ padding: 26px 0 8px; }
.hero-compact .hero-inner{ padding-bottom: 8px; }
.hero-compact .title{ font-size: 40px; }

/* Gallery grid */
.ig-section{ padding: 10px 0 56px; }

.ig-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.ig-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ig-tile{
  display: block;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 18px 38px rgba(25,12,70,0.10);
  cursor: pointer; /* NOT zoom-in */
}

.ig-tile img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  border-radius: 14px;
}

/* no fade-in on gallery tiles */
.page-gallery .ig-tile,
.page-gallery .ig-tile *{
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Gallery title */
.page-gallery .gallery-title{
  font-family: "Work Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: rgba(25, 25, 35, 0.92);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.35),
    0 8px 22px rgba(160,120,255,0.18);
}

/* Lightbox */
.lb-lock{ overflow: hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.lightbox.is-open{
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 18, 0.62);
  /* Removed blur so it doesn’t feel “muddy” */
}

.lightbox__figure{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox__img{
  /* IMPORTANT: never upscale above native size */
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;

  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.02);
}

.lightbox__close{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border: 0;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
}

.lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
  width: 48px;
  height: 60px;
  border-radius: 16px;
  font-size: 34px;
  cursor: pointer;
}

.lightbox__prev{ left: 14px; }
.lightbox__next{ right: 14px; }

.lightbox__close:hover,
.lightbox__nav:hover{
  background: rgba(255,255,255,0.28);
}

/* responsive */
@media (max-width: 900px){
  .hero-inner{ flex-direction: column; padding: 16px; }
  .ig-container{ max-width: 900px; }
  .ig-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .site-nav{ display: none; }
}

@media (max-width: 520px){
  .ig-grid{ grid-template-columns: 1fr; gap: 12px; }
  .title{ font-size: 32px; }
  .header-inner{ padding: 12px; }
  .cta{ padding: 8px 14px; }
}
