/* ========================================
   Haoji Group LLC - Static Website Styles
   Pure HTML + CSS + JS
   ======================================== */

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

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  background-color: #EDDDD4;
  color: #001233;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== Variables ===== */
:root {
  --c-navy: #001233;
  --c-slate: #33415C;
  --c-sand: #EDDDD4;
  --c-sand-dark: #D8CBC4;
  --c-yellow: #F9DC5C;
  --c-cream: #F4F3EE;
  --c-red: #E74C3C;
  --c-red-hover: #c0392b;
  --c-amber: #EDA546;
  --c-green: #16a34a;
}

/* ===== Layout ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s ease;
}
.navbar.transparent { background: transparent; }
.navbar.scrolled {
  background: rgba(237, 221, 212, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 92, 0.15);
}
.navbar .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 999px; transition: all 0.3s ease;
}
.navbar.scrolled .nav-link { color: var(--c-navy); }
.navbar.scrolled .nav-link:hover { background: rgba(0,18,51,0.06); }
.navbar.transparent .nav-link { color: var(--c-cream); }
.navbar.transparent .nav-link:hover { background: rgba(255,255,255,0.1); }

/* Nav color states for transparent/scrolled */
.navbar.scrolled .nav-phone,
.navbar.scrolled .nav-lang,
.navbar.scrolled .nav-logo { color: var(--c-navy); }
.navbar.transparent .nav-phone,
.navbar.transparent .nav-lang,
.navbar.transparent .nav-logo { color: var(--c-cream); }
.navbar.scrolled .mobile-toggle { color: var(--c-navy); }
.navbar.transparent .mobile-toggle { color: var(--c-cream); }

/* Dropdown */
.dropdown-wrap { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 4px;
  width: 220px; background: white; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border: 1px solid rgba(51,65,92,0.08);
  padding: 6px 0; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all 0.2s ease;
  z-index: 60;
}
.dropdown-wrap:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-wrap button.nav-link { cursor: pointer; }

/* Footer logo link */
.footer-logo-link { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--c-navy); margin-bottom: 14px; text-decoration: none; }
.footer-logo-link:hover { color: var(--c-red); }
.dropdown-menu a { display: block; padding: 10px 16px; font-size: 13px; color: var(--c-navy); transition: background 0.2s; }
.dropdown-menu a:hover { background: var(--c-sand); }

/* Nav Right */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
@media (min-width: 768px) { .nav-phone { display: flex; } }
.nav-lang {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 13px; font-weight: 500;
  border-radius: 999px; border: 1px solid currentColor;
  opacity: 0.7; transition: opacity 0.3s;
}
.nav-lang:hover { opacity: 1; }
.nav-cta {
  display: none; padding: 8px 20px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--c-red); border-radius: 999px;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--c-red-hover); }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

/* Mobile Toggle */
.mobile-toggle { display: flex; padding: 8px; color: inherit; background: none; border: none; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--c-sand); padding: 80px 24px 32px;
  overflow-y: auto; z-index: 40;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0;
  font-size: 17px; font-weight: 500; color: var(--c-navy);
  border-bottom: 1px solid rgba(51,65,92,0.1);
}
.mobile-menu .mobile-section { padding: 12px 0; border-bottom: 1px solid rgba(51,65,92,0.1); }
.mobile-menu .mobile-label { font-size: 11px; font-weight: 600; color: var(--c-slate); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.mobile-menu .mobile-section a { font-size: 15px; padding: 8px 0; border: none; }
.mobile-menu .mobile-cta { display: block; margin-top: 20px; padding: 14px; text-align: center; font-size: 16px; font-weight: 600; color: #fff; background: var(--c-red); border-radius: 999px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-size: 14px; font-weight: 600;
  border-radius: 999px; transition: all 0.3s ease; cursor: pointer;
}
.btn-red { background: var(--c-red); color: #fff; box-shadow: 0 10px 40px rgba(231,76,60,0.25); }
.btn-red:hover { background: var(--c-red-hover); transform: translateY(-2px); }
.btn-yellow { background: var(--c-yellow); color: var(--c-navy); }
.btn-yellow:hover { background: #ffec8b; }
.btn-outline { border: 1px solid rgba(244,243,238,0.5); color: var(--c-cream); background: transparent; }
.btn-outline:hover { border-color: var(--c-cream); background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--c-navy); color: var(--c-cream); }
.btn-dark:hover { background: var(--c-slate); }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

/* ===== Cards ===== */
.card {
  background: var(--c-cream); border-radius: 12px; padding: 32px;
  border: 1px solid rgba(51,65,92,0.08); transition: all 0.3s ease;
}
.card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { font-size: 11px; font-weight: 600; color: var(--c-slate); text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 14px; }
.section-title { font-size: 28px; font-weight: 300; color: var(--c-navy); }
@media (min-width: 768px) { .section-title { font-size: 36px; } }

/* ===== Page Header ===== */
.page-header { padding-top: 128px; padding-bottom: 80px; background: var(--c-navy); }
.page-header .page-label { font-size: 11px; font-weight: 600; color: rgba(244,243,238,0.5); text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 14px; }
.page-header .page-title { font-size: 36px; font-weight: 300; color: var(--c-cream); margin-bottom: 14px; }
@media (min-width: 768px) { .page-header .page-title { font-size: 52px; } }
.page-header .page-desc { font-size: 16px; color: rgba(244,243,238,0.75); max-width: 640px; }

/* ===== Grids ===== */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ===== Icon Boxes ===== */
.icon-box {
  width: 52px; height: 52px; border-radius: 10px; background: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; transition: all 0.3s ease;
}
.icon-box svg { color: var(--c-cream); }
.card:hover .icon-box { background: var(--c-yellow); }
.card:hover .icon-box svg { color: var(--c-navy); }

/* ===== Pricing ===== */
.pricing-card { background: var(--c-cream); border-radius: 12px; padding: 32px; text-align: center; }
.pricing-card.featured { border: 2px solid var(--c-yellow); position: relative; }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; background: var(--c-yellow); color: var(--c-navy);
  font-size: 11px; font-weight: 600; border-radius: 999px;
}
.price { font-size: 48px; font-weight: 700; color: var(--c-navy); line-height: 1; }
.price-period { color: var(--c-slate); font-size: 14px; }
.feature-list { text-align: left; margin: 24px 0; }
.feature-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--c-navy); }
.feature-list li svg { flex-shrink: 0; color: var(--c-green); }

