/* ============================================
   Hainan Ruichen Trading Co., Ltd.
   Auto Repair Equipment - Independent Website
   ============================================ */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

/* ===== Bilingual Support ===== */
/* Default: show EN, hide ZH (exclude body to avoid hiding entire page) */
.lang-en { display: inline; }
.lang-en.block { display: block; }
.lang-zh:not(body) { display: none; }
/* Chinese mode: hide EN, show ZH */
body.lang-zh .lang-en { display: none; }
body.lang-zh .lang-zh:not(body) { display: inline; }
body.lang-zh .lang-zh.block { display: block; }
body.lang-zh { font-family: 'Noto Sans SC', 'Inter', sans-serif; }
body.lang-zh h1, body.lang-zh h2, body.lang-zh h3, body.lang-zh h4, body.lang-zh h5, body.lang-zh h6 {
  font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
}

/* Language Toggle Button */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lang-toggle .sep {
  color: var(--gray-300);
  font-weight: 400;
}

.lang-toggle .active-lang {
  color: var(--gold);
}

/* ===== CSS Variables ===== */
:root {
  --navy: #1a3a5c;
  --navy-dark: #0d1f30;
  --navy-light: #2a5278;
  --gold: #c9a227;
  --gold-light: #e0bc3e;
  --gold-dark: #a8861a;
  --cream: #f8f8f5;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --container-max: 1280px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-dark);
}

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

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

ul {
  list-style: none;
}

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

/* ===== Section Spacing ===== */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

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

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-text .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-dark);
  line-height: 1.2;
}

.nav-brand-text .tag {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  position: relative;
}

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

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

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

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

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></g></svg>');
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-text h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text h1 .highlight {
  color: var(--gold);
}

.hero-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 520px;
}

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

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

.hero-stat .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual .floating-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.hero-visual .floating-card .icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-visual .floating-card .icon-item {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.hero-visual .floating-card .icon-item:hover {
  background: rgba(201, 162, 39, 0.15);
  transform: translateY(-4px);
}

.hero-visual .floating-card .icon-item svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.hero-visual .floating-card .icon-item span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 500;
}

/* ===== Features Section ===== */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

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

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

.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-md);
}

.feature-card .icon svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

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

/* ===== Product Categories ===== */
.categories {
  background: var(--cream);
}

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

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

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

.category-card .cat-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.category-card .cat-img svg {
  width: 56px;
  height: 56px;
  color: var(--gold);
  opacity: 0.9;
}

.category-card .cat-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.category-card .cat-body {
  padding: 20px;
}

.category-card .cat-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.category-card .cat-body p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.category-card .cat-body .count {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ===== Featured Products ===== */
.featured-products {
  background: var(--white);
}

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

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

.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--gray-300);
}

.product-card .product-img {
  height: 220px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card .product-img svg {
  width: 64px;
  height: 64px;
  color: var(--navy-light);
  opacity: 0.4;
}

.product-card .product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-img .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.product-card .product-body {
  padding: 24px;
}

.product-card .product-body .cat-label {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

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

.product-card .product-body p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-body .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.product-card .product-body .specs span {
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--gray-600);
}

.product-card .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card .product-footer .inquire {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card .product-footer .inquire:hover {
  color: var(--gold);
}

/* ===== About Preview ===== */
.about-preview {
  background: var(--navy-dark);
  color: var(--white);
}

.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview .label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.about-preview h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.about-preview p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about-preview .about-list {
  margin: 28px 0;
  display: grid;
  gap: 14px;
}

.about-preview .about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.about-preview .about-list li svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-preview .about-visual {
  position: relative;
}

.about-preview .about-visual .stat-box {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.about-preview .about-visual .stat-box .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-preview .about-visual .stat-box .stat-row:last-child {
  border-bottom: none;
}

.about-preview .about-visual .stat-box .stat-row .stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}

.about-preview .about-visual .stat-box .stat-row .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  padding: 72px 0;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-section .hero-buttons {
  justify-content: center;
}

/* ===== Page Header (Inner Pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
}

.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.page-header .breadcrumb a:hover {
  color: var(--gold);
}

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

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

/* ===== Products Page ===== */
.products-page {
  background: var(--cream);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

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

.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== Product Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 31, 48, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  z-index: 1;
}

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

.modal-content {
  padding: 0;
}

/* Modal Gallery (3 images) */
.modal-gallery {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--gray-100);
}

.gallery-main {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--gray-100);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--gray-100);
}

