/* base.css — reset, utility, và các thành phần DÙNG CHUNG toàn showroom
   (topbar, footer, cta/form, hub). Style riêng từng sản phẩm nằm ở
   assets/css/products/<slug>.css — KHÔNG copy các class dưới đây vào đó. */

/* 1. RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: var(--gradient-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 2. UTILITY */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 242, 254, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

/* 3. BUTTONS */
/* .btn = alias dùng trong nội dung riêng từng sản phẩm (migrate nguyên từ CSS gốc);
   .srm-btn = dùng trong component dùng chung (cta.njk...). Cùng 1 style, 2 tên gọi
   để không phải sửa lại toàn bộ markup đã migrate. */
.btn, .srm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-family: var(--font-sans);
}

.btn-primary, .srm-btn-primary {
  background: var(--gradient-primary);
  color: #030712;
  font-weight: 700;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover, .srm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-strong);
}

.btn-outline, .srm-btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover, .srm-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* 4. TOPBAR — dùng chung mọi trang, fixed cao hơn header riêng của sản phẩm */
.srm-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--srm-topbar-height);
  z-index: 1200;
  background: rgba(6, 9, 19, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.srm-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.srm-topbar-logo {
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
}

.srm-topbar-products {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  white-space: nowrap;
}

.srm-topbar-label {
  color: var(--text-muted);
}

.srm-topbar-products a {
  color: var(--text-muted);
}

.srm-topbar-products a:hover {
  color: var(--primary);
}

.srm-topbar-phone {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .srm-topbar-products { display: none; }
}

/* 5. CTA / QUOTE FORM — dùng chung mọi trang */
.srm-cta {
  padding: 6rem 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-glass);
}

.srm-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.srm-cta-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.srm-cta-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.srm-cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.srm-cta-benefit {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.srm-cta-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.srm-form-group {
  margin-bottom: 1.4rem;
}

.srm-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.srm-form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(6, 9, 19, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.srm-form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.srm-form-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

.srm-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.srm-form-success.visible {
  display: flex;
}

.srm-quote-form.hidden {
  display: none;
}

.srm-form-success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.srm-form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
  .srm-cta-inner { grid-template-columns: 1fr; }
}

/* 6. FOOTER — dùng chung mọi trang */
.srm-footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-dark);
}

.srm-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.srm-footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.srm-footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.srm-footer-col h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.srm-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.srm-footer-col a:hover {
  color: var(--primary);
}

.srm-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

/* 7. HUB (trang chủ showroom /) */
.srm-hub-hero {
  padding: calc(var(--srm-topbar-height) + 5rem) 0 4rem 0;
  text-align: center;
}

.srm-hub-hero h1 {
  font-size: 2.6rem;
  margin: 1rem 0;
}

.srm-hub-hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.srm-hub-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.srm-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

.srm-product-card-img {
  height: 200px;
  overflow: hidden;
}

.srm-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srm-product-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.srm-product-card-brand {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.srm-product-card-body h3 {
  font-size: 1.25rem;
  color: var(--text-white);
}

.srm-product-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.srm-product-card-params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
}

.srm-product-card-param {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(58, 134, 255, 0.15);
  color: var(--secondary);
  font-weight: 600;
}

.srm-product-card-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
