/* ===== CSS Custom Properties ===== */
:root {
  --primary: #1A0F0A;
  --primary-light: #3D2B1F;
  --accent: #C4944A;
  --accent-dark: #A67832;
  --accent-light: #D4AD6A;
  --accent-glow: rgba(196,148,74,0.12);
  --light: #F7F3EF;
  --lighter: #FDFBF9;
  --white: #FFFFFF;
  --gray-100: #F5F4F3;
  --gray-200: #E8E6E3;
  --gray-300: #D4D1CD;
  --gray-400: #A09A94;
  --gray-500: #706B65;
  --gray-600: #524D47;
  --gray-700: #3A3530;
  --gray-800: #252220;
  --text: #1A0F0A;
  --text-light: #6B5B50;
  --text-muted: #9A8E84;
  --shadow-sm: 0 1px 3px rgba(26,15,10,0.04);
  --shadow: 0 4px 16px rgba(26,15,10,0.06);
  --shadow-md: 0 8px 32px rgba(26,15,10,0.08);
  --shadow-lg: 0 20px 56px rgba(26,15,10,0.12);
  --shadow-accent: 0 8px 32px rgba(196,148,74,0.2);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1240px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.accent-text { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ===== Header / Navbar ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  height: var(--header-height);
}

.header.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
  height: 60px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}

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

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--accent);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 680px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}

.dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-group {
  padding: 4px 0;
}

.mega-menu-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 6px 10px;
  margin-bottom: 2px;
}

.mega-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--gray-600);
  transition: var(--transition-fast);
  font-weight: 450;
}

.mega-menu a:hover {
  background: var(--light);
  color: var(--accent-dark);
  padding-left: 14px;
}

@media (max-width: 768px) {
  .mega-menu {
    position: static;
    box-shadow: none;
    border: none;
    min-width: auto;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dropdown.open .mega-menu {
    display: grid;
  }
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 24px 24px;
    gap: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #1a0e09 100%);
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 50%, var(--accent) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--accent-light) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, var(--accent-dark) 0%, transparent 45%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 550px;
  opacity: 0.25;
}

.hero-image img {
  width: 100%;
  filter: brightness(1.2);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat h3 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 4px;
}

