/* ==========================================================================
   Marutham - Brand New Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --color-primary: #C9912A; /* Marutham Gold */
  --color-primary-light: #DFB15B;
  --color-primary-dark: #A6731B;
  
  --color-bg-dark: #0a0a0a;
  --color-bg-light: #f9f8f4;
  --color-surface-dark: #141414;
  --color-surface-light: #ffffff;
  
  --color-text-light: #f4f4f4;
  --color-text-muted: #a1a1aa;
  --color-text-dark: #1c1c1c;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 400;
}

.text-gold { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* Typography Scaling */
.text-hero { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; }
.text-h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.text-h2 { font-size: clamp(2rem, 4vw, 3rem); }
.text-h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.text-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--color-text-muted); max-width: 700px; margin-bottom: 1.5rem;}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.section {
  padding: 5vh 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-sm {
  padding: var(--space-lg) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  border-radius: 2px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #000;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  transition: all 0.3s ease;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links > a, .nav-links .dropdown > a {
  padding-bottom: 0.4rem;
}

.nav-links > a::after, .nav-links .dropdown > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links > a:hover::after, .nav-links .dropdown:hover > a::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface-dark);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ==========================================================================
   Page Specific: Homepage
   ========================================================================== */

/* Hero */
.hero {
  min-height: 90vh;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-top: 20rem;
}

/* Features / Bento Box */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.bento-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 55vh;
  background: var(--color-surface-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform var(--transition-normal);
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: rgba(201,145,42,0.3);
}

.bento-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
  opacity: 0.6;
}

.bento-item:hover .bento-img img {
  transform: scale(1.1);
  opacity: 0.4;
}

.bento-content {
  position: relative;
  z-index: 1;
}

/* Masonry Gallery */
.masonry {
  column-count: 2;
  column-gap: 1rem;
}
@media (min-width: 768px) {
  .masonry { column-count: 3; }
}
@media (min-width: 1024px) {
  .masonry { column-count: 4; }
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}
.masonry-item img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-normal);
  filter: grayscale(80%) contrast(1.2);
}
.masonry-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Testimonials */
.testi-card {
  background: var(--color-surface-dark);
  padding: 2.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Footer */
.site-footer {
  background: var(--color-surface-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-xl) 0 var(--space-md) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div {
    grid-column: span 1 !important;
  }
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Image Edge Fading */


.fade-edges {
  -webkit-mask-image: -webkit-radial-gradient(center, ellipse cover, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
  border: none !important;
}

/* Ensure images in split layouts don't break vertical bounds */
.grid-2 img {
  max-height: 60vh;
  width: 100%;
  object-fit: cover;
}

/* Scrolled Header State */
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.site-header.scrolled .logo img {
  max-height: 140px !important;
  transition: max-height 0.3s ease;
}

.site-header.scrolled .logo span {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-header .logo img {
  transition: max-height 0.3s ease;
}

.site-header .logo span {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Scroll Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background: var(--color-gold);
  width: 0%;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px var(--color-gold);
}


/* Cart Drawer */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.active {
  opacity: 0;
  pointer-events: none;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 270px;
  max-width: 100vw;
  height: 100vh;
  padding-top: 120px;
  background: var(--color-bg);
  border-left: 1px solid rgba(201,145,42,0.2);
  z-index: 90;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.cart-drawer.open {
  right: 0;
}
.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-close:hover { color: var(--color-primary); }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item-details { flex: 1; }
.cart-item-title { font-family: var(--font-serif); font-size: 0.95rem; margin-bottom: 0.2rem; }
.cart-item-meta { font-size: 0.85rem; color: var(--color-text-muted); }
.cart-footer {
  padding: 1.5rem;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Form Styles */
    /* Premium Contact Page Specific Styles */
    .form-glass {
      background: rgba(20, 20, 20, 0.4);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 3.5rem;
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    .form-group {
      margin-bottom: 1.5rem;
    }
    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: var(--color-text-light);
      font-size: 0.9rem;
      letter-spacing: 0.05em;
    }
    .form-control-glass {
      width: 100%;
      padding: 1rem 1.2rem;
      background: rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 6px;
      color: #fff;
      font-family: var(--font-sans);
      font-size: 1rem;
      transition: all 0.3s ease;
    }
    .form-control-glass:focus {
      outline: none;
      border-color: var(--color-primary);
      background: rgba(0, 0, 0, 0.8);
      box-shadow: 0 0 0 1px var(--color-primary);
    }
    .form-control-glass::placeholder {
      color: rgba(255, 255, 255, 0.3);
    }
    textarea.form-control-glass {
      resize: vertical;
      min-height: 120px;
    }
