/* ==========================================================================
   ETERNALSUNDHARI — Premium Luxury Fashion
   ========================================================================== */

:root {
  --color-primary: #D9B08C;
  --color-secondary: #FFF8F2;
  --color-accent: #8B5E3C;
  --color-text: #2B2B2B;
  --color-white: #FFFFFF;
  --color-bg: #FAF7F4;

  --color-primary-soft: rgba(217, 176, 140, 0.35);
  --color-accent-soft: rgba(139, 94, 60, 0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container-w: 1280px;
  --gutter: clamp(24px, 5vw, 80px);

  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 60px rgba(139, 94, 60, 0.12);
  --shadow-lift: 0 30px 80px rgba(139, 94, 60, 0.2);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input { font: inherit; }
ul, ol { list-style: none; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

::selection { background: var(--color-primary); color: var(--color-white); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Typography ---- */
.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
  max-width: 20ch;
}

.section-sub {
  font-size: 1.02rem;
  color: rgba(43, 43, 43, 0.62);
  max-width: 48ch;
  margin-top: 14px;
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.text-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-accent);
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(139, 94, 60, 0.35);
  transition: border-color 0.3s var(--ease-soft), opacity 0.3s;
}
.text-link:hover { border-color: var(--color-accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 100px;
  transition: transform 0.4s var(--ease-out-strong), background 0.35s var(--ease-soft), color 0.35s var(--ease-soft), box-shadow 0.35s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 12px 32px rgba(139, 94, 60, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(139, 94, 60, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(43, 43, 43, 0.25);
}
.btn-ghost:hover { border-color: var(--color-text); background: rgba(255,255,255,0.4); }

/* ==========================================================================
   CUSTOM CURSOR (desktop only)
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--color-white);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid var(--color-white);
  transition: width 0.3s var(--ease-out-strong), height 0.3s var(--ease-out-strong), opacity 0.3s;
}
.cursor-ring.hovered { width: 64px; height: 64px; }
.cursor-ring.glow { box-shadow: 0 0 24px 4px rgba(255,255,255,0.4); }

@media (hover: none), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  opacity: 0.85;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px 0;
  transition: padding 0.4s var(--ease-soft), background 0.4s var(--ease-soft), box-shadow 0.4s;
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(250, 247, 244, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(43,43,43,0.06);
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: block;
  width: 190px;
  height: 80px;
  overflow: hidden;
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
  
}

.primary-nav {
  display: flex;
  gap: 40px;
}
.primary-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.35s var(--ease-out-strong);
}
.primary-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { color: var(--color-text); display: flex; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.menu-toggle span {
  height: 1.5px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-soft), opacity 0.3s;
}
.menu-toggle.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-secondary);
  z-index: 480;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-out-strong);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-text);
}
.mobile-menu-tag {
  margin-top: 40px;
  font-style: italic;
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ==========================================================================
   SECTION 1 — HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(43,30,20,0.35) 0%, rgba(43,30,20,0.15) 40%, rgba(43,30,20,0.55) 100%),
    linear-gradient(120deg, rgba(217,176,140,0.35), rgba(255,248,242,0.08));
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
  max-width: 760px;
}

.hero-logo {
  width: min(300px, 70vw);
  height: auto;
  margin: 0 auto 28px;
  filter: brightness(0) invert(1);
}

.hero-label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 22px;
  opacity: 0;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero-heading .line {
  display: block;
  overflow: hidden;
}
.hero-heading .line span { display: inline-block; }

.hero-sub {
  margin-top: 26px;
  font-size: 1.08rem;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  opacity: 0;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}
.hero .btn-ghost {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.hero .btn-ghost:hover { border-color: var(--color-white); background: rgba(255,255,255,0.12); }

.hero-scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.75);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.hero-scroll-cue span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.55);
  margin: 0 auto 10px;
  animation: scrollcue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================================================
   SECTION 2 — FEATURED COLLECTIONS
   ========================================================================== */
.collections { padding: clamp(90px, 12vw, 150px) 0; }

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.collection-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-out-strong), box-shadow 0.5s var(--ease-out-strong);
}
.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.collection-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.collection-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-strong);
}
.collection-card:hover .collection-media img { transform: scale(1.08); }

.collection-info { padding: 26px 24px 30px; }
.collection-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.collection-info p {
  font-size: 0.88rem;
  color: rgba(43,43,43,0.6);
  margin-bottom: 16px;
}

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

/* ==========================================================================
   SECTION 3 — BRAND STORY
   ========================================================================== */
.story { padding: clamp(60px, 10vw, 120px) 0; background: var(--color-secondary); }

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

.story-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.story-media img { width: 100%; height: 115%; object-fit: cover; }

.story-copy p {
  margin-top: 20px;
  color: rgba(43,43,43,0.72);
  max-width: 52ch;
}
.story-copy .text-link { margin-top: 26px; display: inline-block; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { order: -1; }
}

/* ==========================================================================
   SECTION 4 — LOOKBOOK
   ========================================================================== */
.lookbook { padding: clamp(90px, 12vw, 150px) 0; }

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
}
.lookbook-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.lookbook-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-strong);
}
.lookbook-item:hover img { transform: scale(1.06); }
.lookbook-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(43,30,20,0.35));
  opacity: 0;
  transition: opacity 0.4s;
}
.lookbook-item:hover::after { opacity: 1; }

