/* =========================================
   SECTION 1: COLLECTIONS HERO
   Full-width hero with background image
   (SEO + Performance + Accessibility SAFE)
========================================= */

.collections-hero {
  position: relative;
  width: 100%;

  /* CLS-safe height clamp */
  min-height: min(80vh, 820px);

  background-image: url("assets/collection-page-image/hero-image-1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  /* Performance */
  will-change: transform;
}

/* Overlay for readability */
.collections-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.55)
  );
  z-index: 1;
}

/* Content wrapper */
.collections-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding-top: 80px;
  padding-bottom: 80px;
  color: #ffffff;
}

/* Title */
.collections-hero__title {
  font-family: var(--font-primary);
  font-size: 48px;
  line-height: 58px;
  letter-spacing: -1.2px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Subtitle */
.collections-hero__subtitle {
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.3px;
  opacity: 0.9;
  margin: 0 auto 32px;
}

/* Desktop subtitle */
.subtitle-desktop {
  display: block;
}

/* Mobile subtitle */
.subtitle-mobile {
  display: none;
}

/* Buttons */
.collections-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Outline button contrast on dark hero */
.collections-hero .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.collections-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Scroll hint */
.collections-hero__scroll {
  border: none;
  background: transparent;
  color: #ffffff;

  font-family: var(--font-secondary);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  cursor: pointer;
  opacity: 0.9;

  transition: opacity 0.2s ease;

  /* Motion allowed by default */
  animation: exploreBounce 1.6s ease-in-out infinite;
}

.collections-hero__scroll-icon {
  font-size: 16px;
}

.collections-hero__scroll:hover {
  opacity: 1;
}

/* Bounce animation */
@keyframes exploreBounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

/* Tablet */
@media (max-width: 991px) {
  .collections-hero__title {
    font-size: 40px;
    line-height: 50px;
  }

  .collections-hero__subtitle {
    font-size: 14px;
    line-height: 22px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .collections-hero {
    min-height: min(70vh, 700px);
  }

  .collections-hero__title {
    font-size: 32px;
    line-height: 40px;
  }

  .subtitle-desktop {
    display: none;
  }

  .subtitle-mobile {
    display: block;
    max-width: 90%;
    margin: 0 auto 24px;
  }

  .collections-hero__btn-primary,
  .collections-hero__btn-secondary {
    display: none !important;
  }

  .collections-hero__buttons {
    margin-bottom: 16px;
  }
}

/* =========================================
   ACCESSIBILITY — REDUCED MOTION
========================================= */
@media (prefers-reduced-motion: reduce) {
  .collections-hero__scroll {
    animation: none !important;
  }
}

/* =========================================
   SECTION: BRAND PHILOSOPHY MARQUEE
   (SEO + Performance + Accessibility SAFE)
========================================= */

.philosophy-marquee {
  background-color: #fafaf9;
  overflow: hidden;
  position: relative;
  padding-block: 32px;
}

@media (min-width: 768px) {
  .philosophy-marquee {
    padding-block: 48px;
  }
}

.philosophy-marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: scroll-left-to-right 27s linear infinite;

  /* Performance */
  will-change: transform;
}

@media (min-width: 768px) {
  .philosophy-marquee__track {
    animation-duration: 12s;
  }
}

.philosophy-marquee__set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 48px;
  padding-inline: 48px;
}

@media (min-width: 768px) {
  .philosophy-marquee__set {
    gap: 64px;
    padding-inline: 64px;
  }
}

@media (min-width: 1024px) {
  .philosophy-marquee__set {
    gap: 80px;
    padding-inline: 80px;
  }
}

.philosophy-marquee__set span {
  font-family: var(--font-secondary);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #57534e;
  white-space: nowrap;
}

/* Marquee animation */
@keyframes scroll-left-to-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* Reduced motion — marquee stops */
@media (prefers-reduced-motion: reduce) {
  .philosophy-marquee__track {
    animation: none !important;
    transform: translateX(0) !important;
  }
}



/* =========================================
   SECTION: GRANITE COLLECTION BLOCK
   (SEO + Performance + Accessibility SAFE)
========================================= */

