/* UI/UX Pro Max - SUNRISE ENTERPRISE Design System */
/* Style: Trust & Authority | Colors: Industrial Grey + Safety Orange */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  /* Design System Colors - Trust & Authority */
  --primary: #334155;      /* Slate-700 - Authority */
  --primary-light: #475569; /* Slate-600 */
  --secondary: #64748B;     /* Slate-500 - Professional */
  --accent: #F97316;        /* Orange-500 - CTA/Highlight */
  --accent-light: #FB923C;  /* Orange-400 */
  --bg-light: #F8FAFC;      /* Slate-50 */
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;     /* Slate-900 - High contrast */
  --text-gray: #334155;     /* Slate-700 */
  --text-muted: #64748B;    /* Slate-500 */
  --border: #E2E8F0;        /* Slate-200 */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.2s ease-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', 'Noto Sans', sans-serif;
  line-height: 1.2;
}

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

ul, ol {
  list-style: none;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }
}

/* Header - Floating style */
.header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1000;
  border: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.8;
}

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

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

.nav-links {
  display: none;
  gap: 32px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

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

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
  outline: none;
}

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

.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  gap: 6px;
  background: var(--bg-light);
  padding: 4px;
  border-radius: 20px;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Hero - Immersive */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M40 0l40 40-40 40L0 40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

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

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--bg-white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

@media (min-width: 768px) {
  .section {
    padding: 100px 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 64px;
  }
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* About */
.about {
  background: var(--bg-light);
}

.about-content {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .about-stats {
    gap: 20px;
  }
}

.stat-item {
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: default;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

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

/* Products */
.products {
  background: var(--bg-white);
}

.products-grid {
  display: grid;
  gap: 60px;
}

@media (min-width: 768px) {
  .products-grid {
    gap: 80px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-category h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.product-category h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.product-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .product-list {
    gap: 24px;
  }
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
}

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

.product-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
}

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

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

/* Decorative corner overlay - elegant triangle */
.product-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 40px 40px;
  border-color: transparent transparent var(--accent) transparent;
  opacity: 0.9;
}

.product-img::before {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--bg-white);
  border-radius: 50%;
  z-index: 1;
}

.product-info {
  padding: 16px;
  text-align: center;
  background: var(--bg-white);
}

.product-info h4 {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

@media (min-width: 768px) {
  .product-info {
    padding: 20px;
  }

  .product-info h4 {
    font-size: 1rem;
  }
}

/* Advantages - Trust badges style */
.advantages {
  background: var(--bg-light);
}

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

@media (min-width: 640px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.advantage-card {
  background: var(--bg-white);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: default;
  border: 1px solid transparent;
}

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

.advantage-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.08);
}

.advantage-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--bg-white);
}

.advantage-card h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

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

/* Footer */
.footer {
  background: var(--primary);
  color: var(--bg-white);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

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

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

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg-white);
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  font-weight: 600;
  transition: top 0.2s ease-out;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}
