/* ==========================================================================
   หนองอ้อศิลป์ (Nong Or Sin) - Design System
   Theme: White, Gold & Ivory (ขาว ทอง งาช้าง)
   ========================================================================== */

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

:root {
  /* Color Palette: White, Gold, Ivory */
  --bg-ivory-light: #FDFBF7;
  --bg-ivory: #F8F5EE;
  --bg-ivory-dark: #EFE9DC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #FAF7F0;
  
  /* Gold Accents */
  --gold-primary: #C5A059;
  --gold-dark: #9A7B38;
  --gold-deep: #70551E;
  --gold-light: #E8D39E;
  --gold-subtle: #F6EED8;
  --gold-border: rgba(197, 160, 89, 0.35);
  --gold-border-focus: rgba(197, 160, 89, 0.8);
  --gold-gradient: linear-gradient(135deg, #DFBA67 0%, #C5A059 50%, #9C7934 100%);
  --gold-gradient-soft: linear-gradient(135deg, #F9F3E5 0%, #EFE1C3 100%);
  --gold-gradient-hover: linear-gradient(135deg, #E8C87A 0%, #D4AF5F 50%, #AA873E 100%);

  /* Neutral & Typography */
  --text-main: #2A2520;
  --text-muted: #6E675F;
  --text-light: #9B948B;
  --text-gold: #9A7B38;
  --text-inverse: #FFFFFF;

  /* Status Colors (Elegantly muted to match gold aesthetic) */
  --status-success: #2E7D32;
  --status-success-bg: #E8F5E9;
  --status-warning: #B26A00;
  --status-warning-bg: #FFF3E0;
  --status-danger: #C62828;
  --status-danger-bg: #FFEBEE;
  --status-info: #1565C0;
  --status-info-bg: #E3F2FD;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 6px rgba(112, 85, 30, 0.05);
  --shadow-md: 0 6px 18px rgba(112, 85, 30, 0.08);
  --shadow-lg: 0 12px 32px rgba(112, 85, 30, 0.12);
  --shadow-gold: 0 8px 24px rgba(197, 160, 89, 0.25);

  /* Radius & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-ivory-light);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

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

a:hover {
  color: var(--gold-deep);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

/* ==========================================================================
   Top Global Switch Bar (Seamlessly switch between Landing & ERP)
   ========================================================================== */
.global-switch-bar {
  background: #1F1B16;
  color: #E2D9C8;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.global-switch-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.gold-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.view-switcher-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.switch-btn {
  border: none;
  background: transparent;
  color: #CFC5B4;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.switch-btn:hover {
  color: #FFF;
}

.switch-btn.active {
  background: var(--gold-gradient);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.4);
}

/* ==========================================================================
   LANDING PAGE STYLES
   ========================================================================== */
.landing-view {
  display: block;
}

.landing-header {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 41px;
  z-index: 99;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.brand-text h1 {
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.brand-text p {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 500;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 6px 0;
}

.landing-nav a:hover,
.landing-nav a.active {
  color: var(--gold-dark);
}

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

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

.btn-erp-enter {
  background: var(--gold-gradient);
  color: #FFF !important;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-erp-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(197, 160, 89, 0.4);
  color: #FFF !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 40px 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  max-width: 1360px;
  margin: 0 auto;
}

.hero-content {
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-subtle);
  color: var(--gold-deep);
  border: 1px solid var(--gold-border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-title span.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary-gold {
  background: var(--gold-gradient);
  color: #FFF;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(197, 160, 89, 0.4);
}

.btn-secondary-ivory {
  background: var(--bg-white);
  color: var(--gold-deep);
  border: 1px solid var(--gold-border);
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-secondary-ivory:hover {
  background: var(--bg-ivory);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-border);
}

.stat-item h4 {
  font-size: 1.6rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Media Display */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold-border);
}

.hero-image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-subtle);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-info h5 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.floating-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Product Catalog Section */
.catalog-section {
  padding: 90px 40px;
  background: var(--bg-white);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.section-container {
  max-width: 1360px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-size: 2.3rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.filter-btn {
  border: 1px solid var(--gold-border);
  background: var(--bg-ivory-light);
  color: var(--text-muted);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-dark);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #FFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-primary);
}

.product-thumb {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--bg-ivory);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.product-body p.prod-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px dashed var(--gold-border);
  margin-bottom: 16px;
}

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

.price-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-card-order {
  background: var(--gold-gradient);
  color: #FFF;
  border: none;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-card-order:hover {
  background: var(--gold-gradient-hover);
}

.btn-card-detail {
  background: var(--bg-ivory);
  color: var(--text-main);
  border: 1px solid var(--gold-border);
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-card-detail:hover {
  border-color: var(--gold-primary);
  color: var(--gold-dark);
}

/* Service Section */
.services-section {
  padding: 90px 40px;
  background: var(--bg-ivory-light);
}

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

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

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

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient-soft);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-dark);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-main);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li span {
  color: var(--gold-primary);
  font-weight: bold;
}

/* Quote Request & Contact Section */
.contact-section {
  padding: 90px 40px;
  background: var(--bg-white);
  border-top: 1px solid var(--gold-border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-ivory-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-subtle);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-text h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Quote Form */
.quote-form-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.quote-form-box h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.quote-form-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  background: var(--bg-ivory-light);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-border-focus);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* Landing Footer */
.landing-footer {
  background: #1B1814;
  color: #DDD4C5;
  padding: 60px 40px 24px;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1360px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  color: #FFF;
  font-size: 1.1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-col p {
  font-size: 0.88rem;
  color: #B5AB9B;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #B5AB9B;
  font-size: 0.88rem;
}

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

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #8C8477;
}

/* ==========================================================================
   ERP BACK-OFFICE SYSTEM STYLES
   ========================================================================== */
.erp-view {
  display: none;
  min-height: calc(100vh - 41px);
}

.erp-layout {
  display: flex;
  min-height: calc(100vh - 41px);
}

/* ERP Sidebar */
.erp-sidebar {
  width: 275px;
  background: #1B1814;
  color: #ECE5D8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(197, 160, 89, 0.25);
  position: sticky;
  top: 41px;
  height: calc(100vh - 41px);
  overflow-y: auto;
}

.erp-sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.erp-emblem {
  width: 38px;
  height: 38px;
  background: var(--gold-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-weight: 700;
  font-size: 1.1rem;
}

.erp-brand-info h2 {
  font-size: 1.05rem;
  color: #FFF;
  margin: 0;
}

.erp-brand-info p {
  font-size: 0.72rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

/* ERP Sidebar Navigation */
.sidebar-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #857D70;
  padding: 20px 20px 8px;
  font-weight: 600;
}

.erp-nav-menu {
  list-style: none;
  padding: 0 10px;
}

.erp-nav-item {
  margin-bottom: 3px;
}

.erp-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #CFC5B6;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.erp-nav-link:hover {
  background: rgba(197, 160, 89, 0.12);
  color: #FFF;
}

.erp-nav-link.active {
  background: var(--gold-gradient);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}

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

.nav-icon {
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
  opacity: 0.85;
}

.nav-badge-count {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.nav-badge-count.alert {
  background: var(--status-danger);
}

.erp-sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.user-quick-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-dark);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.user-details h5 {
  font-size: 0.85rem;
  color: #FFF;
}

.user-details p {
  font-size: 0.72rem;
  color: var(--gold-light);
}

/* ERP Main Content */
.erp-main-area {
  flex: 1;
  background: var(--bg-ivory-light);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ERP Top Header */
.erp-top-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--gold-border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 41px;
  z-index: 90;
}

.erp-header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.erp-header-breadcrumb .active-crumb {
  color: var(--gold-deep);
  font-weight: 600;
}

.erp-top-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-quick-action {
  background: var(--bg-ivory);
  border: 1px solid var(--gold-border);
  color: var(--gold-deep);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-quick-action:hover {
  background: var(--gold-gradient);
  color: #FFF;
  border-color: transparent;
}

/* Dynamic Page Title & Purpose Explanation Banner (Mandatory Requirement) */
.page-title-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF6EE 100%);
  border-bottom: 1px solid var(--gold-border);
  padding: 24px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.page-title-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: var(--gold-gradient);
}

.banner-left {
  max-width: 900px;
}

.banner-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.page-title-banner h2 {
  font-size: 1.65rem;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-purpose-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.banner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Module Container */
.erp-module-content {
  padding: 32px;
  flex: 1;
}

.erp-tab-pane {
  display: none;
}

.erp-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Metric Cards */
.metrics-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.metric-info h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.metric-sub {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-sub.up {
  color: var(--status-success);
}

.metric-sub.alert {
  color: var(--status-danger);
}

.metric-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--gold-subtle);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* Dashboard Dual Grid */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.panel-card {
  background: var(--bg-white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-border);
}

.panel-header h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tables in ERP */
.table-responsive {
  overflow-x: auto;
}

.erp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.erp-table th {
  background: var(--bg-ivory);
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gold-border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.erp-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  color: var(--text-main);
  vertical-align: middle;
}

.erp-table tr:hover td {
  background: #FAF7F0;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-success {
  background: var(--status-success-bg);
  color: var(--status-success);
}

.badge-warning {
  background: var(--status-warning-bg);
  color: var(--status-warning);
}

.badge-danger {
  background: var(--status-danger-bg);
  color: var(--status-danger);
}

.badge-info {
  background: var(--status-info-bg);
  color: var(--status-info);
}

.badge-gold {
  background: var(--gold-subtle);
  color: var(--gold-deep);
  border: 1px solid var(--gold-border);
}

/* Production Pipeline Kanban */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.kanban-col {
  background: var(--bg-card-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-height: 480px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-border);
}

.kanban-col-header h4 {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-card {
  background: var(--bg-white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.kanban-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.job-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.kanban-card h5 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.kanban-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.kanban-progress {
  height: 6px;
  background: var(--bg-ivory-dark);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
}

.kanban-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.btn-micro {
  padding: 4px 8px;
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
  background: var(--bg-white);
  cursor: pointer;
  transition: var(--transition);
}

.btn-micro:hover {
  background: var(--gold-gradient);
  color: #FFF;
  border-color: transparent;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 24, 20, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-ivory-light);
}

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gold-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-ivory-light);
}

/* Printable Bill / Invoice Styles */
.bill-paper {
  background: #FFF;
  border: 1px solid var(--gold-border);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
}

.bill-header-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.bill-company h2 {
  font-size: 1.4rem;
  color: var(--gold-dark);
}

.bill-meta {
  text-align: right;
}

.bill-meta h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.bill-customer-box {
  background: var(--bg-ivory-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.bill-total-summary {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.bill-total-table {
  width: 320px;
}

.bill-total-table tr td {
  padding: 6px 10px;
}

.bill-total-table tr.total-highlight {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-deep);
  border-top: 2px solid var(--gold-primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1B1814;
  color: #FFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: toastSlideIn 0.3s ease;
  min-width: 280px;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Mobile Navigation Drawer & Toggle Controls
   ========================================================================== */

/* Landing Mobile Hamburger Button */
.landing-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px;
  transition: var(--transition);
}

.landing-mobile-toggle:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
}

.landing-mobile-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* Landing Mobile Drawer */
.landing-mobile-drawer {
  position: fixed;
  top: 0;
  right: -310px;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid var(--gold-border);
  box-shadow: var(--shadow-lg);
  z-index: 2100;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.landing-mobile-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-ivory-light);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.drawer-close-btn:hover {
  background: var(--bg-ivory-dark);
  color: var(--text-main);
}

.drawer-nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.drawer-link:hover,
.drawer-link.active {
  background: var(--gold-subtle);
  color: var(--gold-deep);
}

.drawer-divider {
  height: 1px;
  background: var(--gold-border);
  margin: 12px 0;
}

/* Backdrop Overlay for Drawers & ERP Mobile Sidebar */
.drawer-backdrop,
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 24, 20, 0.6);
  backdrop-filter: blur(3px);
  z-index: 2050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active,
.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* ERP Mobile Sidebar Toggle Button */
.erp-mobile-toggle {
  display: none;
  background: var(--bg-ivory);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px;
  flex-shrink: 0;
  transition: var(--transition);
}

.erp-mobile-toggle:hover {
  background: var(--gold-gradient);
  color: #FFF;
  border-color: transparent;
}

.erp-mobile-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-deep);
  border-radius: 2px;
  transition: var(--transition);
}

.erp-mobile-toggle:hover .bar {
  background: #FFF;
}

/* Sidebar Close Button on Mobile */
.sidebar-close-btn-mobile {
  display: none;
  background: none;
  border: none;
  color: #DDD4C5;
  font-size: 1.3rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.sidebar-close-btn-mobile:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}

/* ==========================================================================
   Comprehensive Responsive Media Queries
   ========================================================================== */

/* Laptop & Tablet Landscape (<= 1024px) */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 50px 30px;
    gap: 40px;
  }

  .hero-content {
    max-width: 750px;
  }

  .hero-visual {
    max-width: 750px;
  }

  .hero-image-wrapper img {
    height: 380px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .metrics-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .dashboard-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Tablet Portrait & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  /* Global switch bar */
  .global-switch-bar {
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .global-switch-brand span:last-child {
    display: none; /* Hide badge on mobile */
  }

  .switch-btn {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  /* Landing Header */
  .landing-header {
    padding: 12px 18px;
    top: 49px;
  }

  .landing-brand .brand-text h1 {
    font-size: 1.15rem;
  }

  .landing-brand .brand-text p {
    display: none; /* Keep header clean */
  }

  .landing-nav {
    display: none;
  }

  .landing-mobile-toggle {
    display: flex;
  }

  .hide-on-mobile {
    display: none !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 36px 18px 60px;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.3;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .hero-image-wrapper img {
    height: 280px;
  }

  /* Fix floating card overflow on mobile */
  .hero-floating-card {
    position: static;
    margin-top: 16px;
    max-width: 100%;
    width: 100%;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
  }

  .stat-item h4 {
    font-size: 1.3rem;
  }

  .stat-item p {
    font-size: 0.75rem;
  }

  /* Catalog */
  .catalog-section,
  .services-section,
  .contact-section {
    padding: 50px 18px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .filter-tabs {
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .quote-form-box {
    padding: 24px 18px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ERP Sidebar Mobile Drawer */
  .erp-sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 285px;
    height: 100vh;
    z-index: 2200;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
  }

  .erp-sidebar.mobile-open {
    left: 0;
  }

  .sidebar-close-btn-mobile {
    display: flex;
  }

  .erp-mobile-toggle {
    display: flex;
  }

  /* ERP Top Header & Banner */
  .erp-top-header {
    padding: 10px 16px;
    top: 49px;
  }

  .erp-header-breadcrumb {
    font-size: 0.8rem;
  }

  .breadcrumb-prefix {
    display: none; /* Truncate on mobile */
  }

  .page-title-banner {
    padding: 18px 16px;
    flex-direction: column;
    gap: 12px;
  }

  .page-title-banner h2 {
    font-size: 1.35rem;
  }

  .page-purpose-desc {
    font-size: 0.85rem;
  }

  .erp-module-content {
    padding: 16px;
  }

  /* Metrics Grid */
  .metrics-grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kanban-board {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bill-paper {
    padding: 18px;
  }

  .bill-header-row {
    flex-direction: column;
    gap: 12px;
  }

  .bill-meta {
    text-align: left;
  }

  .bill-total-summary {
    justify-content: stretch;
  }

  .bill-total-table {
    width: 100%;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .global-switch-bar {
    justify-content: center;
    padding: 6px 10px;
  }

  .global-switch-brand {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-pill {
    font-size: 0.78rem;
    padding: 4px 12px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary-gold,
  .hero-actions .btn-secondary-ivory,
  .hero-actions .btn-erp-enter {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-item {
    border-bottom: 1px dashed var(--gold-border);
    padding-bottom: 8px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .modal-container {
    width: 95vw;
    margin: 10px;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    padding: 12px 16px;
    flex-direction: column;
  }

  .modal-footer button {
    width: 100%;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }
}

