:root {
  /* Color Palette - Premium Textile Aesthetic */
  --primary: #800000; /* Deep Crimson */
  --primary-light: #a52a2a;
  --secondary: #1a1a1a; /* Charcoal */
  --accent: #d4af37; /* Gold/Brass */
  --text-main: #333333;
  --text-muted: #666666;
  --bg-light: #fdfdfd;
  --bg-dark: #121212;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-dark: rgba(0, 0, 0, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
  transition: var(--transition);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: clamp(60px, 10vw, 120px) 0;
}

.flex { display: flex; }
.grid { display: grid; gap: 30px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Responsive Grids */
.grid-1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Premium Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}

/* About/Products/Contact pages should have scrolled header by default */
.fixed-header .site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.site-header.scrolled .logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: flex-start !important;
}



.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: #fff; /* Default for hero overlay */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  transition: var(--transition);
}

.site-header.scrolled .nav-links a,
.fixed-header .site-header .nav-links a {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 30px; /* Slightly larger */
    padding: 10px;
    color: var(--secondary); /* Charcoal black by default */
    transition: var(--transition);
    z-index: 10005;
    position: relative;
}

.site-header.scrolled .mobile-toggle,
.fixed-header .site-header .mobile-toggle {
  color: #000 !important; /* Force pure black */
}

@media (max-width: 991px) {
  .mobile-toggle {
    display: flex !important; /* Force display */
    align-items: center;
    justify-content: center;
    color: var(--primary) !important; /* Bright crimson if not scrolled */
    font-size: 32px; /* Large size */
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10005;
  }
  
  .nav-links {
    display: none; /* Physically remove from layout when closed */
    position: absolute;
    top: 100%;
    right: 1.5rem;
    width: 250px;
    height: auto;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 10000;
    gap: 0;
    border: 1px solid rgba(0,0,0,0.05);
  }
  
  .nav-links.active {
    display: flex; /* Show only when active */
    animation: fadeInDown 0.3s ease-out;
  }

  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    color: var(--secondary) !important;
    font-size: 14px;
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
  
  .nav-links a::after {
    display: none; /* Hide the underline effect on mobile for cleaner look */
  }

  .nav-links a:hover {
    padding-left: 10px; /* Modern slide-in effect on hover */
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-3px);
}

.hero .btn-outline {
    border-color: #fff;
    color: #fff !important;
}

.hero .btn-outline:hover {
    background: #fff;
    color: var(--primary) !important;
}

/* Section Styling */
.section-title {
  margin-bottom: 60px;
}

.section-title span {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--secondary);
  line-height: 1.1;
}

/* Glassmorphism & Cards */
.card-hover {
  transition: var(--transition);
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.glass-card {
  background: #fff;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Hero Slider */
/* Hero Slider - Moved to index.html for robustness */

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mouse {
  width: 25px;
  height: 45px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
}

.mouse::after {
  content: '';
  width: 5px;
  height: 5px;
  background: #fff;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
  0% { top: 10px; opacity: 1; }
  100% { top: 25px; opacity: 0; }
}

/* Subpage Hero */
.subpage-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.subpage-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.subpage-hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 100px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 80px;
}

.footer-logo img {
  height: 55px;
  margin-bottom: 30px;
}

.footer-logo p {
  color: #aaa;
  font-size: 15px;
  line-height: 1.8;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 30px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #888;
  font-size: 15px;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-contact li {
  display: flex !important;
  gap: 15px;
  margin-bottom: 20px;
  color: #888;
}

.footer-contact li i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #555;
  font-size: 14px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .grid {
    gap: 20px;
  }
  
  .footer-grid {
    gap: 40px;
  }
  
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
}

/* Force Brown Hover Effect on All Headings (Excluding hero titles) */
body h1:not(.no-hover):hover, body h2:not(.no-hover):hover, body h3:not(.no-hover):hover, 
body h4:not(.no-hover):hover, body h5:not(.no-hover):hover, body h6:not(.no-hover):hover,
.section-title h2:not(.no-hover):hover, .section-title span:not(.no-hover):hover {
  color: #a52a2a !important; /* Brown */
  cursor: pointer !important;
  transition: color 0.3s ease !important;
}

/* Ensure no-hover class headings stay consistent */
.no-hover:hover {
    cursor: default !important;
}