.hero-stat p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-image { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ===== Sections ===== */
section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.section-light {
  background: var(--lighter);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ===== Categories Grid ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}

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

.category-card-bg {
  position: absolute;
  inset: 0;
  transition: var(--transition);
}

.category-card:hover .category-card-bg {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.9) 0%, rgba(44,24,16,0.3) 60%, rgba(44,24,16,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.category-card h3 {
  color: var(--white);
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.category-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Category card backgrounds */
.cat-jali { background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #A0522D 100%); }
.cat-doors { background: linear-gradient(135deg, #654321 0%, #8B6914 50%, #704214 100%); }
.cat-panels { background: linear-gradient(135deg, #5C4033 0%, #8B7355 50%, #6B4423 100%); }
.cat-kitchen { background: linear-gradient(135deg, #3E2723 0%, #795548 50%, #4E342E 100%); }
.cat-furniture { background: linear-gradient(135deg, #4A3728 0%, #7B5B3A 50%, #5D4037 100%); }
.cat-cnc { background: linear-gradient(135deg, #2C1810 0%, #5D4037 50%, #3E2723 100%); }

.category-card-bg.has-image {
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Features / Why Choose Us ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
}

.feature-card h4 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== Product Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.product-card-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card-info {
  padding: 16px 20px;
}

.product-card-info h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.product-card-info .product-code {
  color: var(--text-light);
  font-size: 0.825rem;
  margin-bottom: 8px;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.product-card-price .price {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1.05rem;
}

.product-card-price .unit {
  color: var(--text-light);
  font-size: 0.8rem;
}

.product-card .btn-enquire {
  width: 100%;
  padding: 10px;
  text-align: center;
  background: var(--light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  border-top: 1px solid var(--gray-200);
}

.product-card:hover .btn-enquire {
  background: var(--accent);
  color: var(--white);
}

/* Placeholder cards for categories without images */
.product-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-placeholder-bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

.product-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

/* ===== Filter Tabs ===== */
.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 24px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--light);
  transition: var(--transition);
}

.filter-tab:hover {
  color: var(--primary);
  background: var(--gray-200);
}

.filter-tab.active {
  background: var(--primary);
  color: var(--white);
}

/* ===== Product Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.96);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-100);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-images {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-images img {
  border-radius: var(--radius);
  width: 100%;
}

.modal-details {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-details h2 {
  font-size: 1.5rem;
}

.modal-details .product-code {
  color: var(--text-light);
  font-size: 0.9rem;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.modal-details .description {
  color: var(--text-light);
  line-height: 1.7;
}

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.modal-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.modal-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 768px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal { max-height: 95vh; }
}

/* ===== CTA / Enquiry Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a0e09 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M20 20h20v20H20z'/%3E%3Cpath d='M0 0h20v20H0z'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-text h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .cta-content { grid-template-columns: 1fr; }
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,148,74,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-card.dark-form {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}

.dark-form .form-group label { color: rgba(255,255,255,0.8); }

.dark-form .form-group input,
.dark-form .form-group textarea,
.dark-form .form-group select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.dark-form .form-group input:focus,
.dark-form .form-group textarea:focus,
.dark-form .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,148,74,0.2);
}

.dark-form .form-group input::placeholder,
.dark-form .form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.dark-form .form-group select option {
  background: var(--white);
  color: var(--text);
}

.form-group select option {
  color: var(--text);
  background: var(--white);
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success.show { display: block; }

.form-success svg {
  width: 64px;
  height: 64px;
  color: #22c55e;
  margin-bottom: 16px;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-brand .nav-logo {
  margin-bottom: 8px;
}

.footer-brand .nav-logo span {
  color: var(--white);
}

.footer-brand-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-brand-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
}

.footer-brand-social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-brand-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact li span:first-child {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  margin-top: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent);
  transition: var(--transition);
}

.breadcrumb a:hover { color: var(--accent-dark); }

.breadcrumb span { color: var(--gray-400); }

/* ===== Page Header ===== */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a0e09 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header .container { position: relative; }

.page-header .breadcrumb a { color: var(--accent-light); }
.page-header .breadcrumb,
.page-header .breadcrumb span { color: rgba(255,255,255,0.5); }

.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  font-size: 1.05rem;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-info-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  margin-top: 32px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Floating Enquiry Button ===== */
.float-enquiry {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #25D366;
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}

.float-enquiry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

.float-enquiry svg {
  width: 20px;
  height: 20px;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 998;
  right: 90px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== CNC Services Page ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card .service-icon {
  width: 72px;
  height: 72px;
  background: var(--light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.process-step {
  position: relative;
}

.process-step-num {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 16px;
}

.process-step h4 {
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-light);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Portfolio Grid ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* ===== Category Page Intro ===== */
.category-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.category-intro-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.category-intro-image img {
  width: 100%;
}

@media (max-width: 768px) {
  .category-intro { grid-template-columns: 1fr; }
}

/* ===== Enquiry Section (on product pages) ===== */
.enquiry-section {
  padding: 64px 0;
  background: var(--lighter);
}

.enquiry-section .container {
  max-width: 700px;
}

/* ===== Services Overview Grid (Homepage) ===== */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-overview-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-overview-card:hover::before {
  transform: scaleX(1);
}

.service-overview-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-overview-icon {
  width: 56px;
  height: 56px;
  background: var(--light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}

.service-overview-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.service-overview-card p {
  color: var(--text-light);
  font-size: 0.825rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .services-overview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-overview-grid { grid-template-columns: 1fr; }
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

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

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--text-light);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-author-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== Image Gallery / Masonry ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

.gallery-item.tall { grid-row: span 2; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; }
}

/* ===== Trust Badges ===== */
.trust-strip {
  background: var(--light);
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* ===== Social Icons SVG in Footer ===== */
.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== About Page ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-text h2 {
  margin-bottom: 16px;
}

.about-hero-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .about-hero { grid-template-columns: 1fr; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.75rem;
}

.value-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.value-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}

.green-pledge {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--white);
}

.green-pledge-icon {
  width: 96px;
  height: 96px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.green-pledge h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.green-pledge p {
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .green-pledge {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

.company-details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.company-details-header {
  background: var(--primary);
  color: var(--white);
  padding: 20px 28px;
}

.company-details-header h3 {
  color: var(--white);
  font-size: 1.15rem;
}

.company-details-body {
  padding: 4px 0;
}

.detail-row {
  display: flex;
  padding: 14px 28px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.925rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  width: 200px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary);
}

.detail-value {
  color: var(--text-light);
}

@media (max-width: 600px) {
  .detail-row {
    flex-direction: column;
    gap: 4px;
  }
  .detail-label { width: auto; }
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item h4 {
  margin-bottom: 4px;
}

.timeline-item .year {
  font-size: 0.825rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