.span-tall { grid-row: span 2; }
.span-wide { grid-column: span 2; }

@media (max-width: 900px) {
  .lookbook-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .span-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .lookbook-grid { grid-template-columns: 1fr; }
  .span-wide, .span-tall { grid-column: span 1; grid-row: span 1; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-soft);
  padding: 40px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  transform: scale(0.94);
  transition: transform 0.4s var(--ease-out-strong);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 30px; right: 34px;
  font-size: 2.4rem;
  color: var(--color-white);
  line-height: 1;
}

/* ==========================================================================
   SECTION 5 — NEW ARRIVALS
   ========================================================================== */
.arrivals { padding: clamp(90px, 12vw, 150px) 0; background: var(--color-secondary); }

.arrivals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  transition: transform 0.4s var(--ease-out-strong);
}
.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(139,94,60,0.1);
  transition: box-shadow 0.4s var(--ease-soft);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-strong);
}
.product-card:hover .product-media {
  box-shadow: 0 26px 60px rgba(139,94,60,0.28), 0 0 0 1px rgba(217,176,140,0.6);
}
.product-card:hover { transform: translateY(-6px); }
.product-card:hover .product-media img { transform: scale(1.06); }

.quick-view {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 14px);
  background: rgba(255,255,255,0.94);
  color: var(--color-text);
  padding: 11px 26px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-out-strong);
  white-space: nowrap;
}
.product-card:hover .quick-view { opacity: 1; transform: translate(-50%, 0); }

.product-info { padding: 18px 4px 0; display: flex; justify-content: space-between; align-items: baseline; }
.product-info h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; }
.price { color: var(--color-accent); font-weight: 500; font-size: 0.95rem; }

@media (max-width: 1100px) { .arrivals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .arrivals-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

/* ==========================================================================
   SECTION 6 — TESTIMONIALS
   ========================================================================== */
.testimonials { padding: clamp(90px, 12vw, 150px) 0; }
.testimonials .section-head { text-align: center; }
.testimonials .section-heading { margin: 0 auto; }

.testimonial-swiper { padding-bottom: 56px; }

.testimonial-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 46px 42px;
  box-shadow: var(--shadow-soft);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--color-text);
}
.testimonial-meta { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.testimonial-meta .name { font-weight: 600; font-size: 0.92rem; }
.testimonial-meta .location { font-size: 0.8rem; color: rgba(43,43,43,0.55); }

.swiper-pagination-bullet { background: var(--color-accent); opacity: 0.3; }
.swiper-pagination-bullet-active { opacity: 1; }

/* ==========================================================================
   SECTION 7 — INSTAGRAM
   ========================================================================== */
.instagram { padding: clamp(80px, 10vw, 130px) 0; }
.instagram .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.insta-item { aspect-ratio: 1; overflow: hidden; }
.insta-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out-strong), filter 0.5s;
  filter: saturate(0.94);
}
.insta-item:hover img { transform: scale(1.08); filter: saturate(1.1); }

@media (max-width: 900px) { .instagram-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   SECTION 8 — NEWSLETTER
   ========================================================================== */
.newsletter { padding: clamp(80px, 10vw, 140px) 0; }
.newsletter-card {
  max-width: 720px;
  text-align: center;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 80px) clamp(28px, 6vw, 60px);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(217,176,140,0.7), transparent 40%, rgba(217,176,140,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: glowpulse 5s ease-in-out infinite;
}
@keyframes glowpulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.newsletter-card .section-heading { margin: 0 auto; }
.newsletter-card > p { margin: 16px auto 34px; color: rgba(43,43,43,0.62); max-width: 44ch; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 15px 22px;
  border-radius: 100px;
  border: 1px solid rgba(43,43,43,0.18);
  background: var(--color-white);
  font-size: 0.92rem;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.newsletter-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-accent);
  min-height: 20px;
}

@media (max-width: 560px) {
  .newsletter-form { flex-direction: column; }
}

/* ==========================================================================
   SECTION 9 — FOOTER
   ========================================================================== */
.site-footer {
  background: #241811;
  color: rgba(255,248,242,0.88);
  padding-top: clamp(60px, 8vw, 100px);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-link { display: block; width: min(220px, 70vw); }
.footer-logo {
  width: 100%;
  height: auto;
}
.footer-brand p { margin-top: 10px; font-style: italic; color: var(--color-primary); font-size: 0.92rem; }

.footer-links { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255,248,242,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: rgba(255,248,242,0.85);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  padding: 26px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,248,242,0.45);
}

@media (max-width: 560px) {
  .footer-top {
    gap: 38px;
    padding-bottom: 42px;
  }
  .footer-logo-link { width: min(180px, 60vw); }
  .footer-brand p { font-size: 0.82rem; }
  .footer-links { gap: 32px; }
}

/* ==========================================================================
   MAGNETIC / TILT helpers (JS-driven transforms use these as base)
   ========================================================================== */
.magnetic { will-change: transform; }
[data-tilt] { will-change: transform; transform-style: preserve-3d; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
