/* ============================================================
   LIKHIT PENS — HOME PAGE STYLES
   Source: docs/design.md → Section 6 "LANDING / HOME PAGE"
   ============================================================ */

/* ============================================================
   HERO SECTION — Animation #1
   ============================================================ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Pre-animation black screen */
#hero-screen {
  position: absolute;
  inset: 0;
  background: var(--color-ink-black);
  z-index: 5;
  pointer-events: none;
}

/* Hero background image (fades in after animation) */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,13,13,0.85) 0%, rgba(26,10,0,0.7) 50%, rgba(13,13,13,0.85) 100%),
    url('assets/images/hero/hero-nib.jpg') center/cover no-repeat;
  opacity: 0;
  z-index: 1;
}

.hero-bg-image.loaded {
  background:
    linear-gradient(135deg, rgba(13,13,13,0.85) 0%, rgba(26,10,0,0.7) 50%, rgba(13,13,13,0.85) 100%),
    url('assets/images/hero/hero-nib.jpg') center/cover no-repeat;
}

/* Ink drop SVG (Animation #1 — Layer 2) */
#ink-drop-svg {
  position: fixed;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}

/* Splash elements */
.splash-container {
  position: fixed;
  top: 60vh;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 18;
  pointer-events: none;
}

.ink-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-antique-gold);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

#splash-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border: 2px solid rgba(201,168,76,0.8);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Hero content container */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  max-width: 800px;
  opacity: 0;
}

/* Logo assembly (Animation #1 — Layer 6) */
.hero-logo-assembly {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
}

.logo-diamond {
  display: flex;
  align-items: center;
  position: relative;
}

#logo-left-half {
  opacity: 0;
  transform: translateX(-60px);
}

#logo-right-half {
  opacity: 0;
  transform: translateX(60px);
}

#logo-flash {
  position: absolute;
  inset: -10px;
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero-logo-name {
  display: flex;
  gap: 2px;
}

.logo-letter {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 2.8rem;
  color: white;
  letter-spacing: 0.3em;
  opacity: 0;
  transform: translateY(10px);
}

.hero-logo-pens {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  opacity: 0;
}

/* Tagline SVG — Animation #19 */
#tagline-svg {
  max-width: 400px;
  width: 90%;
  height: 60px;
}

#tagline-path {
  stroke: var(--color-antique-gold);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero subheadline + CTAs */
#hero-subheadline {
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: var(--text-md);
  color: rgba(255,255,255,0.75);
  letter-spacing: var(--tracking-wide);
  opacity: 0;
  transform: translateY(30px);
  text-align: center;
}

.hero-cta-row {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
}

@media (max-width: 480px) {
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Scroll indicator — Animation #20 */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  cursor: pointer;
}

.scroll-indicator-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.scroll-chevron {
  color: var(--color-antique-gold);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ============================================================
   SECTION 2: FEATURED PENS
   ============================================================ */
.featured-section {
  background: #1A0A00;
  position: relative;
  overflow: hidden;
  padding: var(--space-11) 0;
}

/* Subtle grid texture behind section */
.featured-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(201,168,76,0.03) 40px,
    rgba(201,168,76,0.03) 41px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(201,168,76,0.03) 40px,
    rgba(201,168,76,0.03) 41px
  );
  pointer-events: none;
}

.featured-heading-title {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-antique-gold);
  letter-spacing: 0.08em;
  line-height: var(--leading-tight);
}

/* ── Featured grid: 4 elegant portrait cards ── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1023px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Cards on dark background get a refined dark treatment */
.featured-grid .product-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(201,168,76,0.12);
  color: rgba(250,246,238,0.9);
}

.featured-grid .product-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.25);
}

.featured-grid .product-card-image {
  aspect-ratio: 1 / 1;
  height: auto;
}

.featured-grid .product-card-name {
  color: rgba(250,246,238,0.92);
  font-size: 1.1rem;
}

.featured-grid .product-card-category {
  color: var(--color-antique-gold);
  opacity: 0.8;
}

.featured-grid .product-card-desc {
  color: rgba(250,246,238,0.5);
}

.featured-grid .product-card-actions {
  border-top-color: rgba(201,168,76,0.1);
}

.featured-grid .product-card-view {
  color: rgba(250,246,238,0.35);
}

.featured-grid .product-card-view:hover {
  color: var(--color-antique-gold);
}

