/* ==========================================================================
   IKON PARTITIONS — GALLERY PAGE STYLES
   ========================================================================== */

/* ==========================================================================
   GALLERY HERO (matches contact page hero)
   ========================================================================== */

.contact-hero {
  background: var(--bg-dark);
  padding: 80px 0;
}

/* Mobile-only hero extras (hidden on desktop) */
.gal-hero-count { display: none; }

.gal-hero-lines {
  position: absolute;
  inset: 0;
  display: none;
  justify-content: space-between;
  padding: 0 var(--padding-x);
  pointer-events: none;
  z-index: 1;
}

.gal-hero-lines span {
  display: block;
  width: 1px;
  height: 140%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(20deg);
  transform-origin: center;
}

.gal-hero-text{
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
    width: 70%;
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  align-items: end;
}

.contact-hero-left .section-tag {
  color: var(--primary);
}

.contact-hero-left .section-tag::before {
  background: var(--primary);
}

.contact-hero .page-hero-title {
  font-size: 58px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.14;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.contact-hero .italic-serif {
  font-style: italic;
  color: #D4B483;
}

.contact-hero .page-hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
}

@media (max-width: 992px) {
  .contact-hero { padding: 60px 0; }
  .contact-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-hero .page-hero-title { font-size: 40px; }
}

@media (max-width: 768px) {
  .contact-hero {
    position: relative;
    height: 500px;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .contact-hero .contact-hero-inner {
    position: relative;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
  }

  .contact-hero .section-tag { margin-bottom: 26px; }

  .contact-hero .page-hero-title {
    font-size: 48px;
    line-height: 1.08;
  }
  .contact-hero .page-hero-desc { font-size: 14px; }

  .contact-hero-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .gal-hero-count {
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    color: rgba(255, 255, 255, 0.22);
  }

  .gal-hero-text {
    width: 100%;
    font-size: 15px;
    line-height: 1.75;
  }

  .gal-hero-lines { display: flex; }

  .gal-grid { margin-top: 40px; }
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */

.gal-section {
  background: #ffffff;
  padding-bottom: 120px;
}

/* Sticky Filter Bar */
.gal-filters-bar {
  position: sticky;
  top: 96px;
  z-index: 500;
  background: #ffffff;
  border-bottom: 1px solid rgba(17,17,17,0.08);
  height: 53px;
}

.gal-filters-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding: 0 var(--padding-x);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.gal-filters-inner::-webkit-scrollbar { display: none; }

.gal-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 10.4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 24px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.gal-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 15px;
  padding: 0 8px;
  border-radius: 60px;
  background: rgba(249,244,240,1);
  color: var(--primary);
  font-size: 9.3px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.gal-tab.active .gal-tab-count {
  background: var(--primary);
  color: #090909;
}

.gal-tab:hover { color: var(--primary); }

.gal-tab.active {
  color: var(--text-dark);
  border-bottom-color: var(--primary);
}

/* ==========================================================================
   GALLERY GRID
   ========================================================================== */

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 16px;
  padding: 0 var(--padding-x);
  margin-top: 80px;
}

.gal-item {
  height: 300px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gal-item:hover img { transform: scale(1.05); }

.gal-hover {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gal-hover span {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 10px 24px;
  transition: border-color 0.3s, letter-spacing 0.3s;
}

.gal-item:hover .gal-hover { opacity: 1; }

.gal-item:hover .gal-hover span {
  border-color: var(--primary);
  letter-spacing: 4px;
}

@keyframes galFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   GALLERY CTA
   ========================================================================== */

.gal-cta {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 96px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.gal-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.gal-cta-title {
  font-family: 'Arial', sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.gal-cta-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 15.2px;
  font-weight: 300;
  color: #5A5550;
  line-height: 1.75;
  max-width: 460px;
}

.gal-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex-shrink: 0;
}

.gal-cta-btn { 
  white-space: nowrap; 
  background: #000;
  color: #fff;
  transition: all 0.3s;
}

.gal-cta-btn:hover { 
  white-space: nowrap; 
  background: #a3824b;
  color: #000;
  scale: 0.98;
  transform: matrix(0.98);
}


.gal-explore-link {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    text-align: center;
    width: 100%;
}

.gal-explore-link:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE — GALLERY PAGE
   ========================================================================== */

@media (max-width: 992px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-item { height: 180px; }

  .gal-cta-inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .gal-cta-actions { width: 100%; }
  .gal-cta-btn { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 576px) {
  .gal-grid {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }
  .gal-item { height: 220px; }
}

/* Mobile-only overrides (placed after base rules so they win on source order) */
@media (max-width: 768px) {
  .gal-section { padding-bottom: 64px; }

  /* "Like what you see?" CTA — fixed height, Figma spacing */
  .gal-cta {
    height: 490px;
    padding: 64px 24px;
  }
  .gal-cta-inner {
    padding-left: 0;
    padding-right: 0;
    gap: 48px;            /* text block ↔ buttons */
    height: 100%;
    justify-content: center;
  }
  /* 24px gap between tag, title and description */
  .gal-cta-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .gal-cta-text .section-tag { margin-bottom: 0; }
  .gal-cta-title { margin-bottom: 0; }
  /* 24px gap between the button and the Explore Products link */
  .gal-cta-actions { gap: 24px; }
  .gal-cta-btn { padding: 16px 32px; }
}
