/* Sri Batik Lanka — Modern Luxury Contemporary Fashion CSS */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-forest: #11281d;
  --color-forest-dark: #0a1a12;
  --color-forest-light: #1c4230;
  --color-ivory: #fbf9f4;
  --color-ivory-warm: #f6f4ee;
  --color-gold: #c5a467;
  --color-gold-light: #dfcca1;
  --color-charcoal: #141715;
  --color-charcoal-muted: #4b534e;
  --color-sage: #5e7567;
  --color-sage-light: #e8ede9;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Montserrat', -apple-system, sans-serif;
}

body {
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400; }

/* Subtle authentic Sri Lankan batik watermark — soft and restrained */
.bg-batik-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0Z' fill='%2311281D' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.bg-batik-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

.bg-batik-motif {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c5a467' stroke-opacity='0.25' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='18'/%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Cpath d='M40 10c8 12 8 20 0 30-8-10-8-18 0-30z'/%3E%3Cpath d='M0 0h80v80H0z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }
[data-reveal][data-delay="6"] { transition-delay: 0.48s; }

[data-reveal][data-lead] { transform: translateY(36px); }
[data-reveal][data-lead].is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Thin luxury scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #d4ded6; border-radius: 4px; }
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Refined typography */
h1, h2, h3, blockquote, .font-serif {
  font-family: var(--font-serif);
  text-wrap: balance;
}
p { text-wrap: pretty; }

.font-editorial {
  font-family: var(--font-serif);
}

.tnum { font-variant-numeric: tabular-nums; }

/* Gold hairline separators */
.rule-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 164, 103, 0.45), transparent);
}
.rule-gold-start {
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 164, 103, 0.75), rgba(197, 164, 103, 0.1) 70%, transparent);
}

