/* ==========================================================================
   Sri Kumaran Blue Metals & Bricks - Complete Stylesheet
   Recreation of https://sri-kumaran-bluemetals-and-bricks.base44.app/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --color-ivory: #F8F5EF;
  --color-ivory-light: #FDFAF5;
  --color-noir: #111111;
  --color-noir-light: #1A1A1A;
  --color-charcoal: #2E2E2E;
  --color-gold: #C9A84C;
  --color-gold-deep: #A8863A;
  --color-gold-soft: #D4B763;
  --color-champagne: #E8D6B3;
  --color-champagne-light: #F5ECE0;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-body);
  background-color: var(--color-ivory);
  color: var(--color-noir);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-ivory);
  color: var(--color-noir);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Typography Helpers */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.label-tracked {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.66rem;
  font-weight: 500;
}

/* Glassmorphism Styles */
.glass {
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44));
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 22px 60px -38px rgba(17, 17, 17, 0.45), inset 0 1px rgba(255, 255, 255, 0.75);
}

.glass-soft {
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.30));
  border: 1px solid rgba(17, 17, 17, 0.07);
  box-shadow: 0 16px 44px -34px rgba(17, 17, 17, 0.4), inset 0 1px rgba(255, 255, 255, 0.6);
}

.glass-dark {
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(232, 214, 179, 0.24);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.85), inset 0 1px rgba(255, 255, 255, 0.16);
}

/* Subtle Film Grain Noise */
.grain {
  position: relative;
}

.grain::after {
  content: "";
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Sheen Light-Sweep Hover Animation */
.sheen {
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  z-index: 2;
}

.group:hover .sheen {
  transform: translateX(130%);
}

/* Form Line Fields */
.field-line {
  color: var(--color-noir);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.22);
  outline: none;
  width: 100%;
  padding: 0.85rem 0.15rem;
  font-size: 1rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.field-line::placeholder {
  color: rgba(46, 46, 46, 0.45);
}

.field-line:focus {
  border-bottom-color: var(--color-gold);
  box-shadow: 0 12px 24px -22px rgba(201, 168, 76, 0.9);
}

select.field-line {
  cursor: pointer;
}

select.field-line option {
  background-color: var(--color-ivory);
  color: var(--color-noir);
}

/* Layout Utilities */
.max-w-1440 {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-1280 {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-1180 {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F8F5EF;
}

::-webkit-scrollbar-thumb {
  background: #C9A84C;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A8863A;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.12; transform: scale(1) translate(-50%, -50%); }
  50% { opacity: 0.22; transform: scale(1.08) translate(-50%, -50%); }
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

.animate-bounce-slow {
  animation: bounceSlow 2.6s infinite ease-in-out;
}

/* Quote Rotator Transitions */
.quote-fade-enter {
  opacity: 0;
  transform: translateY(15px);
  filter: blur(8px);
}
.quote-fade-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
  transition: all 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.quote-fade-exit {
  opacity: 0;
  transform: translateY(-15px);
  filter: blur(8px);
  transition: all 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mobile Navigation Drawer */
#mobile-drawer {
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

#mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox Modal */
#lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

#lightbox-modal .lightbox-content {
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

/* Gallery Filter Active */
.filter-btn.active {
  background-color: var(--color-gold) !important;
  color: var(--color-noir) !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
}

/* Smooth Image hover scales */
.img-zoom {
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.group:hover .img-zoom {
  transform: scale(1.08);
}