.gallery-thumb {
  flex: 1;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--gray-200);
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  border-color: var(--gold-light);
}

.gallery-thumb.active {
  border-color: var(--gold);
}

.gallery-thumb.no-img {
  opacity: 0.3;
  cursor: default;
}

.gallery-thumb.no-img::after {
  content: '—';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gray-500);
  font-size: 0.9rem;
}

.modal-header {
  padding: 32px 32px 20px;
}

.modal-header .cat-label {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.modal-body {
  padding: 0 32px 32px;
}

.modal-body h4 {
  font-size: 1rem;
  color: var(--navy);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.spec-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--navy);
  width: 40%;
}

.spec-table td {
  color: var(--gray-600);
}

.modal-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ===== About Page ===== */
.about-content {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-grid .about-text .label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.about-grid .about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-grid .about-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-grid .about-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
}

.about-grid .about-visual h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.about-grid .about-visual .mission-list {
  display: grid;
  gap: 16px;
}

.about-grid .about-visual .mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.about-grid .about-visual .mission-list li svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Values Section */
.values {
  background: var(--cream);
}

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

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

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

.value-card .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 12px;
}

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

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== Contact Page ===== */
.contact-page {
  background: var(--cream);
}

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

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card .icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.contact-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  word-break: break-word;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-200);
}

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

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

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

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

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

.form-success {
  display: none;
  padding: 16px 20px;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-sm);
  color: #065f46;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

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

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.footer-brand .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-brand .tag {
  font-size: 0.72rem;
  color: var(--gold);
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: 'Montserrat', sans-serif;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col ul a:hover {
  color: var(--gold);
}

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

.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);
}

.footer-social a:hover {
  background: var(--gold);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social a:hover svg {
  color: var(--navy-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile Nav */
  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 40px) 0 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 32px;
  }

  .hero-stat .num {
    font-size: 1.5rem;
  }

  .section {
    padding: 56px 0;
  }

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

  .features-grid,
  .categories-grid,
  .products-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-preview .container,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-preview h2,
  .cta-section h2 {
    font-size: 1.75rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .nav-brand-text .tag {
    display: none;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll-triggered animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-4px);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

/* ===== Upload Page ===== */
.upload-section {
  padding: 48px 0 80px;
}

.upload-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.upload-stats {
  font-size: 0.95rem;
  color: var(--gray-600);
}

.upload-stats strong {
  color: var(--navy);
  font-size: 1.2rem;
}

.upload-actions {
  display: flex;
  gap: 12px;
}

.upload-instructions {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: #fefbf3;
  border: 1px solid #f5e6b8;
  border-radius: var(--radius-md);
}

.upload-instructions p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 6px;
}

.upload-instructions p:last-child {
  margin-bottom: 0;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.upload-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}

.upload-card.flash-success {
  border-color: var(--gold);
  animation: flashPulse 0.8s ease;
}

@keyframes flashPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

.upload-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.upload-pid {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Montserrat', monospace;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.upload-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 3-slot layout per product */
.upload-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
}

.drop-zone {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  border-radius: 8px;
}

.drop-zone:hover {
  border-color: var(--gold);
  background: #fefbf3;
}

.drop-zone.drag-over {
  border-color: var(--gold);
  background: #fef5d7;
  transform: scale(0.95);
}

.drop-zone.has-image {
  border-style: solid;
  border-color: var(--gray-200);
}

.drop-zone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gray-400);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 8px;
}

.drop-zone-placeholder svg {
  color: var(--gray-400);
  transition: var(--transition);
  width: 20px;
  height: 20px;
}

.drop-zone:hover .drop-zone-placeholder svg {
  color: var(--gold);
}

.drop-zone-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slot delete button (appears on hover) */
.slot-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.drop-zone.has-image:hover .slot-delete {
  opacity: 1;
}

.slot-delete:hover {
  background: #e53e3e;
}

/* Upload page responsive */
@media (max-width: 640px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-actions {
    justify-content: center;
  }
}