.collection-block {
  width: 100%;
  padding: 72px 0 96px;
  background-color: #ffffff;
}

.collection-block--granite {
  border-top: 1px solid #f3f3f3;
}

/* -----------------------------------------
   HEADER
----------------------------------------- */

.collection-block__header {
  margin-bottom: 32px;
}

.collection-block__title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.collection-block__title {
  font-family: var(--font-primary);
  font-size: 34px;
  line-height: 44px;
  letter-spacing: -0.7px;
  font-weight: 600;
  color: var(--text-charcoal);
}

.collection-block__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--outline-hover);
  font-family: var(--font-secondary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-blue);
}

.collection-block__subtitle {
  max-width: 560px;
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.3px;
  color: var(--text-charcoal);
  opacity: 0.9;
}

/* =========================================
   GRANITE GRID
========================================= */

.granite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .granite-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* -----------------------------------------
   CARD BASE
----------------------------------------- */

.granite-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f4f4;
  cursor: pointer;

  /* Performance */
  contain: layout paint;
}

/* Gradient fade */
.granite-card--with-fade::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  z-index: 1;
}

/* Image */
.granite-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform 0.35s ease;
  will-change: transform;
}

/* Hover */
.granite-card:hover img {
  transform: scale(1.03);
}

/* =========================================
   IMAGE PLACEMENT
========================================= */

/* Hero */
.granite-card--hero {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 320px;
}

/* Tall */
.granite-card--tall {
  grid-row: span 2;
  min-height: 320px;
}

/* Wide */
.granite-card--wide {
  grid-column: span 2;
  min-height: 200px;
}

/* Small */
.granite-card--small {
  min-height: 180px;
}

/* Text tile */
.granite-card--text-tile {
  grid-column: span 2;
  min-height: 200px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fafafa;
  padding: 24px;

  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.10),
    0 18px 40px rgba(15, 23, 42, 0.08);

  text-align: center;
}

/* -----------------------------------------
   LABELS & TAGS
----------------------------------------- */

.granite-card__label,
.granite-card__tag {
  position: absolute;
  z-index: 2;
}

