/* ==========================================================================
   PAGE 1: HOME PAGE SPECIFIC STYLES
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-cream);
  padding: clamp(32px, 6vw, 64px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-sage-600);
}

.hero-tag::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background-color: var(--color-sage-500);
}

.hero-title {
  color: var(--color-dark);
}

.hero-title span {
  display: block;
  color: var(--color-sage-500);
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  font-size: 0.75em;
  margin-top: 4px;
}

.hero-description {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--color-muted);
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-img-box {
  position: relative;
  overflow: hidden;
  background-color: var(--color-sand);
}

.hero-img-box.tall {
  aspect-ratio: 3/4.5;
}

.hero-img-box.short {
  aspect-ratio: 3/4;
  margin-top: 48px;
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-img-box:hover img {
  transform: scale(1.05);
}

.hero-floating-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background-color: var(--color-sage-800);
  color: var(--color-cream);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.hero-floating-badge .badge-stat {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-sage-300);
}

.hero-floating-badge .badge-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Category Grid */
.categories-section {
  padding: var(--space-4xl) 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.category-card {
  position: relative;
  aspect-ratio: 3/4.2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  background-color: var(--color-sand);
}

.category-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 20, 17, 0) 40%, rgba(17, 20, 17, 0.75) 100%);
  z-index: 1;
  transition: opacity var(--transition-smooth);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.category-count {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sage-200);
}

/* Featured Products (New Arrivals) */
.featured-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-sage-50);
}

.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

/* Split Narrative Banner */
.story-banner-section {
  padding: var(--space-4xl) 0;
}

.story-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.story-visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: var(--color-sand);
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.story-visual:hover img {
  transform: scale(1.04);
}

.story-text-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 520px;
}

.story-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-dark);
  border-left: 3px solid var(--color-sage-500);
  padding-left: var(--space-md);
}

.story-body {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.8;
}

.story-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-sage-800);
}

.stat-item .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* Editorial Journal / Style Stories */
.journal-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-cream);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.journal-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.journal-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--color-sand);
}

.journal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.journal-card:hover .journal-img-wrap img {
  transform: scale(1.06);
}

.journal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sage-600);
  font-weight: 600;
}

.journal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.journal-title a:hover {
  color: var(--color-sage-600);
}

.journal-excerpt {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Instagram / Gallery Strip */
.insta-gallery-section {
  padding: var(--space-3xl) 0;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: var(--color-sand);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 50, 36, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Newsletter Section */
.newsletter-banner {
  background-color: var(--color-sage-100);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.newsletter-content-wrap {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.newsletter-form-wide {
  display: flex;
  width: 100%;
  max-width: 500px;
  margin-top: var(--space-md);
}

.newsletter-form-wide input {
  flex: 1;
  padding: 16px 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-sage-300);
  border-right: none;
  font-size: 0.9rem;
}

.newsletter-form-wide input:focus {
  border-color: var(--color-sage-600);
}

.newsletter-form-wide button {
  padding: 16px 28px;
  background-color: var(--color-sage-800);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color var(--transition-fast);
}

.newsletter-form-wide button:hover {
  background-color: var(--color-dark);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (HOME)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-visual-wrap {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-split-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 24px 0 32px;
    min-height: auto;
  }

  .hero-content {
    gap: 14px;
  }

  .hero-tag {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  /* 3. Hero heading reduced on mobile with lower clamp */
  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem);
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  .hero-title span {
    font-size: 0.72em;
    margin-top: 2px;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .hero-cta-group {
    gap: 10px;
  }

  .hero-floating-badge {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 10px 14px;
  }

  .hero-floating-badge .badge-stat {
    font-size: 1.25rem;
  }

  .hero-floating-badge .badge-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 640px) {
  .hero-visual-wrap {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-img-box.short {
    display: none;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .product-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .story-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-item .stat-num {
    font-size: 1.35rem;
  }

  .stat-item .stat-label {
    font-size: 0.65rem;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .gallery-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }

  .gallery-item {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }

  .newsletter-form-wide {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-form-wide input {
    border-right: 1px solid var(--color-sage-300);
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 20px 0 28px;
  }

  .hero-content {
    gap: 12px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
    line-height: 1.02;
  }

  .hero-title span {
    font-size: 0.68em;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Stack CTA buttons on narrow mobile */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.8rem;
  }
}