/* Keyboard focus and selection */
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
::selection { background: #d4e6db; color: #11281d; }

/* Sticky & Transparent Header Transformation */
.header-nav {
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Default state: non-transparent (light background) */
.header-nav .logo-white { display: none !important; }
.header-nav .logo-dark { display: block !important; }

/* Transparent Header (Homepage top over video) */
.header-nav.is-transparent {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}
.header-nav.is-transparent .logo-white { display: block !important; }
.header-nav.is-transparent .logo-dark { display: none !important; }
.header-nav.is-transparent .nav-link { color: rgba(255, 255, 255, 0.9) !important; }
.header-nav.is-transparent .nav-link:hover { color: #c5a467 !important; }
.header-nav.is-transparent .nav-icon { color: #ffffff !important; }
.header-nav.is-transparent .nav-icon:hover { color: #c5a467 !important; }
.header-nav.is-transparent .nav-badge { background-color: #c5a467 !important; color: #11281d !important; }

/* Sticky Scrolled Header (Both homepage after scroll and other pages) */
.header-nav.is-scrolled {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
  background-color: rgba(251, 249, 244, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(20, 23, 21, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(20, 23, 21, 0.06) !important;
}
.header-nav.is-scrolled .logo-white { display: none !important; }
.header-nav.is-scrolled .logo-dark { display: block !important; }
.header-nav.is-scrolled .nav-link { color: rgba(20, 23, 21, 0.75) !important; }
.header-nav.is-scrolled .nav-link:hover { color: #11281d !important; }
.header-nav.is-scrolled .nav-icon { color: #141715 !important; }
.header-nav.is-scrolled .nav-icon:hover { color: #c5a467 !important; }
.header-nav.is-scrolled .nav-badge { background-color: #11281d !important; color: #ffffff !important; }

/* Animated Scroll Down Indicator */
@keyframes scrollPill {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.35; }
  100% { transform: translateY(0); opacity: 1; }
}
.animate-scroll-pill {
  animation: scrollPill 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}


/* Link Draw Animation */
.link-draw { position: relative; }
.link-draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-draw:hover::after, .link-draw:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Buttons */
button, [type="submit"], [role="button"], a[class*="bg-primary"], a[class*="border-primary"] {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
button:active, [type="submit"]:active, [role="button"]:active {
  transform: translateY(1px) scale(0.988);
}

/* Horizontal product rails / luxury sliders */
[data-rail-track] {
  scroll-behavior: smooth;
  scroll-padding-left: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
[data-rail-track].cursor-grab {
  cursor: grab;
}
[data-rail-track].cursor-grabbing {
  cursor: grabbing !important;
  user-select: none !important;
}
[data-rail-track].cursor-grabbing a,
[data-rail-track].cursor-grabbing button {
  pointer-events: none !important;
}
[data-rail-prev][disabled], [data-rail-next][disabled] {
  opacity: 0.22 !important;
  pointer-events: none !important;
  cursor: default !important;
}
[data-rail-progress] {
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Micro crackle texture for cards */
.card-craft-grain {
  position: relative;
}
.card-craft-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(20, 23, 21, 0.06);
  z-index: 5;
}

/* Interactive Timeline Step Cards */
.timeline-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-card:hover, .timeline-card.is-active {
  background-color: #ffffff;
  border-color: rgba(197, 164, 103, 0.5);
  box-shadow: 0 10px 25px -4px rgba(20, 23, 21, 0.08);
}

/* Quick View Modal Animations */
#quick-view-modal.is-open .qv-backdrop {
  opacity: 1;
}
#quick-view-modal.is-open .qv-card {
  opacity: 1;
  transform: scale(1);
}

/* Preloader */
.preload {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--color-ivory);
  animation: preload-out 0.6s cubic-bezier(0.4, 0, 0.2, 1) 2.2s forwards;
}
.preload.is-done { animation: preload-out 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes preload-out {
  to { opacity: 0; visibility: hidden; }
}

.preload__pattern {
  position: absolute;
  inset: 0;
  background-color: var(--color-forest);
  opacity: 0.08;
  -webkit-mask-image: url("../img/damask.png");
  mask-image: url("../img/damask.png");
  -webkit-mask-size: 320px 320px;
  mask-size: 320px 320px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

.preload__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  text-align: center;
}

.preload__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0;
  animation: preload-in 0.6s ease 0.1s forwards;
}

.preload__mark {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-forest);
  opacity: 0;
  animation: preload-in 0.8s ease 0.2s forwards;
}

.preload__bar {
  width: 120px;
  height: 1px;
  background: rgba(197, 164, 103, 0.3);
  overflow: hidden;
  position: relative;
}
.preload__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform-origin: left;
  transform: scaleX(0);
  animation: preload-bar 2s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}
@keyframes preload-bar { to { transform: scaleX(1); } }
@keyframes preload-in  { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .preload { animation: preload-out 0.01s linear 0.2s forwards; }
  .preload__bar::after { animation: none; }
  .preload__eyebrow, .preload__mark { opacity: 1; animation: none; }
  .hero-video { display: none; }
}

/* ==========================================================================
   FLUID RESPONSIVE SYSTEM (4K UHD 3840px down to Mobile 320px)
   ========================================================================== */

/* Dynamic root scaling for extreme viewports */
@media (max-width: 360px) {
  html { font-size: 14.5px; }
}
@media (min-width: 1920px) {
  html { font-size: 16.5px; }
}
@media (min-width: 2560px) {
  html { font-size: 18.5px; }
}
@media (min-width: 3840px) {
  html { font-size: 22px; }
}

/* Fluid Site Container — Maximizes space on 4K/2K while keeping luxury margins */
.site-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 480px) {
  .site-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
@media (min-width: 640px) {
  .site-container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .site-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
@media (min-width: 1280px) {
  .site-container {
    padding-left: 3rem;
    padding-right: 3rem;
    max-width: 1440px;
  }
}
@media (min-width: 1536px) {
  .site-container {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
    max-width: 1680px;
  }
}
@media (min-width: 1920px) { /* Full HD / 1080p full wide */
  .site-container {
    padding-left: 4.5rem;
    padding-right: 4.5rem;
    max-width: 2040px;
  }
}
@media (min-width: 2560px) { /* 2K QHD / Ultrawide */
  .site-container {
    padding-left: 5.5rem;
    padding-right: 5.5rem;
    max-width: 2600px;
  }
}
@media (min-width: 3200px) { /* 3.2K / Retina 5K */
  .site-container {
    padding-left: 6.5rem;
    padding-right: 6.5rem;
    max-width: 3100px;
  }
}
@media (min-width: 3840px) { /* 4K UHD */
  .site-container {
    padding-left: 7.5rem;
    padding-right: 7.5rem;
    max-width: 3600px;
  }
}

/* Progressive expansion of existing container classes */
@media (min-width: 1536px) {
  .max-w-container-max { max-width: 1680px !important; }
}
@media (min-width: 1920px) {
  .max-w-container-max { max-width: 2040px !important; }
}
@media (min-width: 2560px) {
  .max-w-container-max { max-width: 2600px !important; }
}
@media (min-width: 3840px) {
  .max-w-container-max { max-width: 3600px !important; }
}

/* 4K and Ultra-wide Grid Expansions */
@media (min-width: 1920px) {
  .grid-cols-4-on-3xl {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .grid-cols-5-on-3xl {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 2560px) {
  .grid-cols-5-on-4xl {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .grid-cols-6-on-4xl {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 3840px) {
  .grid-cols-6-on-5xl {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Prevent horizontal overflow on any mobile viewport */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

