/* Home page styles */

:root {
  --home-navbar-top-gap: 2rem;
}

body.page-home {
  background-color: #0f172a;
  margin: 0;
  padding: 0;
}

.home-page-shell {
  position: relative;
  overflow-x: clip; /* clip avoids forcing overflow-y:auto (CSS spec issue with hidden) */
  margin: 0;
  padding: 0;
}

.home-hero-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: calc(100vh + var(--home-navbar-top-gap));
  overflow: hidden;
  background-color: #0f172a; /* matches body so any sub-pixel gap is invisible */
  margin-top: calc(-1 * var(--home-navbar-top-gap));
  padding: 0;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  background-color: transparent;
}

.hero-slide {
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1) translateX(5%);
  transition: opacity 2s ease-in-out, transform 3s ease-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 2;
}

.hero-slide.last-active {
  opacity: 0;
  transform: scale(1) translateX(-5%);
  z-index: 1;
}

.hero-overlay-blur {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(1px);
  z-index: 10;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.4));
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 480px) {
  .hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .hero-content {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.hero-text-slide {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  pointer-events: none;
  grid-column-start: 1;
  grid-row-start: 1;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-text-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-text-slide.last-active {
  opacity: 0;
  transform: translateY(-30px);
}

.hero-subtitle {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #c5a059;
  margin-bottom: 1rem;
  display: block;
}
@media (min-width: 480px) {
  .hero-subtitle { font-size: 10px; letter-spacing: 0.4em; margin-bottom: 1.25rem; }
}
@media (min-width: 768px) {
  .hero-subtitle { letter-spacing: 0.6em; margin-bottom: 1.5rem; }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: white;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
}
@media (min-width: 480px) { .hero-title { font-size: 2.25rem; margin-bottom: 1.75rem; } }
@media (min-width: 640px) { .hero-title { font-size: 3rem; margin-bottom: 2rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }

.hero-desc {
  font-size: 0.85rem;
  color: rgba(239, 246, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.625;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
@media (min-width: 480px) {
  .hero-desc { font-size: 0.9rem; padding-left: 1rem; padding-right: 1rem; }
}
@media (min-width: 640px) { .hero-desc { font-size: 1.125rem; padding-left: 0; padding-right: 0; margin-bottom: 2.5rem; } }
@media (min-width: 768px) { .hero-desc { font-size: 1.25rem; } }

.hero-btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
@media (min-width: 480px) {
  .hero-btn-group { gap: 1.25rem; padding-left: 0; padding-right: 0; }
}
@media (min-width: 640px) { .hero-btn-group { flex-direction: row; gap: 1.5rem; } }

.btn-hero {
  padding: 0.875rem 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 9px;
  transition: all 0.5s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}
@media (min-width: 640px) {
  .btn-hero {
    width: auto;
    padding: 1rem 2.5rem;
    letter-spacing: 0.2em;
  }
}

.btn-hero-primary {
  background-color: #c5a059;
  color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.btn-hero-primary:hover { background-color: white; color: #0f172a; }

.btn-hero-outline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.btn-hero-outline:hover { background-color: white; color: #0f172a; }

/* Featured Collections */
.section-collections {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: white;
}
@media (min-width: 480px) {
  .section-collections { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 768px) {
  .section-collections { padding-top: 6rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .section-collections { padding-top: 8rem; padding-bottom: 8rem; }
}

.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 1.5rem;
}
@media (min-width: 480px) {
  .section-header { margin-bottom: 3.5rem; gap: 2rem; }
}
@media (min-width: 768px) {
  .section-header { flex-direction: row; align-items: flex-end; margin-bottom: 4rem; gap: 3rem; }
}
@media (min-width: 1024px) {
  .section-header { margin-bottom: 6rem; }
}

.section-subtitle {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #c5a059;
  margin-bottom: 1rem;
  display: block;
}
@media (min-width: 480px) {
  .section-subtitle { font-size: 10px; letter-spacing: 0.4em; margin-bottom: 1.5rem; }
}

.section-title {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 480px) {
  .section-title { font-size: 2.25rem; }
}
@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
}

.link-view-all { display: flex; align-items: center; gap: 1rem; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; transition: all 0.3s; min-height: 44px; }
.link-view-all:hover { color: #c5a059; }
.link-line { width: 3rem; height: 2px; background-color: #f3f4f6; transition: all 0.3s; }
.link-view-all:hover .link-line { background-color: #c5a059; }

.collections-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 480px) { .collections-grid { gap: 2rem; } }
@media (min-width: 768px) { .collections-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.collection-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.7s;
}
@media (min-width: 480px) {
  .collection-card { height: 450px; }
}
@media (min-width: 768px) {
  .collection-card { height: 500px; }
}
@media (min-width: 1024px) {
  .collection-card { height: 650px; }
}
.collection-card:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.collection-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.collection-card:hover .collection-img { transform: scale(1.1); }
.collection-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #0f172a, transparent, transparent); opacity: 0.6; }

.collection-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: white;
}
@media (min-width: 480px) {
  .collection-content { padding: 2rem; }
}
@media (min-width: 768px) {
  .collection-content { padding: 2.5rem; }
}
@media (min-width: 1024px) {
  .collection-content { padding: 3rem; }
}

.collection-cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #c5a059;
  margin-bottom: 0.75rem;
  display: block;
}
@media (min-width: 768px) {
  .collection-cat { letter-spacing: 0.3em; margin-bottom: 1rem; }
}

.collection-title {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
@media (min-width: 480px) {
  .collection-title { font-size: 1.625rem; }
}
@media (min-width: 768px) {
  .collection-title { font-size: 1.75rem; margin-bottom: 2rem; }
}
@media (min-width: 1024px) {
  .collection-title { font-size: 1.875rem; }
}

.collection-link { display: flex; align-items: center; gap: 1rem; transition: all 0.5s; }
.collection-card:hover .collection-link { gap: 1.5rem; }

/* Global Impact */
.section-impact {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #0f172a;
  color: white;
}
@media (min-width: 480px) {
  .section-impact { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 768px) {
  .section-impact { padding-top: 6rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .section-impact { padding-top: 8rem; padding-bottom: 8rem; }
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .impact-grid { gap: 4rem; }
}
@media (min-width: 1024px) { .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 6rem; } }

.impact-text-col { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) {
  .impact-text-col { gap: 3rem; }
}

.impact-desc {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.625;
  max-width: 36rem;
}
@media (min-width: 640px) {
  .impact-desc { font-size: 1.125rem; }
}

.impact-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 480px) {
  .impact-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) { .impact-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }

.stat-item {
  border-left: 1px solid rgba(197, 160, 89, 0.3);
  padding-left: 1.5rem;
}
@media (min-width: 768px) {
  .stat-item { padding-left: 2rem; }
}

.stat-val {
  font-size: 1.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: white;
  margin-bottom: 0.5rem;
}
@media (min-width: 480px) {
  .stat-val { font-size: 2rem; }
}
@media (min-width: 768px) {
  .stat-val { font-size: 2.25rem; }
}

.stat-label {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c5a059;
}
@media (min-width: 480px) {
  .stat-label { font-size: 10px; letter-spacing: 0.1em; }
}

.impact-img-container { position: relative; }
.impact-img { border-radius: 4rem; filter: grayscale(100%); opacity: 0.4; }
.impact-pulse-circle { width: 8rem; height: 8rem; border-radius: 9999px; border: 1px solid #c5a059; display: flex; align-items: center; justify-content: center; animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Certifications */
.section-certs {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background-color: #f9fafb;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  overflow: hidden;
}
@media (min-width: 768px) {
  .section-certs { padding-top: 4rem; padding-bottom: 4rem; }
}

.certs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.7s;
}
@media (min-width: 480px) {
  .certs-container { gap: 2rem; }
}
@media (min-width: 768px) { .certs-container { justify-content: space-between; gap: 3rem; } }
.certs-container:hover { filter: grayscale(0); opacity: 1; }

.cert-item {
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #0f172a;
  white-space: nowrap;
}
@media (min-width: 480px) {
  .cert-item { font-size: 9px; letter-spacing: 0.3em; }
}
@media (min-width: 768px) {
  .cert-item { font-size: 10px; letter-spacing: 0.4em; }
}

/* CTA Section */
.section-cta {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #0f172a;
  color: white;
  overflow: hidden;
  text-align: center;
}
@media (min-width: 480px) {
  .section-cta { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 768px) { .section-cta { padding-top: 8rem; padding-bottom: 8rem; } }

.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1a1a2e 100%);
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
@media (min-width: 480px) {
  .cta-title { font-size: 2.25rem; margin-bottom: 1.5rem; }
}
@media (min-width: 768px) { .cta-title { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-title { font-size: 4rem; } }

.cta-desc {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
@media (min-width: 480px) {
  .cta-desc { font-size: 1.0625rem; margin-bottom: 2.5rem; }
}
@media (min-width: 768px) {
  .cta-desc { font-size: 1.125rem; margin-bottom: 3rem; }
}

/* Why Choose Us */
.section-why-choose-us {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #f9fafb;
}
@media (min-width: 480px) {
  .section-why-choose-us { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 768px) {
  .section-why-choose-us { padding-top: 6rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .section-why-choose-us { padding-top: 8rem; padding-bottom: 8rem; }
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 480px) {
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 640px) {
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (min-width: 1024px) {
  .why-choose-grid { grid-template-columns: repeat(4, 1fr); }
}

.why-choose-card {
  background-color: white;
  padding: 1.75rem 1.5rem;
  border: 1px solid #f3f4f6;
  transition: all 0.5s;
  text-align: center;
}
@media (min-width: 480px) {
  .why-choose-card { padding: 2rem 1.75rem; }
}
@media (min-width: 768px) {
  .why-choose-card { padding: 2.5rem 2rem; }
}
.why-choose-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border-color: rgba(197, 160, 89, 0.3);
}

.why-choose-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  color: #c5a059;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 9999px;
  transition: all 0.5s;
}
@media (min-width: 768px) {
  .why-choose-icon { width: 4rem; height: 4rem; margin: 0 auto 1.5rem; }
}
.why-choose-card:hover .why-choose-icon {
  background-color: #c5a059;
  color: white;
}

.why-choose-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .why-choose-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
}

.why-choose-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .why-choose-desc { font-size: 0.875rem; }
}

/* Featured Products */
.section-featured-products {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: white;
}
@media (min-width: 480px) {
  .section-featured-products { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 768px) {
  .section-featured-products { padding-top: 6rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .section-featured-products { padding-top: 8rem; padding-bottom: 8rem; }
}

.featured-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0.85rem;
  row-gap: 2.4rem;
}
@media (min-width: 480px) {
  .featured-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.9rem; row-gap: 2.8rem; }
}
@media (min-width: 768px) {
  .featured-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
}
@media (min-width: 1024px) {
  .featured-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1rem; row-gap: 3.4rem; }
}

.featured-product-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.75rem;
  overflow: visible;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  max-width: 280px;
  margin-inline: auto;
  margin-top: 2.45rem;
  position: relative;
}
.featured-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.35);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.09);
}

.featured-product-card-hit {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
  overflow: visible;
  min-height: 100%;
  background: inherit;
}

.featured-product-card-hit:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 2px;
}

.featured-product-img-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: -2.35rem;
  height: 9rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.1rem;
  pointer-events: none;
}
@media (min-width: 480px) {
  .featured-product-img-wrap { height: 9.4rem; }
}
@media (min-width: 768px) {
  .featured-product-img-wrap { height: 9.4rem; }
}

.featured-product-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.featured-product-card:hover .featured-product-img {
  transform: scale(1.04) translateY(-1px);
}

.featured-product-pill {
  position: absolute;
  top: -0.3rem;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.2rem;
  padding: 0.12rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.24);
  color: #9a7a35;
  font-size: 0.54rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.featured-product-info {
  padding: 6.65rem 0.72rem 0.7rem;
}
@media (min-width: 768px) {
  .featured-product-info { padding: 6.65rem 0.72rem 0.7rem; }
}

.featured-product-category {
  margin: 0 0 0.24rem;
  font-size: 0.56rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c5a059;
  display: block;
}

.featured-product-title {
  margin: 0 0 0.4rem;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 600;
}

.featured-product-desc {
  margin: 0 0 0.55rem;
  color: #64748b;
  font-size: 0.6rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.32rem;
  border: 1px solid #d6dde6;
  background: #ffffff;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.featured-product-card:hover .featured-product-cta {
  border-color: #c5a059;
  color: #c5a059;
}