/* Mobile: horizontal scroll */
@media (max-width: 767px) {
  .featured-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-4);
    padding-bottom: var(--space-3);
    scrollbar-width: none;
  }
  .featured-grid::-webkit-scrollbar { display: none; }
  .featured-grid .product-card {
    flex-shrink: 0;
    width: 62vw;
    scroll-snap-align: center;
  }
}

/* ============================================================
   SECTION 3: SHOP FILTER STRIP — Animation #5
   ============================================================ */
.filter-section {
  position: relative;
  padding: var(--space-10) 0;
  background-color: var(--color-parchment);
  transition: background-color 0.2s ease;
  overflow: hidden;
}

.filter-section.dark-mode {
  color: rgba(255,255,255,0.85);
}

.filter-pills {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 2;
}

.filter-pill {
  padding: 8px 20px;
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: transparent;
  color: var(--color-deep-brown);
  font-family: var(--font-body);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--color-antique-gold);
  color: var(--color-ink-black);
  border-color: var(--color-antique-gold);
}

.filter-results-count {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(59,31,10,0.5);
  margin-bottom: var(--space-6);
  font-weight: var(--weight-light);
  transition: color 0.2s;
}

.filter-section.dark-mode .filter-results-count {
  color: rgba(255,255,255,0.5);
}

.filter-section.dark-mode .filter-pill {
  color: rgba(255,255,255,0.7);
  border-color: rgba(201,168,76,0.4);
}

/* ============================================================
   SECTION 4: LIMITED EDITION SPOTLIGHT BANNER
   ============================================================ */
.limited-banner {
  background: var(--color-ink-black);
  padding: var(--space-11) 0;
  overflow: hidden;
  position: relative;
}

.limited-banner-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.limited-banner-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: white;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.limited-banner-sub {
  text-align: center;
  font-style: italic;
  color: var(--color-antique-gold);
  font-family: var(--font-script);
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
}

.limited-pens-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

@media (max-width: 767px) {
  .limited-pens-showcase { grid-template-columns: 1fr; }
}

.limited-pen-item {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  overflow: hidden;
}

.limited-pen-item img {
  max-height: 200px;
  margin: 0 auto var(--space-3);
  filter: drop-shadow(0 8px 30px rgba(201,168,76,0.3));
}

.limited-pen-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.limited-pen-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--color-antique-gold);
  opacity: 0.4;
}

.limited-pen-name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: white;
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-tight);
}

.limited-pen-desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ============================================================
   SECTION 5: BRAND STORY TEASER
   ============================================================ */
.brand-story-section {
  background: var(--color-parchment);
  padding: var(--space-11) 0;
}

.brand-story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (max-width: 767px) {
  .brand-story-split {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

.brand-story-est {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  color: var(--color-antique-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.brand-story-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-deep-brown);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
}

.brand-story-text {
  font-size: var(--text-base);
  color: rgba(59,31,10,0.75);
  line-height: var(--leading-loose);
  font-weight: var(--weight-light);
  margin-bottom: var(--space-6);
}

.brand-story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(59,31,10,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(20%);
}

.brand-story-image-placeholder {
  color: rgba(59,31,10,0.2);
  text-align: center;
  padding: var(--space-7);
}

.brand-story-image-placeholder svg {
  width: 80px; height: 80px;
  margin-bottom: var(--space-3);
}

/* ============================================================
   SECTION 6: INK COLLECTION STRIP
   ============================================================ */
.ink-section {
  background: var(--color-velvet-navy);
  padding: var(--space-10) 0;
  overflow: hidden;
}

.ink-section .section-heading-title { color: var(--color-antique-gold); }

.ink-strip {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4) var(--space-5) var(--space-6);
  scrollbar-width: none;
  justify-content: flex-start;
}

.ink-strip::-webkit-scrollbar { display: none; }

.ink-jar-card {
  scroll-snap-align: center;
  flex-shrink: 0;
}

/* ============================================================
   SECTION 7: CORPORATE GIFTING TEASER
   ============================================================ */
.corporate-teaser {
  background: var(--color-velvet-navy);
  padding: var(--space-11) 0;
  position: relative;
  overflow: hidden;
}

/* Diamond pattern background */
.corporate-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 30px,
      rgba(201,168,76,0.03) 30px,
      rgba(201,168,76,0.03) 31px
    );
  pointer-events: none;
}

/* Watermark text */
.corporate-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.04);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.corporate-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .corporate-split { grid-template-columns: 1fr; gap: var(--space-7); }
}

.corporate-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.corporate-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-light);
  margin-bottom: var(--space-5);
}

.corporate-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.corporate-bullet {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
}

.corporate-bullet-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-antique-gold);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: var(--weight-bold);
}

