/* Base Design System - Dark Industrial & Slate Luxury Theme */
:root {
  --bg-dark: #0B0F17;
  --bg-card: #151C28;
  --bg-card-hover: #1E293B;
  --bg-header: rgba(11, 15, 23, 0.85);
  
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-glow: rgba(245, 158, 11, 0.2);
  
  --success: #10B981;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(37, 99, 235, 0.5);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(21, 28, 40, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Global Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #1E293B, #0F172A);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

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

.top-contact a {
  margin-left: 16px;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.2s;
}

.top-contact a:hover {
  color: var(--accent);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 26px;
}

.logo-text span {
  color: var(--primary);
}

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

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-main);
}

.cms-link-btn {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent) !important;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 600 !important;
}

.cms-link-btn:hover {
  background: var(--accent);
  color: #000 !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rfq-basket-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.rfq-basket-btn:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.rfq-badge {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-whatsapp {
  background: #25D366;
  color: #000;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 80px;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60A5FA;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  padding: 20px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Catalog & Section Styles */
.catalog-section, .quality-section, .contact-section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.section-tag {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Filter Controls */
.filter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.search-box {
  position: relative;
  min-width: 280px;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 16px 10px 40px;
  border-radius: 30px;
  outline: none;
  font-size: 14px;
}

.search-box input:focus {
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.product-thumb {
  position: relative;
  height: 220px;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

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

.product-sku {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-specs-list {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-specs-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.product-specs-list strong {
  color: var(--text-main);
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.product-actions .btn {
  flex: 1;
  font-size: 13px;
  padding: 10px;
}

/* Modals & Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 24px;
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* RFQ Modal Specific */
.rfq-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  max-height: 200px;
  overflow-y: auto;
}

.rfq-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0F172A;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.rfq-form h4 {
  margin-bottom: 12px;
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-grid input, .rfq-form textarea {
  width: 100%;
  background: #0F172A;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 14px;
}

.form-grid input:focus, .rfq-form textarea:focus {
  border-color: var(--primary);
}

.btn-block {
  width: 100%;
}

/* Quality Grid */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.quality-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: left;
}

.quality-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.quality-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 10px;
}

.quality-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Contact Section */
.contact-card {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.c-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.c-icon {
  font-size: 24px;
}

.contact-cta {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.contact-cta h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.contact-cta p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: #070A10;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 14px;
  max-width: 360px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  color: var(--text-dim);
  font-size: 13px;
}

.text-center {
  text-align: center;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-title {
    font-size: 36px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
}
