/* ==========================================================================
   Biswajit Arts — shared stylesheet
   ========================================================================== */

:root {
  --marquee-h: 40px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: #16130f;
  color: #e9e1da;
  overflow-x: hidden;
  font-family: 'Manrope', sans-serif;
}

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

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

/* Faint fine-grained overlay, echoes graphite paper texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 9999;
  background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
}

.antique-gold-gradient {
  background: linear-gradient(90deg, transparent 0%, #c9a668 50%, transparent 100%);
  height: 1px;
  width: 100%;
}

.divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, #8B6B3D 50%, transparent);
  width: 100%;
}

.gold-gradient-text {
  background: linear-gradient(to right, #C9A668, #E8D9B5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: rgba(33, 26, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 166, 104, 0.15);
}

.art-card-inset {
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

/* ---------------------------------------------------------------------- */
/* Announcement marquee                                                   */
/* ---------------------------------------------------------------------- */

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 60;
  background: #100e0a;
  border-bottom: 1px solid rgba(201, 166, 104, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.announcement-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.announcement-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6c181;
}

.announcement-track span::after {
  content: '\2726';
  margin-left: 2rem;
  color: rgba(201, 166, 104, 0.5);
  font-size: 10px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-track { animation: none; }
}

/* ---------------------------------------------------------------------- */
/* Navigation                                                             */
/* ---------------------------------------------------------------------- */

.site-header {
  background: rgba(22, 19, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -1px;
  left: 50%;
  background-color: #e6c181;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}
.nav-link[aria-current="page"] {
  color: #e6c181;
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
}
#mobile-menu.open {
  max-height: 600px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

#menu-toggle .icon-close,
#menu-toggle.open .icon-menu {
  display: none;
}
#menu-toggle.open .icon-close {
  display: inline-block;
}

/* ---------------------------------------------------------------------- */
/* Hero copy entrance animation                                           */
/* ---------------------------------------------------------------------- */

.hero-copy > * {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-copy-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.46s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.64s; }

@keyframes hero-copy-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { animation: none; opacity: 1; transform: none; }
}

/* Animated underline sweep for section kickers on hover */
.kicker-link {
  position: relative;
}

/* Generic link/button hover polish used across the site */
a, button {
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

/* ---------------------------------------------------------------------- */
/* Hero background slideshow                                              */
/* ---------------------------------------------------------------------- */

#hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
#hero-slideshow .hero-slide.active {
  opacity: 1;
}

/* ---------------------------------------------------------------------- */
/* Scroll reveal                                                          */
/* ---------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-reveal.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* How It Works — step pin badges                                         */
/* ---------------------------------------------------------------------- */

.step-pin {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  border: 2px solid #e6c181;
  background: #1e1b17;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6c181;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.step-pin::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #1e1b17;
  border-right: 2px solid #e6c181;
  border-bottom: 2px solid #e6c181;
  transform: translateX(-50%) rotate(45deg);
}
.step-item:hover .step-pin {
  box-shadow: 0 0 0 8px rgba(230, 193, 129, 0.12);
  transform: translateY(-3px);
}

/* ---------------------------------------------------------------------- */
/* Cards & gallery                                                        */
/* ---------------------------------------------------------------------- */

.art-card {
  border: 1px solid rgba(201, 166, 104, 0.18);
}

.art-card-image-wrapper { overflow: hidden; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}
.gallery-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item.is-hidden {
  display: none;
}
.gallery-reel-tile {
  position: relative;
  display: block;
}
.gallery-reel-tile .reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,12,10,0.35);
  transition: background 0.3s ease;
}
.gallery-reel-tile:hover .reel-play { background: rgba(15,12,10,0.55); }
.gallery-reel-tile .reel-play span.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

select::-webkit-scrollbar { display: none; }
select { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------------------------------------------------------------------- */
/* Responsive filter / tab strip (gallery category tabs)                  */
/* ---------------------------------------------------------------------- */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.filter-tabs {
  max-width: 100%;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.filter-tabs button { scroll-snap-align: start; }

@media (max-width: 767px) {
  .filter-tabs {
    /* Fade the edges to hint at horizontal scroll without a visible scrollbar */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
}

/* ---------------------------------------------------------------------- */
/* FAQ accordion                                                          */
/* ---------------------------------------------------------------------- */

.faq-trigger {
  cursor: pointer;
  background: none;
  border: 0;
}
.faq-trigger span.font-headline-md {
  transition: color 0.25s ease;
}
.faq-trigger:hover span.font-headline-md {
  color: #e6c181;
}
.faq-icon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, border-color 0.25s ease;
}
.faq-trigger:hover .faq-icon {
  border-color: #e6c181;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: #e6c181;
  color: #16130f;
  border-color: #e6c181;
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-panel {
  max-height: 320px;
}

/* ---------------------------------------------------------------------- */
/* Testimonial arrow carousel                                             */
/* ---------------------------------------------------------------------- */

.testimonial-viewport {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track { transition: none; }
}

.testimonial-card {
  flex: 0 0 100%;
  border-color: rgba(201, 166, 104, 0.12);
  transition: border-color 0.3s ease;
}
.testimonial-quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  min-height: 128px;
}
.testimonial-quote.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
@media (min-width: 640px) {
  .testimonial-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (min-width: 1024px) {
  .testimonial-card { flex: 0 0 calc((100% - 48px) / 3); }
}
.testimonial-card:hover {
  border-color: rgba(201, 166, 104, 0.4);
}

.testi-arrow:disabled {
  pointer-events: none;
}

/* ---------------------------------------------------------------------- */
/* Floating action buttons                                                */
/* ---------------------------------------------------------------------- */

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fab {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, filter 0.25s ease;
}
.fab:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.08);
}
.fab-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}
.fab-whatsapp::before {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  opacity: 0.55;
  animation: fab-pulse 2.4s ease-out infinite;
  z-index: -1;
}
.fab-call {
  background-color: #e6c181;
  color: #271900;
}

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 480px) {
  .floating-actions { right: 14px; bottom: 16px; gap: 12px; }
  .fab { width: 50px; height: 50px; }
}

/* ---------------------------------------------------------------------- */
/* Forms                                                                  */
/* ---------------------------------------------------------------------- */

.form-field {
  width: 100%;
  background: #16130f;
  border: 1px solid rgba(154, 143, 129, 0.3);
  padding: 14px 16px;
  color: #e9e1da;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-field:focus { border-color: #e6c181; }
.form-field::placeholder { color: #9a8f81; }

/* Visible keyboard focus ring, kept subtle to match the dark palette */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e6c181;
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #e6c181;
  color: #271900;
  padding: 12px 20px;
  z-index: 100;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}
.skip-link:focus {
  left: 20px;
  top: 20px;
}
