/* ============================================
   Hi-Q Construction - Main Stylesheet
   ============================================ */

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

:root {
  --navy: #0f1b2d;
  --navy-light: #162240;
  --blue: #1e3a5f;
  --blue-accent: #2d6ab8;
  --gold: #c8a45a;
  --gold-light: #e8d49a;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --green: #2d7a3a;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--gray-800); background: var(--white); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================
   Navigation
   ============================================ */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 0; transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(15, 27, 45, 0.95); backdrop-filter: blur(12px);
  padding: 12px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img {
  height: 56px; width: auto; border-radius: 4px;
}
.logo-icon {
  background: var(--gold); color: var(--navy);
  font-weight: 900; font-size: 18px; padding: 8px 12px; letter-spacing: 2px;
}
.logo-text { color: var(--white); font-weight: 700; font-size: 14px; letter-spacing: 3px; }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500;
  letter-spacing: 0.5px; transition: var(--transition); 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 { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--gold); color: var(--navy); padding: 10px 24px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.5px; transition: var(--transition);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1b2d 0%, #162240 30%, #1e3a5f 60%, #0f1b2d 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(90deg, transparent, transparent 98px, rgba(200,164,90,0.03) 98px, rgba(200,164,90,0.03) 100px),
              repeating-linear-gradient(0deg, transparent, transparent 98px, rgba(200,164,90,0.03) 98px, rgba(200,164,90,0.03) 100px);
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(45,106,184,0.15) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 24px; }
.hero-slogan-text {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 20px; font-weight: 300; letter-spacing: 6px;
  color: rgba(200, 164, 90, 0.9); margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-slogan {
  height: 50px; width: auto; margin-bottom: 24px; opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-badges { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.badge {
  display: inline-block; background: rgba(200,164,90,0.15); color: var(--gold);
  font-size: 12px; font-weight: 600; letter-spacing: 2px; padding: 6px 16px;
  border: 1px solid rgba(200,164,90,0.3);
}

.hero h1 {
  font-family: var(--font-display); color: var(--white);
  font-size: clamp(36px, 6vw, 68px); font-weight: 700; line-height: 1.1; margin-bottom: 24px;
}
.hero h1 span { color: var(--gold); }
.hero-desc {
  color: rgba(255,255,255,0.7); font-size: 18px; line-height: 1.7;
  max-width: 600px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 36px; font-size: 15px; font-weight: 600;
  letter-spacing: 0.5px; cursor: pointer; transition: var(--transition);
  border: none; font-family: var(--font-sans);
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,164,90,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-full { width: 100%; text-align: center; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 2px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar { background: var(--white); padding: 50px 0; border-bottom: 1px solid var(--gray-200); }
.stats-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 50px; background: var(--gray-200);
}
.stat-number { font-size: 48px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-suffix { font-size: 36px; font-weight: 800; color: var(--gold); }
.stat-label { display: block; margin-top: 8px; font-size: 14px; color: var(--gray-600); font-weight: 500; letter-spacing: 0.5px; }

.stat-licenses { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; }
.license-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: var(--navy); color: var(--gold);
  font-weight: 800; font-size: 16px; letter-spacing: 1px;
}
.stat-lang { font-size: 32px; font-weight: 800; color: var(--navy); }
.stat-divider { font-size: 28px; color: var(--gray-400); margin: 0 4px; }

/* ============================================
   Section Common
   ============================================ */
.section-tag { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 3px; margin-bottom: 16px; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--gray-600); line-height: 1.7; }

/* ============================================
   About
   ============================================ */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; }
.about-img-placeholder {
  aspect-ratio: 4/5; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-img-icon { margin-bottom: 16px; }
.about-img-icon svg { width: 80px; height: 80px; }
.about-img-label {
  font-family: var(--font-display); font-size: 64px; font-weight: 700;
  color: rgba(200,164,90,0.2); letter-spacing: 8px;
}
.about-img-accent {
  position: absolute; bottom: 0; right: 0; width: 60%; height: 40%;
  background: rgba(200,164,90,0.08); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
}
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: var(--navy); padding: 24px; text-align: center; box-shadow: var(--shadow-lg);
}
.badge-number { display: block; font-size: 36px; font-weight: 800; line-height: 1; }
.badge-text { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; margin-top: 4px; }

.about-content h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 24px;
}
.about-text { color: var(--gray-600); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.feature { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon {
  flex-shrink: 0; width: 48px; height: 48px; background: rgba(200,164,90,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h4 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.feature p { font-size: 14px; color: var(--gray-600); }

/* ============================================
   Services
   ============================================ */
.services { padding: 100px 0; background: var(--gray-50); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); padding: 40px 32px; transition: var(--transition);
  border: 1px solid var(--gray-200); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--gold);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card p { color: var(--gray-600); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.service-link { font-size: 14px; font-weight: 600; color: var(--blue-accent); letter-spacing: 0.5px; transition: var(--transition); }
.service-link:hover { color: var(--gold); }

/* ============================================
   Projects
   ============================================ */
.projects { padding: 100px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { overflow: hidden; border: 1px solid var(--gray-200); transition: var(--transition); }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.project-large { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.project-img {
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-img-content { opacity: 0.3; transition: var(--transition); }
.project-card:hover .project-img-content { opacity: 0.5; transform: scale(1.1); }
.project-info { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.project-tag {
  display: inline-block; background: var(--navy); color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  padding: 4px 12px; margin-bottom: 16px; width: fit-content;
}
.project-info h3 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.project-info p { color: var(--gray-600); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.project-meta { display: flex; gap: 20px; font-size: 13px; color: var(--gray-500); font-weight: 500; letter-spacing: 0.5px; }

/* ============================================
   Licenses
   ============================================ */
.licenses { padding: 100px 0; background: var(--gray-50); }
.licenses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.license-card {
  background: var(--white); padding: 36px 28px; text-align: center;
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.license-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.license-card-full {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 40px 28px;
}
.license-doc {
  background: var(--gray-100); border: 2px solid var(--gray-200); padding: 12px;
  max-width: 500px; width: 100%; transition: var(--transition);
}
.license-doc:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.license-doc img {
  width: 100%; height: auto; display: block;
}
.license-icon {
  width: 72px; height: 72px; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-weight: 800;
}
.license-letter { font-size: 28px; letter-spacing: 2px; }
.license-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.license-card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ============================================
   Service Area
   ============================================ */
.service-area { padding: 80px 0; }
.area-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.area-text h2 {
  font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px;
}
.area-text p { color: var(--gray-600); font-size: 16px; margin-bottom: 24px; }
.area-cities { display: flex; flex-wrap: wrap; gap: 10px; }
.area-cities span {
  background: var(--gray-50); border: 1px solid var(--gray-200); padding: 6px 16px;
  font-size: 14px; color: var(--gray-700); font-weight: 500; transition: var(--transition);
}
.area-cities span:hover { border-color: var(--gold); color: var(--navy); background: rgba(200,164,90,0.05); }
.area-cta { text-align: center; min-width: 200px; padding-top: 40px; }
.area-cta p { font-size: 15px; color: var(--gray-600); margin-bottom: 16px; }

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative; padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  text-align: center; overflow: hidden;
}
.cta-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(200,164,90,0.1) 0%, transparent 60%);
}
.cta-content { position: relative; z-index: 2; }
.cta h2 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; color: var(--white); margin-bottom: 16px;
}
.cta p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 600px; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   Contact
   ============================================ */
.contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 24px;
}
.contact-desc { color: var(--gray-600); font-size: 16px; line-height: 1.7; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  flex-shrink: 0; width: 48px; height: 48px; background: rgba(200,164,90,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

.contact-form-wrapper {
  background: var(--white); padding: 40px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
  font-size: 15px; font-family: var(--font-sans); color: var(--gray-800);
  background: var(--gray-50); transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(200,164,90,0.1);
}
.form-group textarea { resize: vertical; }
.form-group .btn-primary { padding: 14px 36px; font-size: 15px; background: var(--navy); color: var(--gold); }
.form-group .btn-primary:hover { background: var(--blue); }

/* ============================================
   Footer
   ============================================ */
.footer { background: var(--navy); padding: 80px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.8; margin-top: 20px; max-width: 320px; }
.footer-brand .logo-icon { font-size: 16px; }
.footer-brand .logo-text { font-size: 12px; }
.footer-links h4 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 13px; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); font-size: 13px; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .licenses-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 60px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; background: rgba(15,27,45,0.98);
    padding: 24px; gap: 16px;
  }
  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item:not(:last-child)::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-large { grid-column: auto; grid-template-columns: 1fr; }
  .licenses-grid { grid-template-columns: 1fr; }
  .area-content { flex-direction: column; }
  .area-cta { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .hero-slogan-text { font-size: 16px; letter-spacing: 4px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .stat-number { font-size: 36px; }
  .logo-img { height: 40px; }
  .hero-badges { gap: 8px; }
}

/* ============================================
   Animations
   ============================================ */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-right.visible { opacity: 1; transform: translateX(0); }