.granite-card__label {
  bottom: 20px;
  left: 24px;

  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.3px;
  color: #ffffff;

  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.granite-card__label--right {
  left: auto;
  right: 24px;
}

.granite-card__tag {
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 6px;

  background: rgba(0, 0, 0, 0.65);
  font-family: var(--font-secondary);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

/* -----------------------------------------
   TEXT TILE CONTENT
----------------------------------------- */

.granite-text-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.granite-text-line {
  font-family: var(--font-primary);
  font-size: 20px;
  line-height: 26px;
  color: var(--text-charcoal);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {

  .collection-block {
    padding: 56px 0 80px;
  }

  .collection-block__title-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .granite-grid {
    gap: 14px;
  }

  .granite-card--hero {
    min-height: 260px;
  }

  .granite-card--tall {
    min-height: 240px;
  }

  .granite-card--wide,
  .granite-card--text-tile {
    min-height: 200px;
  }

  .granite-card--small {
    min-height: 180px;
  }

  .granite-text-line {
    font-size: 18px;
    line-height: 24px;
  }
}

/* =========================================
   CTA
========================================= */

.collection-block__cta {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.collection-block__cta-btn {
  font-size: 13px;
  padding-inline: 26px;
  gap: 6px;
}

.collection-block__cta-icon {
  font-size: 14px;
}

/* =========================================
   ACCESSIBILITY — REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  .granite-card img {
    transition: none !important;
    transform: none !important;
  }
}

/* =========================================
   SECTION: EXOTIC QUARTZITE COLLECTION
   (SEO + PERFORMANCE + A11Y SAFE)
========================================= */

/* Divider from previous section */
.collection-block--quartzite {
  border-top: 1px solid #f3f3f3;
}

/* =========================================
   QUARTZITE GRID SYSTEM
========================================= */

.quartzite-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

/* -----------------------------------------
   CARD BASE
----------------------------------------- */

.quartzite-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f4f4;
  cursor: pointer;

  /* Performance containment */
  contain: layout paint;
}

.quartzite-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform 0.5s ease;
  will-change: transform;
}

.quartzite-card:hover img {
  transform: scale(1.04);
}

/* -----------------------------------------
   GRADIENT OVERLAY
----------------------------------------- */

.quartzite-card--with-fade::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  z-index: 1;
}

/* -----------------------------------------
   LABELS & TAGS
----------------------------------------- */

.quartzite-card__label,
.quartzite-card__tag {
  position: absolute;
  z-index: 2;
}

.quartzite-card__label {
  bottom: 24px;
  left: 24px;

  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quartzite-card__tag {
  top: 16px;
  right: 16px;

  padding: 6px 12px;
  border-radius: 6px;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);

  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

/* -----------------------------------------
   TEXT TILE
----------------------------------------- */

.quartzite-card--text-tile {
  background: #fafafa;
  border: 1px solid #eeeeee;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quartzite-text-line {
  font-family: var(--font-primary);
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-charcoal);
}

/* =========================================
   GRID VARIATIONS (UNCHANGED LAYOUT)
========================================= */

/* TOP GRID */
.quartzite-grid--top {
  grid-template-columns: 1fr 1.5fr;
  grid-auto-rows: 350px;
}

/* MIDDLE GRID */
.quartzite-grid--middle {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
}

/* BOTTOM GRID */
.quartzite-grid--bottom {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 240px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {
  .quartzite-grid--top {
    grid-template-columns: 1fr 1.2fr;
    grid-auto-rows: 280px;
  }

  .quartzite-grid--middle {
    grid-auto-rows: 180px;
  }

  .quartzite-grid--bottom {
    grid-auto-rows: 200px;
  }
}

@media (max-width: 600px) {

  .quartzite-grid--top {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .quartzite-grid--middle {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
    gap: 12px;
  }

  /* Emphasized text tile on mobile */
  .quartzite-card--text-tile {
    grid-column: 1 / -1;
    order: 3;
  }

  .quartzite-grid--bottom {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}

/* =========================================
   ACCESSIBILITY — REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  .quartzite-card img {
    transition: none !important;
    transform: none !important;
  }
}

/* =========================================
   INSPIRING TRANSFORMATIONS
   MASONRY GRID SYSTEM (CLEAN & SAFE)
========================================= */

/* Grid wrapper */
.masonry-grid {
  display: grid;
  grid-template-columns: 1fr;          /* Mobile: single column */
  gap: 16px;

  /* Prevent row stretching */
  grid-auto-rows: min-content;
}

/* Tablet */
@media (min-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* -----------------------------------------
   GRID ITEMS
----------------------------------------- */

.masonry-item,
.stat-tile {
  width: 100%;
  align-self: start;          /* Critical for masonry effect */
}

/* Image behavior */
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------------------
   STAT TILE (IMAGE-LIKE BEHAVIOR)
----------------------------------------- */

.stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* -----------------------------------------
   ACCESSIBILITY & PERFORMANCE
----------------------------------------- */

.masonry-item,
.stat-tile {
  contain: layout paint;
}

/* =========================================
   COLLECTION PAGE – FINAL CTA
   Optimized, Accessible, Stable
========================================= */

.collection-cta {
  padding: 64px 0;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.94)
    ),
    url("assets/collection-page-image/cta-1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Performance */
  contain: layout paint;
}

.collection-cta__content {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.collection-cta__title {
  font-family: var(--font-primary);
  font-size: 36px;
  line-height: 46px;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: var(--text-charcoal);
  margin-bottom: 12px;
}

.collection-cta__subtitle {
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 24px;
  color: var(--text-charcoal);
  opacity: 0.9;
  margin-bottom: 32px;
}

.collection-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* -----------------------------------------
   MOBILE
----------------------------------------- */
@media (max-width: 600px) {
  .collection-cta {
    padding: 72px 0;
  }

  .collection-cta__title {
    font-size: 28px;
    line-height: 36px;
  }

  .collection-cta__actions {
    flex-direction: column;
    gap: 12px;
  }

  .collection-cta__actions .btn {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }
}