/* ===== FAQ Accordion ===== */
.faq-item { background: var(--c-cream); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; text-align: left; font-weight: 500; color: var(--c-navy);
  font-size: 14px; cursor: pointer; transition: background 0.2s; background: none; border: none;
}
.faq-question:hover { background: var(--c-sand); }
.faq-icon { font-size: 20px; color: var(--c-slate); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 20px 18px; font-size: 14px; color: var(--c-slate); line-height: 1.7; }

/* ===== Forms ===== */
.form-input {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid rgba(51,65,92,0.18); background: #fff;
  color: var(--c-navy); font-size: 14px; transition: all 0.3s ease;
}
.form-input:focus { outline: none; border-color: var(--c-yellow); box-shadow: 0 0 0 3px rgba(249,220,92,0.2); }
.form-input.error { border-color: #ef4444; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--c-navy); margin-bottom: 6px; }
.form-error { font-size: 12px; color: #ef4444; margin-top: 4px; display: none; }
.form-error.show { display: flex; align-items: center; gap: 4px; }

/* Radio/Checkbox Cards */
.radio-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  border-radius: 10px; border: 2px solid rgba(51,65,92,0.1);
  cursor: pointer; transition: all 0.3s ease; background: #fff;
}
.radio-card:hover { border-color: rgba(51,65,92,0.25); }
.radio-card.selected { border-color: var(--c-yellow); background: rgba(249,220,92,0.06); }
.radio-card input[type="radio"], .radio-card input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-navy); flex-shrink: 0; margin-top: 2px; }

/* Form Steps */
.form-step { background: var(--c-cream); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.form-step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.form-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--c-navy); color: var(--c-yellow); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Order Summary */
.order-summary { background: var(--c-navy); border-radius: 12px; padding: 24px; color: var(--c-cream); }
.order-summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.order-summary-line.total { border-top: 1px solid rgba(244,243,238,0.15); padding-top: 12px; margin-top: 12px; font-size: 18px; font-weight: 600; }
.order-summary-line .total-price { color: var(--c-yellow); }

/* ===== Team ===== */
.team-card { text-align: center; }
.team-img { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; filter: grayscale(100%); transition: filter 0.5s ease; }
.team-card:hover .team-img { filter: grayscale(0%); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Comparison Table ===== */
.compare-table { width: 100%; border-radius: 12px; overflow: hidden; background: var(--c-cream); }
.compare-header { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 16px; background: var(--c-navy); color: var(--c-cream); font-size: 14px; font-weight: 600; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 14px 16px; font-size: 14px; }
.compare-row:nth-child(even) { background: var(--c-sand); }

/* ===== Stars ===== */
.stars { display: flex; gap: 4px; }
.stars svg { fill: var(--c-yellow); color: var(--c-yellow); }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Footer ===== */
.site-footer { background: var(--c-sand); border-top: 1px solid var(--c-slate); padding: 64px 0 24px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-title { font-size: 11px; font-weight: 600; color: var(--c-navy); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-link { display: block; font-size: 14px; color: var(--c-slate); padding: 4px 0; transition: color 0.2s; }
.footer-link:hover { color: var(--c-navy); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(51,65,92,0.15); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 12px; color: var(--c-slate); }

/* ===== Hero ===== */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
#starry-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: auto; }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; z-index: 20; padding: 40px 24px; }
@media (min-width: 768px) { .hero-content { padding: 60px 48px; } }
.hero-text-shadow { text-shadow: 0 2px 20px rgba(0,18,51,0.5); }

/* ===== Image Rounded ===== */
.img-rounded { border-radius: 12px; overflow: hidden; }
.img-rounded img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Aspect Ratios ===== */
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-3-2 { aspect-ratio: 3 / 2; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.p-6 { padding: 24px; }
.max-w-2 { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3 { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4 { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5 { max-width: 64rem; margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
@media (min-width: 768px) { .md\:block { display: block; } .md\:flex { display: flex; } .md\:grid-2 { grid-template-columns: repeat(2, 1fr); } .md\:hidden { display: none; } }
@media (min-width: 1024px) { .lg\:flex { display: flex; } .lg\:grid { display: grid; } .lg\:hidden { display: none; } }

/* Colors utility */
.c-navy { color: var(--c-navy); }
.c-slate { color: var(--c-slate); }
.c-cream { color: var(--c-cream); }
.c-yellow { color: var(--c-yellow); }
.c-amber { color: var(--c-amber); }
.c-green { color: var(--c-green); }
.c-red { color: var(--c-red); }
.bg-navy { background: var(--c-navy); }
.bg-sand { background: var(--c-sand); }
.bg-sand-dark { background: var(--c-sand-dark); }
.bg-cream { background: var(--c-cream); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-sand); }
::-webkit-scrollbar-thumb { background: var(--c-slate); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-navy); }
