/* ===================================
   Lodestar Capital Management
   Nautical Opulence Design System
   =================================== */

/* CSS Variables */
:root {
  --primary: #0f2942;
  --primary-foreground: #faf8f5;
  --accent: #d4af37;
  --accent-foreground: #0f2942;
  
  --background: #faf8f5;
  --foreground: #1a2a3a;
  --card: #ffffff;
  --card-foreground: #1a2a3a;
  --muted: #f5f3f0;
  --muted-foreground: #5a6a7a;
  --border: #e8e4dd;
  --destructive: #dc3545;
  
  --radius: 4px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h4, h5, h6 {
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-weight: 600;
}

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

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

/* ===================================
   Language Switching
   =================================== */
/* Default: Show Chinese, Hide English */
body[data-lang="zh"] .en {
  display: none !important;
}

body[data-lang="zh"] .zh {
  display: inline;
}

/* English Mode: Show English, Hide Chinese */
body[data-lang="en"] .zh {
  display: none !important;
}

body[data-lang="en"] .en {
  display: inline;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c9a030;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary); }
.bg-background { background-color: var(--background); }
.bg-muted { background-color: var(--muted); }

/* Gold Divider */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 16px 0;
}

.gold-divider.center {
  width: 96px;
  margin: 24px auto;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  background: #c9a030;
  border-color: #c9a030;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* Nautical Pattern Overlay */
.nautical-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/nautical-pattern-bg.png');
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
}

/* ===================================
   Navigation
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(15, 41, 66, 0.98);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

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

.nav-logo-icon {
  height: 48px;
  width: auto;
}

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

.nav-logo-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-foreground);
  letter-spacing: 1px;
}

.nav-logo-subtitle {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

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

.nav-link {
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
  opacity: 1;
}

.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-foreground);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--accent);
  color: var(--accent-foreground);
}

.nav-cta {
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background: #c9a030;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary-foreground);
  transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 41, 66, 0.55);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 100px;
}

.hero-text {
  color: var(--primary-foreground);
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  line-height: 1.1;
  margin-bottom: 32px;
  font-weight: 700;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollPulse 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(4px); }
}

/* ===================================
   Section Common
   =================================== */
.section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

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

.section-header.light {
  color: var(--primary-foreground);
}

.section-header.light .section-desc {
  opacity: 0.8;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted-foreground);
}

/* ===================================
   About Section
   =================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  padding: 32px;
  border: 2px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.about-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-icon {
  width: 64px;
  height: 64px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.about-card:hover .about-icon {
  transform: scale(1.1);
}

.about-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.about-title {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ===================================
   Services Section
   =================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.service-card {
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 16px;
  transform: scale(1);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scale(1.02);
}

.service-card-inner {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition);
}

.service-card:hover .service-card-inner {
  border-color: var(--accent);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent-foreground);
}

.service-title {
  font-size: 30px;
  color: var(--primary-foreground);
  margin-bottom: 8px;
}

.service-code {
  font-size: 14px;
  color: var(--accent);
}

.service-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-item {
  display: flex;
  gap: 12px;
}

.service-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.service-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-foreground);
  margin-bottom: 4px;
}

.service-item p {
  font-size: 14px;
  color: var(--primary-foreground);
  opacity: 0.7;
  line-height: 1.6;
}

/* ===================================
   Advantages Section
   =================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 32px;
}

.comparison-card {
  padding: 32px;
}

.comparison-card.bank {
  background: var(--muted);
  border-color: var(--border);
}

.comparison-card.lodestar {
  background: rgba(212, 175, 55, 0.05);
  border: 2px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.comparison-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.comparison-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.comparison-item.negative svg {
  color: var(--destructive);
}

.comparison-item.negative {
  color: var(--muted-foreground);
}

.comparison-item.positive svg {
  color: var(--accent);
}

.comparison-item.positive {
  color: var(--foreground);
  font-weight: 500;
}

.advantage-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.advantage-card {
  padding: 24px;
  border-left: 3px solid rgba(212, 175, 55, 0.3);
}

.advantage-title {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
}

.advantage-desc {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===================================
   Financial Strength Section
   =================================== */
.strength-section {
  position: relative;
}

.strength-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.strength-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.strength-icon {
  width: 64px;
  height: 64px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.strength-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.strength-title {
  font-size: 24px;
  color: #b9b1b1;
  margin-bottom: 16px;
}

.strength-intro {
  font-size: 15px;
  color: var(--primary-foreground);
  opacity: 0.8;
  margin-bottom: 16px;
}

.strength-amount {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.strength-type {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.strength-desc {
  font-size: 14px;
  color: var(--primary-foreground);
  opacity: 0.7;
  line-height: 1.6;
}

/* ===================================
   Location Section
   =================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.location-image img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.location-title {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 16px;
}

.location-address {
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.location-area {
  font-size: 15px;
  color: var(--muted-foreground);
  margin-top: 16px;
  line-height: 1.6;
}

.location-subtitle {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
}

.location-desc {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 24px;
}

.location-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid rgba(212, 175, 55, 0.3);
}

.location-note svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.location-note p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===================================
   Fact Sheet Section
   =================================== */
.factsheet-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 48px;
  border: 2px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}

.factsheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}

.factsheet-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.factsheet-label {
  display: block;
  font-size: 14px;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}

.factsheet-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
  position: relative;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.contact-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
}

.contact-compass {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

.contact-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--primary-foreground);
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 20px;
  color: var(--primary-foreground);
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  color: var(--primary-foreground);
  margin-bottom: 32px;
}

.contact-info svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: rgba(15, 41, 66, 0.95);
  color: var(--primary-foreground);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

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

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

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-company-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-foreground);
  letter-spacing: 0.5px;
}

.footer-company-subtitle {
  font-size: 11px;
  color: var(--accent);
}

.footer-tagline {
  font-size: 14px;
  opacity: 0.7;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-contact p {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.footer-uen {
  margin-top: 16px !important;
  opacity: 1 !important;
}

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

.footer-bottom p {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 4px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .strength-grid {
    grid-template-columns: 1fr;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .nav-logo-title {
    font-size: 14px;
  }
  
  .nav-logo-subtitle {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    display: none;
    z-index: 999;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1000;
  }
  
  .nav-logo-text-group {
    display: none;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .advantage-details {
    grid-template-columns: 1fr;
  }
  
  .factsheet-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-brand {
    grid-column: auto;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .service-header {
    flex-direction: column;
  }
  
  .factsheet-card {
    padding: 24px;
  }
}