.corporate-image {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.corporate-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.corporate-image-placeholder {
  color: rgba(201,168,76,0.3);
  text-align: center;
  padding: var(--space-7);
}

/* ============================================================
   SECTION 8: PEN UTSAV SOCIAL PROOF — Dual Marquee Gallery
   ============================================================ */
.utsav-section {
  background: var(--color-aged-white);
  padding: var(--space-11) 0;
  overflow: hidden;
}

/* ── Marquee wrapper with edge fade ── */
.utsav-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 40px 0 44px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.utsav-marquee {
  overflow: hidden;
}

/* Each track holds images × 2 for seamless loop */
.utsav-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

/* Row 1 scrolls left */
.utsav-row-left .utsav-marquee-track {
  animation: utsav-left 36s linear infinite;
}

/* Row 2 scrolls right */
.utsav-row-right .utsav-marquee-track {
  animation: utsav-right 42s linear infinite;
}

/* Pause on hover */
.utsav-marquee:hover .utsav-marquee-track {
  animation-play-state: paused;
}

/* Individual slide */
.utsav-slide {
  flex-shrink: 0;
  width: 320px;
  height: 210px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(59,31,10,0.08);
}

.utsav-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.utsav-slide:hover img {
  transform: scale(1.07);
}

/* Keyframes */
@keyframes utsav-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes utsav-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .utsav-marquee-track { animation: none !important; }
}

@media (max-width: 767px) {
  .utsav-slide { width: 240px; height: 160px; }
}

.utsav-instagram-cta {
  text-align: center;
}

/* ============================================================
   SECTION 9: NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--color-parchment);
  padding: var(--space-11) 0;
  position: relative;
  overflow: hidden;
}

.newsletter-quill {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-deep-brown);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.newsletter-sub {
  font-size: var(--text-base);
  color: rgba(59,31,10,0.6);
  margin-bottom: var(--space-6);
  font-weight: var(--weight-light);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  align-items: flex-end;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; align-items: stretch; }
}

.newsletter-form .form-group {
  flex: 1;
  margin-bottom: 0;
}

.newsletter-hindi {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-burnished-gold);
  margin-top: var(--space-4);
  font-style: italic;
}

/* ============================================================
   MOBILE APP INTERFACE — landing page mobile overrides
   ============================================================ */

.cat-rail { display: none; }

@media (max-width: 767px) {
  body { padding-bottom: 72px; }

  .hamburger-btn { display: none !important; }
  .cart-icon-btn { display: none !important; }

  .hero {
    height: 78vh !important;
    min-height: 520px;
    max-height: 680px;
  }

  .hero-bg-image { opacity: 1 !important; }

  #hero-screen      { display: none !important; }
  #ink-drop-svg     { display: none !important; }
  #splash-container { display: none !important; }
  #logo-flash       { display: none !important; }

  .hero-content     { opacity: 1 !important; }
  #hero-logo        { opacity: 1 !important; }
  .logo-nib-mark    { opacity: 1 !important; }
  .logo-letter      { opacity: 1 !important; transform: none !important; }
  .hero-logo-pens   { opacity: 1 !important; }
  #hero-subheadline { opacity: 1 !important; transform: none !important; }
  #hero-ctas        { opacity: 1 !important; transform: none !important; }
  #hero-scroll-indicator { display: none; }

  #tagline-path { fill: #C9A84C !important; }

  .filter-pills { display: none !important; }

  .cat-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 14px 20px 12px;
    scrollbar-width: none;
    background: var(--color-aged-white);
    border-bottom: 1px solid rgba(59,31,10,0.06);
  }
  .cat-rail::-webkit-scrollbar { display: none; }

  .cat-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .cat-chip-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-parchment);
    border: 2px solid rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
  }

  .cat-chip-icon svg {
    width: 22px;
    height: 22px;
    stroke: rgba(59,31,10,0.55);
    fill: none;
    stroke-width: 1.5;
    transition: stroke 0.2s;
  }

  .cat-chip.active .cat-chip-icon {
    background: var(--color-antique-gold);
    border-color: var(--color-antique-gold);
  }

  .cat-chip.active .cat-chip-icon svg { stroke: var(--color-ink-black); }

  .cat-chip-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: var(--weight-medium);
    letter-spacing: 0.04em;
    color: rgba(59,31,10,0.55);
    white-space: nowrap;
  }

  .cat-chip.active .cat-chip-label {
    color: var(--color-deep-brown);
    font-weight: var(--weight-semibold);
  }
}
